Skip to content

Commit 53fe190

Browse files
author
gitgitWi
committed
Feat: change css to scss
1 parent 65aebbb commit 53fe190

File tree

5 files changed

+34
-26
lines changed

5 files changed

+34
-26
lines changed

pages/_app.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import { FunctionComponent } from "react";
2-
import "../styles/globals.css";
1+
import { AppProps } from "next/app";
2+
import "../styles/globals.scss";
33

4-
interface MyAppProps {
5-
Component: FunctionComponent;
6-
pageProps: any;
7-
}
8-
9-
function MyApp({ Component, pageProps }: MyAppProps) {
4+
export default function MyApp({ Component, pageProps }: AppProps) {
105
return <Component {...pageProps} />;
116
}
12-
13-
export default MyApp;

styles/Home.module.css

Whitespace-only changes.

styles/_variables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// --- Colors
2+
// @see {https://www.w3schools.com/colors/colors_2021.asp}
3+
$Black-Inkwell: rgb(54, 57, 69);
4+
$Gray-UltimateGray: rgb(147, 149, 151);

styles/globals.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

styles/globals.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@import "variables";
2+
3+
.reset {
4+
padding: 0;
5+
margin: 0;
6+
box-sizing: border-box;
7+
}
8+
9+
.center {
10+
width: 100%;
11+
display: grid;
12+
place-content: center;
13+
}
14+
15+
html,
16+
body {
17+
@extend .reset;
18+
@extend .center;
19+
20+
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu,
21+
Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
22+
}
23+
24+
a {
25+
color: inherit;
26+
text-decoration: none;
27+
}

0 commit comments

Comments
 (0)