hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import type { ParentProps } from "solid-js"; |
| 2 | import { LogoMark } from "@/components/brand/logo-mark"; |
| 3 | |
| 4 | export function AuthPageShell(props: ParentProps<{ title: string; subtitle: string }>) { |
| 5 | return ( |
| 6 | <div class="relative isolate -mx-4 -my-6 grid min-h-[calc(var(--app-viewport)-3.5rem)] place-items-center overflow-hidden px-4 py-10 sm:-mx-6 sm:px-6 sm:py-14 lg:-mx-10 lg:px-10"> |
| 7 | <div aria-hidden="true" class="pointer-events-none absolute inset-0 overflow-hidden"> |
| 8 | <div class="absolute left-1/2 top-[-15rem] h-[30rem] w-[46rem] -translate-x-1/2 rounded-full bg-primary/10 blur-3xl" /> |
| 9 | <div class="absolute bottom-[-13rem] right-[-10rem] h-80 w-80 rounded-full bg-primary/5 blur-3xl" /> |
| 10 | </div> |
| 11 | |
| 12 | <div class="relative w-full max-w-[480px]"> |
| 13 | <div aria-hidden="true" class="absolute -inset-px rounded-xl bg-gradient-to-b from-primary/25 via-border-line to-border-line" /> |
| 14 | <div class="relative overflow-hidden rounded-xl border border-border-line/70 bg-surface-base px-6 pb-8 pt-8 shadow-[0_28px_80px_-42px_rgba(0,0,0,0.65)] sm:px-10 sm:pb-9 sm:pt-9"> |
| 15 | <div aria-hidden="true" class="absolute inset-x-16 top-0 h-px bg-gradient-to-r from-transparent via-primary/80 to-transparent" /> |
| 16 | |
| 17 | <div class="mb-8 text-center"> |
| 18 | <div class="mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-xl border border-primary/15 bg-primary/5 text-text-strong shadow-sm"> |
| 19 | <LogoMark size={38} /> |
| 20 | </div> |
| 21 | <h1 class="text-[28px] font-semibold leading-9 tracking-[-0.025em] text-text-strong"> |
| 22 | {props.title} |
| 23 | </h1> |
| 24 | <p class="mx-auto mt-2 max-w-sm text-sm leading-[21px] text-text-subtle"> |
| 25 | {props.subtitle} |
| 26 | </p> |
| 27 | </div> |
| 28 | |
| 29 | {props.children} |
| 30 | </div> |
| 31 | </div> |
| 32 | </div> |
| 33 | ); |
| 34 | } |