-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
106 lines (103 loc) · 3.39 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from '#app/components/ui/dialog.tsx'
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from '#app/components/ui/tooltip.tsx'
import { type MetaFunction } from '@remix-run/node'
import { logos, stars } from './logos/logos.ts'
export const meta: MetaFunction = () => [{ title: 'Epic Notes' }]
export default function Index() {
return (
<main className="relative min-h-screen sm:flex sm:items-center sm:justify-center">
<div className="relative sm:pb-16 sm:pt-8">
<div className="mx-auto max-w-7xl sm:px-6 lg:px-8">
<div className="relative shadow-xl sm:overflow-hidden sm:rounded-2xl">
<div className="absolute inset-0">
<img className="h-full w-full object-cover" src={stars} alt="" />
<div className="absolute inset-0 bg-[color:rgba(30,23,38,0.5)] mix-blend-multiply" />
</div>
<div className="lg:pt-18 relative px-4 pb-8 pt-8 sm:px-6 sm:pb-14 sm:pt-16 lg:px-8 lg:pb-20">
<h1 className="text-center text-mega font-extrabold tracking-tight sm:text-8xl lg:text-9xl">
<a
className="block uppercase text-white drop-shadow-md"
href="https://www.epicweb.dev/stack"
>
<span>Epic Stack</span>
<svg
className="mx-auto mt-2"
xmlns="http://www.w3.org/2000/svg"
width="120"
height="120"
fill="none"
viewBox="0 0 65 65"
>
<path
fill="currentColor"
d="M39.445 25.555 37 17.163 65 0 47.821 28l-8.376-2.445Zm-13.89 0L28 17.163 0 0l17.179 28 8.376-2.445Zm13.89 13.89L37 47.837 65 65 47.821 37l-8.376 2.445Zm-13.89 0L28 47.837 0 65l17.179-28 8.376 2.445Z"
></path>
</svg>
</a>
</h1>
<p className="mx-auto mt-6 max-w-lg text-center text-xl text-white sm:max-w-3xl">
Check the{' '}
<a
className="underline"
href="https://github.com/epicweb-dev/epic-stack/blob/main/docs/getting-started.md"
>
Getting Started
</a>{' '}
guide file for how to get your project off the ground!
</p>
</div>
</div>
</div>
<div className="mx-auto mt-8 max-w-7xl px-4 py-2 sm:px-6 lg:px-8">
<div className="flex flex-wrap justify-center gap-8 rounded-3xl bg-slate-100 py-4 dark:bg-slate-200">
<TooltipProvider>
{logos.map(img => (
<Tooltip key={img.href}>
<TooltipTrigger asChild>
<a
href={img.href}
className="flex h-16 w-32 justify-center p-1 grayscale transition hover:grayscale-0 focus:grayscale-0"
>
<img
alt={img.alt}
src={img.src}
className="object-contain"
/>
</a>
</TooltipTrigger>
<TooltipContent>{img.alt}</TooltipContent>
</Tooltip>
))}
</TooltipProvider>
</div>
</div>
<Dialog>
<DialogTrigger className="text-9xl text-orange-500">
Open
</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Are you sure absolutely sure?</DialogTitle>
<DialogDescription>
This action cannot be undone. This will permanently delete your
account and remove your data from our servers.
</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog>
</div>
</main>
)
}