-
Notifications
You must be signed in to change notification settings - Fork 3
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
4 changed files
with
70 additions
and
36 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/@components/@common/BestPiickleCard/LastBestPiickleCard/index.tsx
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,16 @@ | ||
import React from "react"; | ||
|
||
import * as St from "./styled"; | ||
|
||
export default function LastBestPiickleCard() { | ||
return ( | ||
<St.LastCard> | ||
<St.LastCardContent> | ||
나머지 주제들도 | ||
<br /> | ||
보고 싶다면? | ||
</St.LastCardContent> | ||
<St.LastCardWrapper>나머지 보기</St.LastCardWrapper> | ||
</St.LastCard> | ||
); | ||
} |
50 changes: 50 additions & 0 deletions
50
src/@components/@common/BestPiickleCard/LastBestPiickleCard/styled.ts
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,50 @@ | ||
import styled from "styled-components"; | ||
|
||
export const LastCard = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
width: 18rem; | ||
height: 10.6rem; | ||
border-radius: 0.4rem; | ||
padding: 0.8rem 1.2rem; | ||
padding-top: 2.1rem; | ||
background: ${({ theme }) => theme.newColors.white}; | ||
`; | ||
|
||
export const LastCardWrapper = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 1.2rem; | ||
align-self: flex-end; | ||
width: 6.9rem; | ||
height: 2.5rem; | ||
border-radius: 2.9rem; | ||
background: ${({ theme }) => theme.newColors.green}; | ||
color: ${({ theme }) => theme.newColors.white}; | ||
${({ theme }) => theme.newFonts.btn2} | ||
`; | ||
|
||
export const LastCardContent = styled.p` | ||
margin-top: 0.4rem; | ||
text-align: left; | ||
white-space: normal; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
${({ theme }) => theme.newFonts.btn1} | ||
color: ${({ theme }) => theme.newColors.gray900}; | ||
`; |
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