forked from codesquad-members-2023/issue-tracker-max
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #7 design: 디자인 시스템 세팅 (#8) * #7 design: 디자인 시스템 세팅 - 로고 컴포넌트, GlobalStyle, designSystem 생성 - icon svg 파일 업로드 - Pretendard font * #7 refactor: 로고 컴포넌트 props 구조 수정 * #7 refactor: 디자인 시스템 세팅 리뷰 반영 - design modules 불필요한 변수 선언 없이 export default - src 최상단 디렉터리 path alias 선언 * #7 design: light/dark 모드 design system 세팅 --------- Co-authored-by: 유지수 Jisoo Yoo <[email protected]>
- Loading branch information
1 parent
f44b559
commit d80d054
Showing
33 changed files
with
433 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,14 @@ | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<link rel="icon" type="image/svg+xml" href="/favicon.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Issue Tracker - Team 08</title> | ||
<link | ||
rel="stylesheet" | ||
as="style" | ||
crossorigin | ||
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css" /> | ||
<title>팔팔한 이슈 트래커 - 88 Issue Tracker</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
import "./App.css"; | ||
import { useState } from "react"; | ||
import Logo from "@components/common/Logo"; | ||
import GlobalStyle from "@styles/GlobalStyle"; | ||
import { lightMode, darkMode } from "@styles/designSystem"; | ||
import styled, { ThemeProvider } from "styled-components"; | ||
|
||
function App() { | ||
return <div></div>; | ||
export default function App() { | ||
const [themeMode, setThemeMode] = useState<"light" | "dark">("dark"); | ||
|
||
const toggleThemeMode = () => { | ||
setThemeMode((prev) => { | ||
return prev === "light" ? "dark" : "light"; | ||
}); | ||
}; | ||
|
||
return ( | ||
<ThemeProvider theme={themeMode === "light" ? lightMode : darkMode}> | ||
<GlobalStyle /> | ||
<Logo size="large" /> | ||
<H1>적용 되니?</H1> | ||
<button onClick={toggleThemeMode}>Theme Mode</button> | ||
</ThemeProvider> | ||
); | ||
} | ||
|
||
export default App; | ||
const H1 = styled.h1` | ||
color: ${({ theme: { neutral } }) => neutral.text.strong}; | ||
font: ${({ theme: { font } }) => font.displayMD12}; | ||
`; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.