-
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.
[Feat] #21 - add css and today score
- Loading branch information
Showing
5 changed files
with
176 additions
and
34 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
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
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
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
@use '../../lib/styles/palette' as *; | ||
|
||
.log_frame { | ||
display: flex; | ||
height: 100vh; | ||
padding: 40px 20px; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 40px; | ||
flex-shrink: 0; | ||
|
||
.today_score_frame { | ||
display: flex; | ||
padding: 20px; | ||
justify-content: space-between; | ||
align-items: center; | ||
align-self: stretch; | ||
|
||
border-radius: 20px; | ||
background: $sub-color; | ||
|
||
.today_score_text { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 4px; | ||
|
||
.today_score_text_in { | ||
color: $black-color; | ||
font-weight: 600; | ||
} | ||
} | ||
|
||
.today_score { | ||
color: $black-color; | ||
font-size: 36px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: normal; | ||
} | ||
} | ||
|
||
} | ||
|
||
.add_log_frame { | ||
display: flex; | ||
padding: 20px; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 20px; | ||
align-self: stretch; | ||
|
||
border-radius: 20px; | ||
background: $sub-color; | ||
|
||
.add_log_title { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
align-self: stretch; | ||
|
||
color: $black-color; | ||
font-size: 20px; | ||
} | ||
} | ||
|
||
.log_input { | ||
display: flex; | ||
padding: 4px 8px; | ||
justify-content: space-between; | ||
align-items: center; | ||
align-self: stretch; | ||
|
||
border-radius: 16px; | ||
background: $main-color; | ||
} |
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,14 +1,44 @@ | ||
"use client" | ||
|
||
import DietLog from "./DietLog"; | ||
import SleepLog from "./SleepLog"; | ||
import WorkoutLog from "./WorkoutLog"; | ||
|
||
import styles from './page.module.scss' | ||
|
||
import Header from "../_common/header"; | ||
import NavBar from "../_common/navBar"; | ||
import { useState } from "react"; | ||
|
||
|
||
export function logInput() { | ||
console.log("log input select"); | ||
return ( | ||
<div className={styles.log_input}> | ||
<input type="text"></input> | ||
<input type="submit">완료</input> | ||
</div> | ||
) | ||
} | ||
|
||
export default function LogPage() { | ||
const [ score, setScore ] = useState(100); | ||
return ( | ||
<div> | ||
<h1>Log</h1> | ||
<SleepLog /> | ||
<DietLog /> | ||
<WorkoutLog /> | ||
<div className={styles.log_frame}> | ||
<Header pageName="활동기록" info="오늘 활동한 기록을 추가해봐요!"></Header> | ||
<div className={styles.today_score_frame}> | ||
<div className={styles.today_score_text}> | ||
<div className={styles.today_score_text_in}>오늘의 점수</div> | ||
<div>오늘도 열심히 활동했어요!</div> | ||
</div> | ||
<div className={styles.today_score}>{score}점</div> | ||
</div> | ||
<SleepLog /> | ||
<DietLog /> | ||
<WorkoutLog /> | ||
</div> | ||
<NavBar ></NavBar> | ||
</div> | ||
); | ||
} |