Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/[locale]/roadmap/_components/roadmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ const RoadmapPage = () => {
from its current form into a fully scaled, maximally resilient
platform.
</p>
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-4">
<div className="grid grid-cols-1 items-stretch gap-6 md:grid-cols-2 xl:grid-cols-4">
{changesComingItems.map((item) => (
<div
key={item.title}
className="bg-roadmap-card-gradient flex h-full flex-col gap-4 rounded-3xl border p-6"
className="bg-roadmap-card-gradient flex flex-col gap-4 rounded-3xl border p-6"
>
<div className="flex flex-row items-center justify-between gap-4">
<h3 className="m-0">{item.title}</h3>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ListenToPlayer/PlayerWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const PlayerWidget = ({
})
}}
>
<Minimize2 className="stroke-1" />
<Minimize2 className="-m-1 stroke-1" />
</button>
</Tooltip>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Morpher/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Morpher = ({

const morphTimeoutRef = useRef<NodeJS.Timeout | null>(null)
const morphIntervalRef = useRef<NodeJS.Timeout | null>(null)
const counterRef = useRef(0)
const counterRef = useRef(1)
const wordsRef = useRef(words)
const currentTextRef = useRef(currentText)
const isAnimatingRef = useRef(false)
Expand Down Expand Up @@ -117,10 +117,10 @@ const Morpher = ({
// If reduced motion is preferred, show static text cycling
if (prefersReducedMotion) {
morphIntervalRef.current = setInterval(() => {
counterRef.current = (counterRef.current + 1) % wordsRef.current.length
const nextWord = wordsRef.current[counterRef.current]
setCurrentText(nextWord)
currentTextRef.current = nextWord
counterRef.current = (counterRef.current + 1) % wordsRef.current.length
}, 3000)
} else {
// Defer animation start by 2 seconds to improve initial page load
Expand Down
19 changes: 7 additions & 12 deletions src/components/Quiz/QuizWidget/QuizConfetti.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import * as React from "react"

import { cn } from "@/lib/utils/cn"

import { StarConfettiIcon } from "../../icons/quiz"

export const QuizConfetti = () => {
const commonClasses = "absolute"
return (
<div className="relative">
<StarConfettiIcon className={cn(commonClasses, "start-0")} />

<StarConfettiIcon className={cn(commonClasses, "end-0 -scale-x-100")} />
</div>
)
}
export const QuizConfetti = () => (
<div className="relative h-full w-full">
{/* Use left/right (not start/end) to keep SVG orientation correct for placement */}
<StarConfettiIcon className="absolute left-0 max-w-44" />
<StarConfettiIcon className="absolute right-0 max-w-44 -scale-x-100" />
</div>
)
2 changes: 1 addition & 1 deletion src/components/Simulator/screens/ConnectWeb3/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Slider = ({ isConnected, displayUrl, children }: SliderProps) => {
animate={{ scale: 1 }}
transition={{ type: "spring", delay: 0.25 }}
>
<Check className="size-[1em] -rotate-[10deg] text-[4.5rem]" />
<Check className="size-[4.5rem] -rotate-[10deg] stroke-1" />
</motion.div>
<motion.div
key="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const GeneratingKeys = ({
<div className="grid h-full place-items-center bg-background-highlight">
<Flex className="flex-col items-center gap-4">
{/* eslint-disable-next-line no-constant-condition */}
{false && loading ? (
{loading ? (
<motion.div
key="spinner"
initial={{ opacity: 0 }}
Expand All @@ -72,7 +72,12 @@ export const GeneratingKeys = ({
animate={{ scale: 1 }}
transition={{ type: "spring", delay: 0.25 }}
>
<Check className={cn(SPINNER_SIZE, "size-[1em] -rotate-[10deg]")} />
<Check
className={cn(
SPINNER_SIZE,
"size-[1em] -rotate-[10deg] stroke-1"
)}
/>
</motion.div>
)}
<p className="px-4 text-center md:px-8">
Expand Down
5 changes: 4 additions & 1 deletion src/components/Simulator/screens/SendReceive/Success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ export const Success = ({
data-testid="success-icon"
>
<Check
className={cn(ICON_SIZE, "size-[1em] -rotate-[10deg]")}
className={cn(
ICON_SIZE,
"size-[1em] -rotate-[10deg] stroke-1"
)}
/>
</motion.div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const meta = {
content: <TooltipContent />,
children: (
<span data-testid="tooltip-icon">
<Info />
<Info className="size-4" />
</span>
),
},
Expand Down
27 changes: 25 additions & 2 deletions src/components/icons/quiz/star-confetti.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/ui/buttons/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ const buttonVariants = cva(
link: "border-transparent hover:shadow-none underline !min-h-0 !py-0 !px-1 active:text-primary",
},
size: {
lg: "text-lg py-3 px-8 [&>svg]:text-2xl rounded-lg focus-visible:rounded-lg",
md: "min-h-10.5 px-4 py-2 [&>svg]:text-2xl",
sm: "text-xs min-h-[31px] py-1.5 px-2 [&>svg]:text-md",
lg: "text-lg py-3 px-8 [&>svg]:size-6 rounded-lg focus-visible:rounded-lg",
md: "min-h-10.5 px-4 py-2 [&>svg]:size-6",
sm: "text-xs min-h-[31px] py-1.5 px-2 [&>svg]:size-4",
},
},
defaultVariants: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const CarouselPrevious = React.forwardRef<
onClick={scrollPrev}
{...props}
>
<ChevronLeft className="h-8 w-8" />
<ChevronLeft className="size-6" />
<span className="sr-only">Previous slide</span>
</Button>
)
Expand Down Expand Up @@ -246,7 +246,7 @@ const CarouselNext = React.forwardRef<
onClick={scrollNext}
{...props}
>
<ChevronRight className="h-8 w-8" />
<ChevronRight className="size-6" />
<span className="sr-only">Next slide</span>
</Button>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/radio-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const RadioGroupItem = React.forwardRef<
{...props}
>
<RadioGroupPrimitive.Indicator className="flex items-center justify-center">
<Circle className="size-2 text-[0.5rem]" />
<Circle className="size-2 fill-current" />
</RadioGroupPrimitive.Indicator>
</RadioGroupPrimitive.Item>
)
Expand Down
Loading