Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 공용 스타일 추가 #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import type { NextConfig } from "next";
import type { NextConfig } from 'next';
import path from 'path';

const nextConfig: NextConfig = {
/* config options here */
reactStrictMode: true,
sassOptions: {
includePaths: [path.join(__dirname, 'src')],
},
};

export default nextConfig;
105 changes: 105 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file removed src/app/globals.css
Empty file.
24 changes: 24 additions & 0 deletions src/app/globals.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@use '@/assets/variables' as *;
@import url('https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable.min.css');
@import '@/assets/reset.scss';

body {
font-family: Pretendard;
}

button,
input,
select,
textarea {
appearance: none;
color: inherit;
font-family: inherit;
font-size: inherit;
line-height: inherit;
background-color: inherit;
}

a {
text-decoration: none;
color: inherit;
}
10 changes: 5 additions & 5 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { Metadata } from "next";
import "./globals.css";
import type { Metadata } from 'next';
import './globals.scss';

export const metadata: Metadata = {
title: "Mogazoa",
title: 'Mogazoa',
};

export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en">
<body>{children}</body>
Expand Down
7 changes: 7 additions & 0 deletions src/app/page.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@use '@/assets/variables' as *;
.homeTag {
background-color: $green;
color: $red;
border: $border-red;
border-radius: $radi;
}
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import styles from "./page.module.scss";
import styles from "./page.module.scss";

export default function Home() {
return <div>home</div>;
return <div className={styles.homeTag}>home</div>;
}
14 changes: 14 additions & 0 deletions src/assets/reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@use '@/assets/variables' as *;
* {
padding: 0;
margin: 0;
border: 0;
box-sizing: border-box;
background-color: $white;
}

body {
font-family: Pretendard;
background-color: $white;
transition: background-color 0.3s ease;
}
36 changes: 36 additions & 0 deletions src/assets/variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
$dark-black: #17171c;
$black: #181d26;
$light-black: #2e2e3a;
$border-black: #353542;

$dark-gray: #6e6e82;
$gray: #9fa6b2;
$white: #f1f1f5;

$indigo: #5363ff;
$blue: #5097fa;
$gradient: linear-gradient(91deg, $blue 0%, $indigo 100%);

$yellow: #ffc83c;
$green: #05d58b;
$pink: #ff2f9f;
$red: #ff0000;

$radi: 8px;
$radi-rank: 50px;
$radi-cates: 6px;
$radi-catef: 100px;
$radi-modal: 16px;

$border-red: 1px solid $red;
$border-black: 1px solid $border-black;
$border-blue: 1px solid $blue;

$pad-input: 23px 20px;
$pad-button: 24px 288px;
$pad-search: 16px 20px;
$pad-menu: 15px 20px;
$pad-cate: 4px 10px;
$pad-cates: 4px 8px;
$pad-catec: 8px 10px;
$pad-stat: 30px 74px;
Loading