forge
Explore
Log in

Don't you dare go Hollow

🎨 unify button theme with Çelebi style, equalize Notes header buttons, and expand Question Bank header

Browse files at this commit

98ed085b014bc7b10a0a66fe9d2ae494524fbca3Burak BoduroğluParent: 245b827
  • style
    • 🎨 unify button theme with Çelebi style, equalize Notes header buttons, and expand Question Bank header
Show full message
style: 🎨 unify button theme with Çelebi style, equalize Notes header buttons, and expand Question Bank header
- adopt Çelebi translucent primary background with glowing hairline border & ring for default button variant
- remove heavy outer shadow glow from button variants
- equalize button widths (min-w-[7.5rem]) on Notes page header actions
- update Questions page header to use full-width PageHeader with actions prop
src/components/layout/app-shell.tsxmodified+1 -1
@@ -151,7 +151,7 @@ export function AppShell(props: ParentProps) {
151151 <div class="min-w-0 rounded-full border border-black/[0.06] dark:border-white/[0.08] bg-card/80 px-3.5 py-1 text-xs font-semibold text-muted-foreground shadow-sm">
152152 <span class="block truncate">{routeLabel()}</span>
153153 </div>
154- <Button type="button" variant="outline" size="sm" class="h-9 rounded-full border-primary/30 bg-primary/10 text-primary shadow-sm hover:bg-primary/20 active:scale-[0.97]" onClick={() => setCelebiOpen(true)}>
154+ <Button type="button" variant="default" size="sm" class="h-9 rounded-full" onClick={() => setCelebiOpen(true)}>
155155 <IconSparkles class="h-4 w-4" />
156156 {t("ai.askCelebi")}
157157 </Button>
src/components/ui/button.tsxmodified+6 -4
@@ -4,14 +4,16 @@ import { type ComponentProps, type ValidComponent, splitProps } from "solid-js";
44 import { cn } from "@/lib/cn";
55
66 export const buttonVariants = cva(
7- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:-translate-y-0.5 hover:scale-[1.015] active:translate-y-0 active:scale-[0.97] active:opacity-90",
7+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-semibold transition-all duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:-translate-y-0.5 hover:scale-[1.015] active:translate-y-0 active:scale-[0.97] active:opacity-90",
88 {
99 variants: {
1010 variant: {
11- default: "bg-primary text-primary-foreground shadow-apple hover:bg-primary/90 hover:shadow-apple-hover dark:hover:shadow-[0_0_20px_rgba(59,130,246,0.35)]",
12- destructive: "bg-destructive text-destructive-foreground shadow-apple hover:bg-destructive/90 dark:hover:shadow-[0_0_20px_rgba(244,63,94,0.35)]",
11+ default:
12+ "border border-primary/40 bg-primary/15 text-primary ring-1 ring-primary/25 shadow-xs hover:bg-primary/25 hover:border-primary/60 hover:ring-primary/40 dark:bg-primary/20 dark:text-foreground dark:hover:bg-primary/30",
13+ destructive:
14+ "border border-destructive/40 bg-destructive/15 text-destructive ring-1 ring-destructive/25 shadow-xs hover:bg-destructive/25 hover:border-destructive/60 hover:ring-destructive/40 dark:bg-destructive/20 dark:text-destructive-foreground dark:hover:bg-destructive/30",
1315 outline:
14- "border border-black/[0.08] dark:border-indigo-500/30 bg-background/80 shadow-sm hover:bg-secondary hover:text-foreground hover:border-black/20 dark:hover:border-indigo-400/60 dark:hover:ring-1 dark:hover:ring-indigo-400/30 dark:hover:shadow-[0_0_16px_rgba(99,102,241,0.25)]",
16+ "border border-black/[0.08] dark:border-indigo-500/30 bg-background/80 shadow-xs hover:bg-secondary hover:text-foreground hover:border-black/20 dark:hover:border-indigo-400/60 dark:hover:ring-1 dark:hover:ring-indigo-400/30",
1517 secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 dark:hover:bg-secondary/90",
1618 ghost: "hover:bg-secondary/80 hover:text-foreground dark:hover:bg-white/[0.08]",
1719 link: "text-primary underline-offset-4 hover:underline hover:translate-y-0 hover:scale-100",
src/pages/notes-page.tsxmodified+1 -1
@@ -79,7 +79,7 @@ function NotesContent() {
7979 <IconPlus class="h-4 w-4" />
8080 {t("notes.new")}
8181 </Button>
82- <Button type="button" variant="outline" size="sm" class="rounded-lg" onClick={() => setImportOpen(true)}>
82+ <Button type="button" variant="outline" size="sm" class="min-w-[7.5rem] rounded-lg" onClick={() => setImportOpen(true)}>
8383 <IconUploadCloud class="h-4 w-4" />
8484 İçe Aktar
8585 </Button>
src/pages/questions-page.tsxmodified+14 -9
@@ -50,15 +50,20 @@ function QuestionsContent() {
5050
5151 return (
5252 <div class="space-y-6">
53- <div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
54- <PageHeader accent="violet" eyebrow={t("nav.group.community")} title={t("pool.title")} description={t("pool.subtitle")} />
55- <Show when={auth.user()?.role === "student"}>
56- <Button onClick={() => setAskOpen(true)}>
57- <IconPlus class="mr-2 h-4 w-4" />
58- {t("pool.ask")}
59- </Button>
60- </Show>
61- </div>
53+ <PageHeader
54+ accent="violet"
55+ eyebrow={t("nav.group.community")}
56+ title={t("pool.title")}
57+ description={t("pool.subtitle")}
58+ actions={
59+ <Show when={auth.user()?.role === "student"}>
60+ <Button type="button" size="sm" class="rounded-lg" onClick={() => setAskOpen(true)}>
61+ <IconPlus class="h-4 w-4" />
62+ {t("pool.ask")}
63+ </Button>
64+ </Show>
65+ }
66+ />
6267
6368 <div class="flex gap-2 border-b">
6469 <Link