-
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.
Merge branch 'dev' of https://github.com/Gosrock/DuDoong-Front into r…
…elease/ticket
- Loading branch information
Showing
8 changed files
with
135 additions
and
9 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 |
---|---|---|
|
@@ -6,7 +6,13 @@ | |
<link | ||
rel="stylesheet preconnect" | ||
crossorigin | ||
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard-dynamic-subset.css" | ||
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
crossorigin="anonymous" | ||
href="https://cdn.jsdelivr.net/gh/leetaewook/gmarket-sans-dynamic-subset/GmarketSans.css" | ||
/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="theme-color" content="#F8F8FA" /> | ||
|
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 |
---|---|---|
|
@@ -17,9 +17,16 @@ export default function Document() { | |
></link> */} | ||
<link | ||
rel="stylesheet preconnect" | ||
type="text/css" | ||
crossOrigin="anonymous" | ||
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard-dynamic-subset.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
crossOrigin="anonymous" | ||
href="https://cdn.jsdelivr.net/gh/leetaewook/gmarket-sans-dynamic-subset/GmarketSans.css" | ||
/> | ||
<script | ||
type="text/javascript" | ||
src="//dapi.kakao.com/v2/maps/sdk.js?appkey=9c08b495df2ecbc09bd453fb53701551&libraries=services,clusterer" | ||
|
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,68 @@ | ||
import SkeletonItem from '@components/shared/SkeletonStyle'; | ||
import { css } from '@emotion/react'; | ||
import styled from '@emotion/styled'; | ||
import React from 'react'; | ||
|
||
const SkeletonEvent = () => { | ||
return ( | ||
<Wrapper> | ||
<Poster /> | ||
<SubText /> | ||
<MainText /> | ||
{/* <Text | ||
typo="P_Text_14_R" | ||
color="gray_400" | ||
as="p" | ||
css={css` | ||
padding-top: 10px; | ||
`} | ||
> | ||
{props.startAt} | ||
</Text> | ||
<Text | ||
typo="P_Header_18_SB" | ||
color={props.status === '지난공연' ? 'gray_400' : 'black'} | ||
as="p" | ||
css={css` | ||
padding-top: 3px; | ||
`} | ||
> | ||
{props.name} | ||
</Text> */} | ||
</Wrapper> | ||
); | ||
}; | ||
|
||
export default React.memo(SkeletonEvent); | ||
|
||
const Wrapper = styled.div` | ||
transform: translateY(0px); | ||
transition: transform 0.15s ease-in 0s; | ||
&:hover { | ||
transform: translateY(-4px); | ||
} | ||
`; | ||
|
||
const Poster = styled(SkeletonItem)` | ||
position: relative; | ||
padding-top: 141.4%; | ||
overflow: hidden; | ||
transition: box-shadow 0.15s ease-in 0s; | ||
box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 16px 0px; | ||
border-radius: 12px; | ||
&:hover { | ||
box-shadow: rgba(0, 0, 0, 0.08) 0px 12px 20px 0px; | ||
} | ||
`; | ||
|
||
const SubText = styled(SkeletonItem)` | ||
margin-top: 10px; | ||
height: 15.6px; | ||
width: 80%; | ||
`; | ||
const MainText = styled(SkeletonItem)` | ||
margin-top: 3px; | ||
height: 27px; | ||
width: 100%; | ||
`; |
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,34 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
const SkeletonItem = styled.div<{ width?: string; height?: string }>` | ||
width: ${({ width }) => width || 'auto'}; | ||
height: ${({ width }) => width || 'auto'}; | ||
background-color: #f2f2f2; | ||
position: relative; | ||
overflow: hidden; | ||
border-radius: 4px; | ||
@keyframes skeleton-gradient { | ||
0% { | ||
background-color: rgba(165, 165, 165, 0.1); | ||
} | ||
50% { | ||
background-color: rgba(165, 165, 165, 0.3); | ||
} | ||
100% { | ||
background-color: rgba(165, 165, 165, 0.1); | ||
} | ||
} | ||
&:before { | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
animation: skeleton-gradient 1.5s infinite ease-in-out; | ||
} | ||
`; | ||
|
||
export default SkeletonItem; |
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