jbilcke-hf HF staff commited on
Commit
ff82110
·
1 Parent(s): 03644bc
Files changed (3) hide show
  1. src/app/fonts.ts +11 -0
  2. src/app/globals.css +4 -0
  3. src/app/page.tsx +19 -4
src/app/fonts.ts ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import {
2
+ // Inter, Salsa,
3
+ Arvo,
4
+ Signika_Negative
5
+ } from 'next/font/google'
6
+
7
+
8
+ // export const inter = Inter({ subsets: ['latin'] })
9
+ // export const salsa = Salsa({ subsets: ['latin'], weight: ["400"] })
10
+ export const arvo = Arvo({ subsets: ['latin'], weight: ["400", "700"] })
11
+ export const signika = Signika_Negative({ subsets: ['latin'], weight: ["400", "700", "300", "500", "600"] })
src/app/globals.css CHANGED
@@ -25,3 +25,7 @@ body {
25
  )
26
  rgb(var(--background-start-rgb));
27
  }
 
 
 
 
 
25
  )
26
  rgb(var(--background-start-rgb));
27
  }
28
+
29
+ @keyframes staticnoise {
30
+ 100% {background-position: 50% 0, 60% 50%}
31
+ }
src/app/page.tsx CHANGED
@@ -4,7 +4,8 @@ import { AppQueryProps } from "@/types/general"
4
  import { Main } from "./main"
5
  import { getVideo } from "./api/actions/ai-tube-hf/getVideo"
6
  import { Metadata, ResolvingMetadata } from "next"
7
-
 
8
 
9
  export async function generateMetadata(
10
  { params, searchParams: { v: videoId } }: AppQueryProps,
@@ -82,14 +83,28 @@ export default async function Page({ searchParams: { v: videoId } }: AppQueryPro
82
  neverThrow: true
83
  })
84
  return (
85
- <div className="flex flex-col items-center justify-center h-screen v-screen bg-stone-900">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  <div className="
87
  flex flex-col items-center justify-center text-center
88
  w-3/4 h-full
89
 
90
  ">
91
- <h1 className="text-stone-200 text-6xl font-thin">Say goodbye to static videos.</h1>
92
- <p className="mt-12 text-stone-400 text-xl font-thin">Beta planned for Winter 2024. Follow <a href="x.com/@flngr" className="font-normal font-mono text-stone-400 hover:text-stone-300 hover:underline hover:underline-offset-2" target="_blank">@flngr</a> for updates.</p>
93
  </div>
94
  </div>
95
  )
 
4
  import { Main } from "./main"
5
  import { getVideo } from "./api/actions/ai-tube-hf/getVideo"
6
  import { Metadata, ResolvingMetadata } from "next"
7
+ import { arvo, signika } from './fonts'
8
+ import { cn } from "@/lib/utils/cn"
9
 
10
  export async function generateMetadata(
11
  { params, searchParams: { v: videoId } }: AppQueryProps,
 
83
  neverThrow: true
84
  })
85
  return (
86
+ <div
87
+ className={cn(
88
+ `flex flex-col items-center justify-center h-screen v-screen bg-stone-800`,
89
+ signika.className
90
+ )}
91
+ style={{
92
+ background: `
93
+ repeating-radial-gradient(#0c0a09 0 0.0001%,#393534 0 0.0002%) 50% 0/2500px 2500px,
94
+ repeating-conic-gradient(#0c0a09 0 0.0001%,#393534 0 0.0002%) 60% 60%/2500px 2500px;
95
+ `,
96
+ backgroundBlendMode: 'difference',
97
+ animation: 'staticnoise .2s infinite alternate',
98
+ boxShadow: "inset 0 0 10vh 0 rgb(0 0 0 / 50%)"
99
+ }}
100
+ >
101
  <div className="
102
  flex flex-col items-center justify-center text-center
103
  w-3/4 h-full
104
 
105
  ">
106
+ <h1 className="text-yellow-400/90 text-6xl font-thin">Say goodbye to static videos.</h1>
107
+ <p className="mt-6 text-white/80 text-xl font-thin">Beta planned for Winter 2024. Follow <a href="x.com/@flngr" className="font-normal font-mono text-stone-50/60 hover:text-stone-50/80 hover:underline hover:underline-offset-2" target="_blank">@flngr</a> for updates.</p>
108
  </div>
109
  </div>
110
  )