Skip to content

Commit 7c351e8

Browse files
committed
prettier
1 parent 64978cb commit 7c351e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1209
-1023
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint --fix",
10-
"prettier": "prettier --write ./src/**.{ts,tsx}",
10+
"prettier": "prettier --write ./src/**/*.{ts,tsx,scss}",
1111
"tools:migrate": "ts-node src/migrate",
1212
"twitter:popular": "ts-node src/twitter-popular",
1313
"twitter:random": "ts-node src/twitter-random",

src/assets/styles/globals.scss

+10-5
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,28 @@ a {
3939
text-overflow: ellipsis;
4040
}
4141

42-
h1, .h1 {
42+
h1,
43+
.h1 {
4344
font-size: $size-h1;
4445
color: var(--color-text);
4546
}
4647

47-
h2, .h2 {
48+
h2,
49+
.h2 {
4850
font-size: $size-h2;
4951
color: var(--color-text);
5052
}
5153

52-
h3, .h3 {
54+
h3,
55+
.h3 {
5356
font-size: $size-h3;
5457
color: var(--color-text);
5558
}
5659

57-
.p, p,
58-
.article, article {
60+
.p,
61+
p,
62+
.article,
63+
article {
5964
margin-bottom: $gap-16;
6065
color: var(--color-text);
6166
}
+27-27
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
$colors: (
2-
// Primary colors
3-
'primary': #000d99,
4-
'primary-500': #0edbff,
5-
'primary-100': #df4576,
6-
// Secondary colors
7-
'secondary': #eba134,
8-
'secondary-500': #fac748,
9-
'secondary-100': #ffe3b2,
10-
// Neutral colors
11-
'neutral': #151a26,
12-
'neutral-500': #6a707f,
13-
'neutral-100': #e9ecf1,
14-
// Error, warning, succes, info colors
15-
'info': #d0f0fd,
16-
'info-dark': #04283f,
17-
'success': #d1f7c4,
18-
'success-dark': #0b1d05,
19-
'warning': #ffeab6,
20-
'warning-dark': #3b2501,
21-
'error': #ffdce5,
22-
'error-dark': #4c0c1c,
23-
// MISC
24-
'background': #212b42,
25-
'text': white,
26-
'text-inverse': black,
27-
'card-bg-color': #d3d3d3,
28-
'card-title-text': black
2+
// Primary colors
3+
'primary': #000d99,
4+
'primary-500': #0edbff,
5+
'primary-100': #df4576,
6+
// Secondary colors
7+
'secondary': #eba134,
8+
'secondary-500': #fac748,
9+
'secondary-100': #ffe3b2,
10+
// Neutral colors
11+
'neutral': #151a26,
12+
'neutral-500': #6a707f,
13+
'neutral-100': #e9ecf1,
14+
// Error, warning, succes, info colors
15+
'info': #d0f0fd,
16+
'info-dark': #04283f,
17+
'success': #d1f7c4,
18+
'success-dark': #0b1d05,
19+
'warning': #ffeab6,
20+
'warning-dark': #3b2501,
21+
'error': #ffdce5,
22+
'error-dark': #4c0c1c,
23+
// MISC
24+
'background': #212b42,
25+
'text': white,
26+
'text-inverse': black,
27+
'card-bg-color': #d3d3d3,
28+
'card-title-text': black
2929
);

src/assets/styles/themes/dark.scss

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
$colors: (
2-
// Primary colors
3-
'primary': #000d99,
4-
'primary-500': #0edbff,
5-
'primary-100': #6a828c,
6-
// Secondary colors
7-
'secondary': #eba134,
8-
'secondary-500': #fac748,
9-
'secondary-100': #ffe3b2,
10-
// Neutral colors
11-
'neutral': #151a26,
12-
'neutral-500': #6a707f,
13-
'neutral-100': #e9ecf1,
14-
// Error, warning, succes, info colors
15-
'info': #d0f0fd,
16-
'info-dark': #04283f,
17-
'success': #d1f7c4,
18-
'success-dark': #0b1d05,
19-
'warning': #ffeab6,
20-
'warning-dark': #3b2501,
21-
'error': #ffdce5,
22-
'error-dark': #4c0c1c,
23-
// MISC
24-
'background': #222c34,
25-
'text': white,
26-
'text-inverse': black,
27-
'card-bg-color': #4c5b61,
28-
'card-author-color': white,
29-
'card-title-text': white
2+
// Primary colors
3+
'primary': #000d99,
4+
'primary-500': #0edbff,
5+
'primary-100': #6a828c,
6+
// Secondary colors
7+
'secondary': #eba134,
8+
'secondary-500': #fac748,
9+
'secondary-100': #ffe3b2,
10+
// Neutral colors
11+
'neutral': #151a26,
12+
'neutral-500': #6a707f,
13+
'neutral-100': #e9ecf1,
14+
// Error, warning, succes, info colors
15+
'info': #d0f0fd,
16+
'info-dark': #04283f,
17+
'success': #d1f7c4,
18+
'success-dark': #0b1d05,
19+
'warning': #ffeab6,
20+
'warning-dark': #3b2501,
21+
'error': #ffdce5,
22+
'error-dark': #4c0c1c,
23+
// MISC
24+
'background': #222c34,
25+
'text': white,
26+
'text-inverse': black,
27+
'card-bg-color': #4c5b61,
28+
'card-author-color': white,
29+
'card-title-text': white
3030
);

src/assets/styles/themes/light.scss

+27-27
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
$colors: (
2-
// Primary colors
3-
'primary': #000d99,
4-
'primary-500': #004fff,
5-
'primary-100': #99ccff,
6-
// Secondary colors
7-
'secondary': #eba134,
8-
'secondary-500': #fac748,
9-
'secondary-100': #ffe3b2,
10-
// Neutral colors
11-
'neutral': #151a26,
12-
'neutral-500': #6a707f,
13-
'neutral-100': #e9ecf1,
14-
// Error, warning, succes, info colors
15-
'info': #d0f0fd,
16-
'info-dark': #04283f,
17-
'success': #d1f7c4,
18-
'success-dark': #0b1d05,
19-
'warning': #ffeab6,
20-
'warning-dark': #3b2501,
21-
'error': #ffdce5,
22-
'error-dark': #4c0c1c,
23-
// MISC
24-
'background': white,
25-
'text': black,
26-
'text-inverse': white,
27-
'card-bg-color': white,
28-
'card-title-text': black
2+
// Primary colors
3+
'primary': #000d99,
4+
'primary-500': #004fff,
5+
'primary-100': #99ccff,
6+
// Secondary colors
7+
'secondary': #eba134,
8+
'secondary-500': #fac748,
9+
'secondary-100': #ffe3b2,
10+
// Neutral colors
11+
'neutral': #151a26,
12+
'neutral-500': #6a707f,
13+
'neutral-100': #e9ecf1,
14+
// Error, warning, succes, info colors
15+
'info': #d0f0fd,
16+
'info-dark': #04283f,
17+
'success': #d1f7c4,
18+
'success-dark': #0b1d05,
19+
'warning': #ffeab6,
20+
'warning-dark': #3b2501,
21+
'error': #ffdce5,
22+
'error-dark': #4c0c1c,
23+
// MISC
24+
'background': white,
25+
'text': black,
26+
'text-inverse': white,
27+
'card-bg-color': white,
28+
'card-title-text': black
2929
);

src/assets/styles/themes/pantone.scss

+27-27
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
$colors: (
2-
// Primary colors
3-
'primary': #000d99,
4-
'primary-500': #0edbff,
5-
'primary-100': #ed6b21,
6-
// Secondary colors
7-
'secondary': #eba134,
8-
'secondary-500': #fac748,
9-
'secondary-100': #ffe3b2,
10-
// Neutral colors
11-
'neutral': #151a26,
12-
'neutral-500': #6a707f,
13-
'neutral-100': #e9ecf1,
14-
// Error, warning, succes, info colors
15-
'info': #d0f0fd,
16-
'info-dark': #04283f,
17-
'success': #d1f7c4,
18-
'success-dark': #0b1d05,
19-
'warning': #ffeab6,
20-
'warning-dark': #3b2501,
21-
'error': #ffdce5,
22-
'error-dark': #4c0c1c,
23-
// MISC
24-
'background': #313131,
25-
'text': white,
26-
'text-inverse': black,
27-
'card-bg-color': #d3d3d3,
28-
'card-title-text': black
2+
// Primary colors
3+
'primary': #000d99,
4+
'primary-500': #0edbff,
5+
'primary-100': #ed6b21,
6+
// Secondary colors
7+
'secondary': #eba134,
8+
'secondary-500': #fac748,
9+
'secondary-100': #ffe3b2,
10+
// Neutral colors
11+
'neutral': #151a26,
12+
'neutral-500': #6a707f,
13+
'neutral-100': #e9ecf1,
14+
// Error, warning, succes, info colors
15+
'info': #d0f0fd,
16+
'info-dark': #04283f,
17+
'success': #d1f7c4,
18+
'success-dark': #0b1d05,
19+
'warning': #ffeab6,
20+
'warning-dark': #3b2501,
21+
'error': #ffdce5,
22+
'error-dark': #4c0c1c,
23+
// MISC
24+
'background': #313131,
25+
'text': white,
26+
'text-inverse': black,
27+
'card-bg-color': #d3d3d3,
28+
'card-title-text': black
2929
);

src/assets/styles/variables.scss

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $size-12: 0.75rem; // 12px
1515
$size-16: 1rem; // 16px
1616
$size-20: 1.25rem; // 20px
1717

18-
// Headings
18+
// Headings
1919
$size-h1: 2rem; // 32px
2020
$size-h2: 1.75rem; // 28px
2121
$size-h3: 1.5rem; // 24px
@@ -40,19 +40,19 @@ $max-content-width: $screen-1280 + (24px * 2);
4040

4141
// Themes
4242
$themes: (
43-
'light': light.$colors,
44-
'dark': dark.$colors,
45-
'pantone': pantone.$colors,
46-
'blueberry_dark': blueberry_dark.$colors,
43+
'light': light.$colors,
44+
'dark': dark.$colors,
45+
'pantone': pantone.$colors,
46+
'blueberry_dark': blueberry_dark.$colors,
4747
);
4848

4949
@each $theme-name, $theme-vars in $themes {
50-
$colors: $theme-vars;
50+
$colors: $theme-vars;
5151

52-
.#{$theme-name} {
53-
// Variables for each color
54-
@each $name, $color in $colors {
55-
--color-#{$name}: #{$color};
56-
}
52+
.#{$theme-name} {
53+
// Variables for each color
54+
@each $name, $color in $colors {
55+
--color-#{$name}: #{$color};
5756
}
57+
}
5858
}

src/components/authors.module.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@use 'assets/styles/variables.scss' as *;
22

33
.container {
4-
list-style-type: none;
5-
display: flex;
6-
flex-wrap: wrap;
4+
list-style-type: none;
5+
display: flex;
6+
flex-wrap: wrap;
77

8-
li {
9-
margin-right: $gap-8;
10-
}
8+
li {
9+
margin-right: $gap-8;
10+
}
1111
}

0 commit comments

Comments
 (0)