Skip to content

Commit 7141e7d

Browse files
committed
add adPlaceholder
1 parent 7e6db4b commit 7141e7d

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

src/assets/App.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,7 @@ Producthunt item
921921
animation-duration: 1.5s;
922922
animation-name: cardPlaceholderPulse;
923923
animation-iteration-count: infinite;
924+
scroll-snap-align: start;
924925
}
925926
.mediaCardPlaceholder {
926927
display: flex;
@@ -936,6 +937,7 @@ Producthunt item
936937
}
937938
.cardPlaceholder .cardContent {
938939
display: flex;
940+
flex: auto;
939941
flex-direction: column;
940942
}
941943
.cardPlaceholder .cardUpvote {
@@ -970,6 +972,17 @@ Producthunt item
970972
margin-right: 16px;
971973
border-radius: 4px;
972974
}
975+
.adCardPlaceholder {
976+
max-width: 300px;
977+
column-gap: 16px;
978+
display: flex;
979+
flex-direction: row;
980+
}
981+
.adCardPlaceholder .image {
982+
background: var(--placeholder-background-color);
983+
flex: 0 0 120px;
984+
height: 90px
985+
}
973986

974987
.floatingFilter {
975988
background: rgb(44, 128, 232);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export const AdPlaceholder = ({ className = '' }: { className?: string }) => {
2+
return (
3+
<div className={'cardPlaceholder adCardPlaceholder'}>
4+
<span className="image" />
5+
<div className="cardContent">
6+
<span className="line" />
7+
<span className="smallLine" />
8+
<span className="smallLine" />
9+
<span className="smallLine" />
10+
</div>
11+
</div>
12+
)
13+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from "./Placeholder"
2-
export * from "./ProductHuntPlaceholder"
2+
export * from "./ProductHuntPlaceholder"
3+
export * from "./AdPlaceholder"

0 commit comments

Comments
 (0)