Skip to content

Commit

Permalink
feat: 공용 스타일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
수진 authored and 수진 committed Dec 19, 2024
1 parent 83069b8 commit 1e0d7f4
Show file tree
Hide file tree
Showing 9 changed files with 199 additions and 9 deletions.
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;

0 comments on commit 1e0d7f4

Please sign in to comment.