-
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.
- Loading branch information
Showing
20 changed files
with
393 additions
and
91 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# dnd-9th-3-frontend | ||
[디자인 시스템](https://658a874139243fc1f365793b-lbgwftldfu.chromatic.com/) | ||
[디자인 시스템](https://658a874139243fc1f365793b-scqdyfhkel.chromatic.com/) |
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.
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
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,62 @@ | ||
import Background from "@/foundations/Background"; | ||
import RecordCard from "./TimeLineCard"; | ||
import styled from "styled-components"; | ||
import TimeLineCard from "./TimeLineCard"; | ||
|
||
export default { | ||
title: "Components/TimeLineCard", | ||
component: TimeLineCard, | ||
}; | ||
|
||
export const AllTypes = () => ( | ||
<> | ||
<Background theme="dark"> | ||
<RecordCardBox> | ||
<RecordCard | ||
date="1월 24일(수)" | ||
src="/images/ocean.jpg" | ||
placeName="피피섬" | ||
title="여행" | ||
description="바다 배경 화면" | ||
images={["puppy.jpg", 'desert.jpg']} | ||
theme="dark" /> | ||
<RecordCard | ||
date="1월 23일(화)" | ||
src="/images/desert.jpg" | ||
placeName="사하라 사막" | ||
title="해질녘" | ||
description="오늘은 나의 첫 굳이데이를 즐겼다. 처음으로 사막에 왔다. 날씨가 너무 더워 힘들었지만 저녁이 되니 멋진 풍경이 눈에 띄여 | ||
너무 예뻤다." | ||
images={["puppy.jpg", 'desert.jpg', 'ocean.jpg']} | ||
theme="dark" /> | ||
</RecordCardBox> | ||
</Background> | ||
<Background theme="light"> | ||
<RecordCardBox> | ||
<RecordCard | ||
date="1월 24일(수)" | ||
src="/images/ocean.jpg" | ||
placeName="피피섬" | ||
title="여행" | ||
description="바다 배경 화면" | ||
images={["puppy.jpg", 'desert.jpg']} | ||
theme="light" /> | ||
<RecordCard | ||
date="1월 23일(화)" | ||
src="/images/desert.jpg" | ||
placeName="사하라 사막" | ||
title="해질녘" | ||
description="오늘은 나의 첫 굳이데이를 즐겼다. 처음으로 사막에 왔다. 날씨가 너무 더워 힘들었지만 저녁이 되니 멋진 풍경이 눈에 띄여 | ||
너무 예뻤다." | ||
images={["puppy.jpg", 'desert.jpg']} | ||
theme="light" /> | ||
</RecordCardBox> | ||
</Background> | ||
</> | ||
); | ||
|
||
const RecordCardBox = styled.div` | ||
display: flex; | ||
gap: 10px; | ||
flex-direction: column; | ||
`; |
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,60 @@ | ||
import { colors } from "@/_shared/colors"; | ||
import styled from "styled-components"; | ||
|
||
export const RecordCardWrapper = styled.div` | ||
display: flex; | ||
gap: 20px; | ||
`; | ||
|
||
export const RecordCardLine = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 10px; | ||
`; | ||
|
||
export const RecordContent = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
width: 100%; | ||
`; | ||
|
||
export const RecordContentHeader = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
`; | ||
|
||
export const RecordPlace = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: 5px; | ||
align-items: center; | ||
color: ${colors.green50} | ||
`; | ||
|
||
export const RecordImageWrapper = styled.div` | ||
display: flex; | ||
align-items: flex-end; | ||
gap: 10px; | ||
color: ${colors.gray500}; | ||
`; | ||
|
||
export const RecordImageBox = styled.div` | ||
width: 300px; | ||
height: 400px; | ||
background-color: red; | ||
`; | ||
|
||
export const RecordDescription = styled.div` | ||
width: 268px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
`; | ||
|
||
export const RecordDescriptionMore = styled.div` | ||
cursor: pointer; | ||
color: ${colors.gray500}; | ||
`; |
Oops, something went wrong.