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) {
151 <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">151 <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">
152 <span class="block truncate">{routeLabel()}</span>152 <span class="block truncate">{routeLabel()}</span>
153 </div>153 </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)}>
155 <IconSparkles class="h-4 w-4" />155 <IconSparkles class="h-4 w-4" />
156 {t("ai.askCelebi")}156 {t("ai.askCelebi")}
157 </Button>157 </Button>
src/components/ui/button.tsxmodified+6 -4
@@ -4,14 +4,16 @@ import { type ComponentProps, type ValidComponent, splitProps } from "solid-js";
4 import { cn } from "@/lib/cn";4 import { cn } from "@/lib/cn";
5 5
6 export const buttonVariants = cva(6 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",
8 {8 {
9 variants: {9 variants: {
10 variant: {10 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)]",11+ default:
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)]",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",
13 outline:15 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",
15 secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 dark:hover:bg-secondary/90",17 secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 dark:hover:bg-secondary/90",
16 ghost: "hover:bg-secondary/80 hover:text-foreground dark:hover:bg-white/[0.08]",18 ghost: "hover:bg-secondary/80 hover:text-foreground dark:hover:bg-white/[0.08]",
17 link: "text-primary underline-offset-4 hover:underline hover:translate-y-0 hover:scale-100",19 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() {
79 <IconPlus class="h-4 w-4" />79 <IconPlus class="h-4 w-4" />
80 {t("notes.new")}80 {t("notes.new")}
81 </Button>81 </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)}>
83 <IconUploadCloud class="h-4 w-4" />83 <IconUploadCloud class="h-4 w-4" />
84 İçe Aktar84 İçe Aktar
85 </Button>85 </Button>
src/pages/questions-page.tsxmodified+14 -9
@@ -50,15 +50,20 @@ function QuestionsContent() {
50 50
51 return (51 return (
52 <div class="space-y-6">52 <div class="space-y-6">
53- <div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">53+ <PageHeader
54- <PageHeader accent="violet" eyebrow={t("nav.group.community")} title={t("pool.title")} description={t("pool.subtitle")} />54+ accent="violet"
55- <Show when={auth.user()?.role === "student"}>55+ eyebrow={t("nav.group.community")}
56- <Button onClick={() => setAskOpen(true)}>56+ title={t("pool.title")}
57- <IconPlus class="mr-2 h-4 w-4" />57+ description={t("pool.subtitle")}
58- {t("pool.ask")}58+ actions={
59- </Button>59+ <Show when={auth.user()?.role === "student"}>
60- </Show>60+ <Button type="button" size="sm" class="rounded-lg" onClick={() => setAskOpen(true)}>
61- </div>61+ <IconPlus class="h-4 w-4" />
62+ {t("pool.ask")}
63+ </Button>
64+ </Show>
65+ }
66+ />
62 67
63 <div class="flex gap-2 border-b">68 <div class="flex gap-2 border-b">
64 <Link69 <Link