Skip to content

Commit 922b16f

Browse files
committed
style tweawks
1 parent 5d3f414 commit 922b16f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

usehooks.com/src/components/CountdownTimer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ const Countdown: React.FC<CountdownProps> = ({ targetDate }) => {
6767
}
6868

6969
return (
70-
<div className="countdown flex gap-2 justify-center">
70+
<div className="countdown flex gap-1 justify-center text-md">
7171
{["days", "hours", "minutes", "seconds"].map((unit, index) => (
7272
<Fragment key={unit}>
7373
{index > 0 && <span className="h-[2rem] grid place-content-center">:</span>}
7474
<div className={`${unit} grid grid-cols-2 gap-x-1 gap-y-1.5`}>
75-
<span className="h-[2.3rem] aspect-square grid place-content-center rounded-sm bg-brand-beige bg-opacity-10 font-semibold">
75+
<span className="h-[2.2em] aspect-[6/7] grid place-content-center rounded-sm bg-brand-beige bg-opacity-10 font-semibold">
7676
{formatNumber(timeLeft[unit as keyof TimeLeft]).charAt(0)}
7777
</span>
78-
<span className="h-[2.3rem] aspect-square grid place-content-center rounded-sm bg-brand-beige bg-opacity-10 font-semibold">
78+
<span className="h-[2.2em] aspect-[6/7] grid place-content-center rounded-sm bg-brand-beige bg-opacity-10 font-semibold">
7979
{formatNumber(timeLeft[unit as keyof TimeLeft]).charAt(1)}
8080
</span>
8181
<p className="col-span-full text-xs">{unit}</p>

usehooks.com/src/components/QueryGGBanner.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import CountdownTimer from "./CountdownTimer";
99
>
1010
<a
1111
href="https://query.gg?s=usehooks"
12-
class="lg:w-7/12 pb-4 grid grid-cols-[70px_1fr_70px] sm:grid-cols-[100px_1fr_100px] lg:grid-cols-[110px_1fr] xl:grid-cols-[150px_1fr]"
12+
class="lg:w-[55%] pb-4 grid grid-cols-[70px_1fr_70px] sm:grid-cols-[100px_1fr_100px] lg:grid-cols-[110px_1fr] xl:grid-cols-[150px_1fr]"
1313
>
1414
<img src={"/img/querygg/corner-top-left.svg"} alt="" class="sun" />
1515
<img
@@ -28,7 +28,7 @@ import CountdownTimer from "./CountdownTimer";
2828
>
2929
</div>
3030
<div
31-
class="lg:w-5/12 py-2 lg:pb-0 grid lg:grid-cols-[1fr_90px] xl:grid-cols-[1fr_120px] justify-center bg-brand-charcoal border-2 lg:border-4 lg:border-l-0 border-solid border-brand-beige text-brand-beige z-10"
31+
class="lg:w-[45%] py-2 lg:pb-0 grid lg:grid-cols-[1fr_90px] xl:grid-cols-[1fr_120px] justify-center bg-brand-charcoal border-2 lg:border-4 lg:border-l-0 border-solid border-brand-beige text-brand-beige z-10"
3232
>
3333
<div class="my-2 uppercase text-center place-self-center text-[1.1rem]">
3434
<h2 class="mb-3 font-semibold">Launch sale happening now</h2>

0 commit comments

Comments
 (0)