Skip to content

Commit

Permalink
Add X to showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Nov 28, 2024
1 parent 3f90de2 commit f99a3eb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
import type { EnrichedQuotedTweet } from '../../utils'
import QuotedTweetContainer from './QuotedTweetContainer.astro'
import QuotedTweetHeader from './QuotedTweetHeader.astro'
import QuotedTweetBody from './QuotedTweetBody.astro'
// import QuotedTweetContainer from './QuotedTweetContainer.astro'
// import QuotedTweetHeader from './QuotedTweetHeader.astro'
// import QuotedTweetBody from './QuotedTweetBody.astro'
// import TweetMedia from '../TweetMedia.astro'
interface Props {
tweet: EnrichedQuotedTweet
}
const { tweet } = Astro.props
// const { tweet } = Astro.props
---

<QuotedTweetContainer tweet={tweet}>
<!--<QuotedTweetContainer tweet={tweet}>
<QuotedTweetHeader tweet={tweet} />
<QuotedTweetBody tweet={tweet} />
<!-- {tweet.mediaDetails?.length ? <TweetMedia quoted tweet={tweet} /> : null} -->
</QuotedTweetContainer>
{tweet.mediaDetails?.length ? <TweetMedia quoted tweet={tweet} /> : null}
</QuotedTweetContainer> -->
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ interface Props {
---

<p class={styles.root}>
{Astro.props.tweet.entities.map((item) => <span>{item.text}</span>)}
{Astro.props.tweet.entities.map((item) => <span set:html={item.text} />)}
</p>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
position: relative;
height: 20px;
width: 20px;
flex-shrink: 0;
}

.avatar img {
border-radius: 100%;
height: 100%;
object-fit: cover;
object-position: center;
width: 100%;
}

.avatarSquare {
Expand Down
3 changes: 2 additions & 1 deletion site/src/pages/showcase.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import Link from '@/components/Link.astro'
</header>
<!-- <div class="lg:max-w-9xl container max-w-2xl gap-8 *:mb-8 lg:columns-2 2xl:columns-3"> -->
<div class="~space-y-6/8 container max-w-2xl">
<Tweet id="1860956737974804866" autoplay />
<Tweet id="1861891285000577303" autoplay />
<Tweet id="1860956737974804866" />
<Tweet id="1837159796564447380" />
<Tweet id="1856379776849907797" />
<Tweet id="1828760806047051899" />
Expand Down

0 comments on commit f99a3eb

Please sign in to comment.