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

refactor: 공용 스타일(폰트,색상), 로컬 폰트 적용 및 기타 오류 해결 #19

Closed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 0 additions & 15 deletions src/app/[userNickname]/[listId]/page.tsx

This file was deleted.

34 changes: 0 additions & 34 deletions src/app/create/_components/CreateItem.css.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/app/create/_components/item/AddItemButton.css.ts

This file was deleted.

36 changes: 0 additions & 36 deletions src/app/create/_components/item/Header.css.ts

This file was deleted.

110 changes: 0 additions & 110 deletions src/app/create/_components/item/Items.css.ts

This file was deleted.

26 changes: 0 additions & 26 deletions src/app/create/_components/item/LinkPreview.css.ts

This file was deleted.

39 changes: 0 additions & 39 deletions src/app/create/_components/item/LinkPreview.tsx

This file was deleted.

5 changes: 3 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
'use client';

import { ReactNode } from 'react';
import { ToastContainer } from 'react-toastify';
import Script from 'next/script';

import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import '@/styles/GlobalStyles.css';
import Script from 'next/script';
import { ToastContainer } from 'react-toastify';

const queryClient = new QueryClient();
declare global {
Expand Down
35 changes: 35 additions & 0 deletions src/app/list/create/_components/CreateItem.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { style } from '@vanilla-extract/css';
import { body1, body3 } from '@/styles/font.css';
import { vars } from '@/styles/theme.css';

export const article = style({
padding: '16px 20px 30px',
});

//body1
export const label = style([
body1,
{
marginBottom: '1.6rem',
},
]);

export const required = style([
body1,
{
marginLeft: '6px',

fontWeight: '500',
color: vars.color.red,
},
]);

//body3
export const description = style([
body3,
{
marginBottom: '1.6rem',

color: vars.color.gray9,
},
]);
23 changes: 23 additions & 0 deletions src/app/list/create/_components/item/AddItemButton.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { style } from '@vanilla-extract/css';
import { vars } from '@/styles/theme.css';
import { body1 } from '@/styles/font.css';

export const addButton = style([
body1,
{
width: '100%',
height: '60px',

display: 'flex',
justifyContent: 'center',
alignItems: 'center',
gap: '12px',

color: vars.color.gray9,

backgroundColor: '#FFF',

border: 'solid 1px #AFB1B6 ',
borderRadius: '15px',
},
]);
33 changes: 33 additions & 0 deletions src/app/list/create/_components/item/Header.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { style, styleVariants } from '@vanilla-extract/css';
import { vars } from '@/styles/theme.css';
import { title3, body1 } from '@/styles/font.css';

export const header = style({
width: '100%',
height: '90px',
paddingLeft: '20px',
paddingRight: '20px',

position: 'sticky',
top: '0',
left: '0',
zIndex: '10',

display: 'flex',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',

backgroundColor: vars.color.white,

borderBottom: '1px solid rgba(0, 0, 0, 0.10)',
});

export const headerTitle = style([title3]);

export const baseButton = style([body1]);

export const headerNextButton = styleVariants({
active: [baseButton],
inactive: [baseButton, { color: vars.color.gray7, cursor: 'default' }],
});
Loading