🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor TweetCard layout and improve styling
Bill Yangff674cc7da82
diff --git a/docs/src/app/components/Tweet.tsx b/docs/src/app/components/Tweet.tsxindex 82e37679d..c871ca01d 100644--- a/docs/src/app/components/Tweet.tsx+++ b/docs/src/app/components/Tweet.tsx@@ -67,7 +67,10 @@ export const TweetSkeleton = ({[key: string]: unknown;}) => (<div- className={cn("flex size-full max-h-max min-w-72 flex-col gap-2 rounded-lg border p-4", className)}+ className={cn(+ "flex size-full max-h-max min-w-72 flex-col gap-2 rounded-lg border p-4",+ className+ )}{...props}><div className="flex flex-row gap-2">@@ -86,7 +89,10 @@ export const TweetNotFound = ({[key: string]: unknown;}) => (<div- className={cn("flex size-full flex-col items-center justify-center gap-2 rounded-lg border p-4", className)}+ className={cn(+ "flex size-full flex-col items-center justify-center gap-2 rounded-lg border p-4",+ className+ )}{...props}><h3>Tweet not found</h3>@@ -232,12 +238,19 @@ export const MagicTweet = ({const enrichedTweet = enrichTweet(tweet);return (<div- className={cn("relative flex size-full max-w-lg flex-col gap-2 overflow-hidden rounded-lg border p-4 backdrop-blur-md bg-neutral-900", className)}+ className={cn(+ "relative flex size-full max-w-lg flex-col gap-2 overflow-hidden rounded-lg border p-4 backdrop-blur-md bg-neutral-900",+ className+ )}{...props}><TweetHeader tweet={enrichedTweet} /><TweetBody tweet={enrichedTweet} />- {/* <TweetMedia tweet={enrichedTweet} /> */}+ {tweet.id_str !== "1920425974954381456" && (+ <div className="hidden sm:block">+ <TweetMedia tweet={enrichedTweet} />+ </div>+ )}</div>);};diff --git a/docs/src/app/page.jsx b/docs/src/app/page.jsxindex 30799e1f0..db32e2561 100644--- a/docs/src/app/page.jsx+++ b/docs/src/app/page.jsx@@ -141,21 +141,55 @@ export default function IndexPage() {See what others think about Rybbit Analytics</p></div>-- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 justify-center">- <TweetCard id="1920470706761929048" />- <TweetCard id="1920379817113088341" />- <TweetCard id="1920318739335033226" />- <TweetCard id="1920258312177594500" />- <TweetCard id="1919793785384386576" />- <TweetCard id="1920316582875496449" />- <TweetCard id="1920425974954381456" />- <TweetCard id="1919290867451404670" />- <TweetCard id="1920192156960239683" />-- <TweetCard id="1920899082253434950" />- <TweetCard id="1921928423284629758" />- <TweetCard id="1921878010417848443" />+ <div className="columns-1 md:columns-2 lg:columns-3 gap-4 space-y-4">+ <TweetCard+ id="1920470706761929048"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1920899082253434950"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1920318739335033226"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1920258312177594500"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1921928423284629758"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1920316582875496449"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1920425974954381456"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1919290867451404670"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1921878010417848443"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1920192156960239683"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1920379817113088341"+ className="break-inside-avoid mb-4"+ />+ <TweetCard+ id="1919793785384386576"+ className="break-inside-avoid mb-4"+ /></div></div></section>diff --git a/docs/src/content/self-hosting-nginx.mdx b/docs/src/content/self-hosting-nginx.mdxindex 1d34c5cb2..ab81271f8 100644--- a/docs/src/content/self-hosting-nginx.mdx+++ b/docs/src/content/self-hosting-nginx.mdx@@ -108,6 +108,7 @@ sudo cat /etc/nginx/sites-available/rybbit```It should include SSL certificate paths and a server block for HTTPS.+</Steps>## Certificate Renewal@@ -128,20 +129,27 @@ sudo certbot renew --dry-runIf you encounter issues:-1. Check Nginx error logs:+1. Make sure your firewall is open to allow HTTP and HTTPS traffic.+ ```bash+ sudo ufw allow 80/tcp+ sudo ufw allow 443/tcp+ sudo ufw status+ ```++2. Check Nginx error logs:```bashsudo tail -f /var/log/nginx/error.log```-2. Verify that the Docker containers are running and exposing the correct ports:+3. Verify that the Docker containers are running and exposing the correct ports:```bashdocker ps```-3. Test connectivity to the backend and client services:+4. Test connectivity to the backend and client services:```bashcurl -v http://localhost:3001curl -v http://localhost:3002```-4. If the Certbot automatic configuration fails, you can manually add SSL configuration to your Nginx server block.+5. If the Certbot automatic configuration fails, you can manually add SSL configuration to your Nginx server block.