Skip to content

Commit d594f08

Browse files
committed
feat: implement icon library with layout and global styles
1 parent 247f29a commit d594f08

33 files changed

+616
-68
lines changed

.prettierignore

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

.prettierrc

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

apps/spectator/src/app/layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Metadata } from 'next';
22
import type { PropsWithChildren } from 'react';
3+
import { Layout } from '~/components/layout';
34
import { Pretendard } from './_fonts';
45
import '~/styles/globals.css';
56

@@ -11,7 +12,9 @@ export const metadata: Metadata = {
1112
const RootLayout = ({ children }: PropsWithChildren) => {
1213
return (
1314
<html lang="ko">
14-
<body className={Pretendard.className}>{children}</body>
15+
<body className={Pretendard.className}>
16+
<Layout>{children}</Layout>
17+
</body>
1518
</html>
1619
);
1720
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const Header = () => {
2+
return <header>header</header>;
3+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './root';
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { PropsWithChildren } from 'react';
2+
import { Header } from './header';
3+
4+
export const Layout = ({ children }: PropsWithChildren) => {
5+
return (
6+
<div className="column-center-x mx-auto w-full max-w-[var(--app-max-width)] flex-1 bg-white">
7+
<Header />
8+
<main className="column-center-y w-full">{children}</main>
9+
</div>
10+
);
11+
};

apps/spectator/src/styles/globals.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
11
@import "tailwindcss";
22
@import "./utilities.css";
3+
4+
@theme {
5+
--breakpoint-*: initial;
6+
--breakpoint-md: 768px;
7+
--breakpoint-lg: 1024px;
8+
9+
--z-index-header: 10;
10+
--z-index-above: 1;
11+
12+
--app-max-width: 560px;
13+
}
14+
15+
@layer base {
16+
html, body {
17+
height: 100%;
18+
}
19+
20+
body {
21+
display: flex;
22+
flex-direction: column;
23+
min-height: 100%;
24+
padding-bottom: env(safe-area-inset-bottom);
25+
font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
26+
text-rendering: optimizeLegibility;
27+
-webkit-font-smoothing: antialiased;
28+
-webkit-text-size-adjust: 100%;
29+
-moz-osx-font-smoothing: grayscale;
30+
overflow-x: hidden;
31+
overflow-y: scroll;
32+
scrollbar-gutter: stable;
33+
background-color: var(--color-neutral-50);
34+
}
35+
}

biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"experimentalScannerIgnores": [
77
"node_modules/**",
88
"dist/**",
9+
"lib/**",
10+
"**/lib/**",
11+
"**/dist/**",
912
".turbo/**",
1013
".next/**",
1114
"pnpm-lock.yaml"

packages/config-typescript/base.json

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

packages/config-typescript/nextjs.json

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

0 commit comments

Comments
 (0)