-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Next-김주동' of https://github.com/joodongkim/10-Sprint-Mi…
…ssion into Next-김주동
- Loading branch information
1 parent
41f70e7
commit e4208c1
Showing
38 changed files
with
680 additions
and
544 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import styled from "styled-components"; | ||
import Link from "next/link"; | ||
import { | ||
FlexRowCentered, | ||
} from "@/styles/CommonStyles"; | ||
|
||
const CardContainer = styled(Link)` | ||
background-color: var(--gray-50); | ||
border-radius: 8px; | ||
`; | ||
|
||
const ContentWrapper = styled.div` | ||
padding: 16px 24px; | ||
`; | ||
|
||
const BestSticker = styled(FlexRowCentered)` | ||
background-color: var(--blue); | ||
border-radius: 0 0 32px 32px; | ||
font-size: 16px; | ||
font-weight: 600; | ||
color: #fff; | ||
gap: 4px; | ||
padding: 6px 24px 8px 24px; | ||
margin-left: 24px; | ||
display: inline-flex; | ||
`; | ||
|
||
|
||
const BestArticlesCardSection = styled.div` | ||
display: grid; | ||
grid-template-columns: repeat(1, 1fr); | ||
@media ${({ theme }) => theme.mediaQuery.tablet} { | ||
grid-template-columns: repeat(2, 1fr); | ||
gap: 16px; | ||
} | ||
@media ${({ theme }) => theme.mediaQuery.desktop} { | ||
grid-template-columns: repeat(3, 1fr); | ||
gap: 24px; | ||
} | ||
`; | ||
|
||
export { CardContainer, ContentWrapper, BestSticker, BestArticlesCardSection }; |
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,57 @@ | ||
import styled from "styled-components"; | ||
|
||
|
||
const CommentContainer = styled.div` | ||
padding: 24px 0; | ||
position: relative; | ||
`; | ||
|
||
const SeeMoreButton = styled.button` | ||
position: absolute; | ||
right: 0; | ||
`; | ||
|
||
const CommentContent = styled.p` | ||
font-size: 16px; | ||
line-height: 140%; | ||
margin-bottom: 24px; | ||
`; | ||
|
||
const AuthorProfile = styled.div` | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
`; | ||
|
||
const UserProfileImage = styled.img` | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 50%; | ||
object-fit: cover; | ||
`; | ||
|
||
const Username = styled.p` | ||
color: var(--gray-600); | ||
font-size: 14px; | ||
margin-bottom: 4px; | ||
`; | ||
|
||
const Timestamp = styled.p` | ||
color: ${({ theme }) => theme.colors.gray[400]}; | ||
font-size: 12px; | ||
`; | ||
|
||
const ThreadContainer = styled.div` | ||
margin-bottom: 40px; | ||
`; | ||
|
||
export { | ||
CommentContainer, | ||
SeeMoreButton, | ||
CommentContent, | ||
AuthorProfile, | ||
UserProfileImage, | ||
Username, | ||
Timestamp, | ||
ThreadContainer, | ||
}; |
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,53 @@ | ||
import styled from "styled-components"; | ||
import { Button } from "@/styles/CommonStyles"; | ||
|
||
const CommentInputSection = styled.section` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
`; | ||
|
||
const SectionTitle = styled.h1` | ||
font-size: 16px; | ||
font-weight: 600; | ||
`; | ||
|
||
const TextArea = styled.textarea` | ||
background-color: ${({ theme }) => theme.colors.gray[100]}; | ||
border: none; | ||
border-radius: 12px; | ||
padding: 16px 24px; | ||
height: 104px; | ||
resize: none; | ||
&::placeholder { | ||
color: ${({ theme }) => theme.colors.gray[400]}; | ||
font-size: 14px; | ||
line-height: 24px; | ||
@media ${({ theme }) => theme.mediaQuery.tablet} { | ||
font-size: 16px; | ||
} | ||
} | ||
&:focus { | ||
outline-color: ${({ theme }) => theme.colors.blue.primary}; | ||
} | ||
`; | ||
|
||
const PostCommentButton = styled(Button)` | ||
align-self: flex-end; | ||
font-weight: 600; | ||
font-size: 14px; | ||
@media ${({ theme }) => theme.mediaQuery.tablet} { | ||
font-size: 16px; | ||
} | ||
`; | ||
|
||
export { | ||
CommentInputSection, | ||
SectionTitle, | ||
TextArea, | ||
PostCommentButton, | ||
}; |
Oops, something went wrong.