uwu tooling ftw (MUAHAHAHAHAHA ONE MUST CONFRONT THE BUN-- TYPE-SCRIPT (get it)
This commit is contained in:
parent
964ef740b0
commit
dba763ea75
22 changed files with 555 additions and 124 deletions
BIN
public/assets/android-chrome-192x192.png
Normal file
BIN
public/assets/android-chrome-192x192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
public/assets/android-chrome-512x512.png
Normal file
BIN
public/assets/android-chrome-512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 359 KiB |
BIN
public/assets/apple-touch-icon.png
Normal file
BIN
public/assets/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
BIN
public/assets/favicon-16x16.png
Normal file
BIN
public/assets/favicon-16x16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 705 B |
BIN
public/assets/favicon-32x32.png
Normal file
BIN
public/assets/favicon-32x32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
public/assets/favicon.ico
Normal file
BIN
public/assets/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
29
public/pages/discover.html
Normal file
29
public/pages/discover.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{{ define "discover" }}
|
||||
<!doctype html>
|
||||
<html>
|
||||
{{ template "header" . }}
|
||||
<body
|
||||
class="h-screen overflow-hidden grid grid-rows-[auto,1fr] bg-gray-900 text-white"
|
||||
>
|
||||
<div class="w-screen text-center">
|
||||
<h1
|
||||
class="text-[3rem] uppercase tracking-[0.05em] text-white/30 bg-clip-text [text-shadow:_4px_4px_4px_rgb(0_0_0_/_0.6),_8px_8px_8px_rgb(0_0_0_/_0.4)]"
|
||||
>
|
||||
Reel of Fortune
|
||||
</h1>
|
||||
<button
|
||||
class="px-6 py-2.5 rounded-lg font-semibold text-white bg-gradient-to-b from-white/10 to-white/3 backdrop-blur-md border border-white/10 shadow-[0_2px_4px_rgba(0,0,0,0.4),_inset_0_1px_0_rgba(255,255,255,0.2)] hover:shadow-[0_0_30px_rgba(255,255,255,0.6),_0_4px_12px_rgba(255,255,255,0.15),_inset_0_1px_0_rgba(255,255,255,0.4)] hover:from-white/20 hover:to-white/10 active:translate-y-[1px] transition-all duration-[900ms] ease-[cubic-bezier(0.4,0,0.2,1)]"
|
||||
hx-get="/api/discover"
|
||||
hx-target="#movies"
|
||||
>
|
||||
Discover movie
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
id="movies"
|
||||
class="flex justify-center items-center overflow-hidden max-w-[80vw] mx-auto p-5"
|
||||
></div>
|
||||
</body>
|
||||
{{ template "footer" . }}
|
||||
</html>
|
||||
{{ end }}
|
||||
7
public/pages/movie.html
Normal file
7
public/pages/movie.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{{ define "movie" }}
|
||||
<html>
|
||||
{{ template "header" . }}
|
||||
<div class="p-16 h-full">{{ template "card" . }}</div>
|
||||
{{ template "footer" . }}
|
||||
</html>
|
||||
{{ end }}
|
||||
42
public/templates/card.html
Normal file
42
public/templates/card.html
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{{ define "card" }}
|
||||
<div
|
||||
id="{{ .ID }}"
|
||||
class="relative w-full h-full max-w-5xl mx-auto bg-white/10 backdrop-blur-md border border-white/20 rounded-2xl shadow-2xl text-white p-5 overflow-hidden flex flex-col"
|
||||
>
|
||||
<div
|
||||
class="flex-grow flex items-center justify-center overflow-hidden rounded-xl"
|
||||
>
|
||||
<img
|
||||
src="https://image.tmdb.org/t/p/original{{ .PosterPath }}"
|
||||
alt="{{ .Title }}"
|
||||
class="rounded-t-lg"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="flex-none pt-4">
|
||||
<div class="flex-auto min-h-0 flex flex-col">
|
||||
<h5 class="text-2xl font-bold leading-tight mb-2">
|
||||
{{ .Title }} ({{ .ReleaseDate }}) - {{ .VoteAverage }}/10
|
||||
</h5>
|
||||
<p class="text-sm text-gray-200">{{ .Overview }}</p>
|
||||
<div
|
||||
id="providers"
|
||||
hx-trigger="load"
|
||||
hx-swap="outerHTML"
|
||||
hx-get="/api/providers/watch/{{ .ID }}?countryCode=US"
|
||||
class="flex w-screen justify-center pt-1"
|
||||
></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fixed inset-0 pointer-events-none -z-10">
|
||||
<img
|
||||
src="https://image.tmdb.org/t/p/original{{ .PosterPath }}"
|
||||
alt="Backdrop"
|
||||
class="w-full h-full object-cover blur-3xl scale-110 opacity-60"
|
||||
/>
|
||||
<div
|
||||
class="absolute inset-0 bg-[radial-gradient(circle_at_center,rgba(51,65,85,0.4)_0%,rgba(30,41,59,0.6)_70%,rgba(17,24,39,0.8)_100%)] mix-blend-multiply"
|
||||
></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
1
public/templates/footer.html
Normal file
1
public/templates/footer.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
{{ define "footer" }} {{ end }}
|
||||
11
public/templates/header.html
Normal file
11
public/templates/header.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{{ define "header" }}
|
||||
<head>
|
||||
<title>Reel of Fortune</title>
|
||||
<!--Use the `title` variable to set the title of the page-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta charset="UTF-8" />
|
||||
<!--Load Tailwind & HTMX-->
|
||||
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.7/dist/htmx.min.js"></script>
|
||||
</head>
|
||||
{{ end }}
|
||||
23
public/templates/providers.html
Normal file
23
public/templates/providers.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{{ define "providers" }}
|
||||
<div id="providers" class="flex gap-2 p-2">
|
||||
{{ range .FlatRate }}
|
||||
<a href="{{ $.Link }}">
|
||||
<img
|
||||
src="https://image.tmdb.org/t/p/original{{ .LogoPath }}"
|
||||
title="{{ .ProviderName }}"
|
||||
alt="{{ .ProviderName }}"
|
||||
class="[&[alt*=Apple]]:mix-blend-screen rounded-lg"
|
||||
/>
|
||||
</a>
|
||||
{{ end }} {{ range .Rent }}
|
||||
<a href="{{ $.Link }}">
|
||||
<img
|
||||
src="https://image.tmdb.org/t/p/original{{ .LogoPath }}"
|
||||
title="{{ .ProviderName }}"
|
||||
alt="{{ .ProviderName }}"
|
||||
class="[&[alt*=Apple]]:mix-blend-screen rounded-lg"
|
||||
/>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue