Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fixed positioning bug

Steven Tey22309d6a5843
diff --git a/components/home/testimonials.tsx b/components/home/testimonials.tsx
index 90f5d3a850..4e6c2c4985 100644
--- a/components/home/testimonials.tsx
+++ b/components/home/testimonials.tsx
@@ -22,7 +22,7 @@ export default function Testimonials({
Don't take it from us - here's what our users have to say about Dub.
</p>
</div>
- <div className="block space-y-6 py-8 sm:columns-2 sm:gap-6 xl:columns-3">
+ <div className="space-y-6 py-8 sm:columns-2 sm:gap-6 xl:columns-3">
{tweets.map((tweet, idx) => (
<Tweet
key={tweet.id}
@@ -31,7 +31,7 @@ export default function Testimonials({
className={
idx < Math.floor(tweets.length / 3) ||
idx >= Math.floor(tweets.length / 3) * 2
- ? "lg:translate-y-16"
+ ? "relative lg:top-16"
: ""
}
/>
diff --git a/components/shared/tweet.tsx b/components/shared/tweet.tsx
index d92c908264..04fa7bda22 100644
--- a/components/shared/tweet.tsx
+++ b/components/shared/tweet.tsx
@@ -75,18 +75,15 @@ export default function Tweet({
return (
<Tilt
glareEnable={true}
- glareMaxOpacity={0.4}
+ glareMaxOpacity={0.3}
glareColor="#ffffff"
glarePosition="all"
glareBorderRadius="8px"
tiltMaxAngleX={10}
tiltMaxAngleY={10}
+ className={className}
>
- <div
- className={`${
- className || ""
- } break-inside-avoid rounded-lg border border-gray-300 bg-white/10 p-6 pb-4 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.3)] backdrop-blur-sm`}
- >
+ <div className="break-inside-avoid rounded-lg border border-gray-300 bg-white/20 bg-clip-padding p-6 pb-4 backdrop-blur-lg backdrop-filter">
{/* User info, verified badge, twitter logo, text, etc. */}
<div>
<div className="flex items-center justify-between">