-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy pathpage.tsx
126 lines (117 loc) · 4.6 KB
/
page.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
"use client";
import Image from "next/image";
import App from "./components/App";
import { XIcon } from "./components/icons/XIcon";
import { LinkedInIcon } from "./components/icons/LinkedInIcon";
import { FacebookIcon } from "./components/icons/FacebookIcon";
import GitHubButton from "react-github-btn";
const Home = () => {
return (
<>
<div className="h-full overflow-hidden">
{/* height 4rem */}
<div className="bg-gradient-to-b from-black/50 to-black/10 backdrop-blur-[2px] h-[4rem] flex items-center">
<header className="mx-auto w-full max-w-7xl px-4 md:px-6 lg:px-8 flex items-center justify-between">
<div>
<a className="flex items-center" href="/">
<Image
className="w-auto h-8 max-w-[12.5rem] sm:max-w-none"
src="/deepgram.svg"
alt="Deepgram Logo"
width={0}
height={0}
priority
/>
</a>
</div>
<div className="flex items-center gap-6 text-sm">
<span className="mt-1">
<GitHubButton
href="https://github.com/deepgram-starters/nextjs-live-transcription"
data-color-scheme="no-preference: light; light: light; dark: light;"
data-size="large"
data-show-count="true"
aria-label="Star deepgram-starters/nextjs-live-transcription on GitHub"
>
Star
</GitHubButton>
</span>
<span className="gradient-shadow bg-gradient-to-r to-[#13EF93]/50 from-[#149AFB]/80 rounded">
<a
href="https://console.deepgram.com/signup?jump=keys"
target="_blank"
className="hidden text-xs md:inline-block bg-black text-white rounded m-px px-8 py-2 font-semibold"
>
Get an API Key
</a>
</span>
</div>
</header>
</div>
{/* height 100% minus 8rem */}
<main className="mx-auto px-4 md:px-6 lg:px-8 h-[calc(100%-4rem)] -mb-[4rem]">
<App />
</main>
{/* height 4rem */}
<div className="bg-black/80 h-[4rem] flex items-center absolute w-full">
<footer className="mx-auto w-full max-w-7xl px-4 md:px-6 lg:px-8 flex items-center justify-center gap-4 md:text-xl font-inter text-[#8a8a8e]">
<span className="text-base text-[#4e4e52]">share it</span>
<a
href="#"
onClick={(e) => {
window.open(
"https://twitter.com/intent/tweet?text=%F0%9F%94%A5%F0%9F%8E%89%20Check%20out%20this%20awesome%20%23AI%20demo%20by%20%40Deepgram%20and%20%40lukeocodes%0A%0A%20https%3A//aura-tts-demo.deepgram.com",
"",
"_blank, width=600, height=500, resizable=yes, scrollbars=yes"
);
return e.preventDefault();
}}
aria-label="share on twitter"
target="_blank"
>
<XIcon className="mb-1" />
</a>
<a
href="#"
onClick={(e) => {
window.open(
"https://www.linkedin.com/shareArticle?mini=true&url=https%3A//aura-tts-demo.deepgram.com&title=Excellent review on my website reviews",
"",
"_blank, width=600, height=500, resizable=yes, scrollbars=yes"
);
return e.preventDefault();
}}
aria-label="share on Linkedin"
>
<LinkedInIcon className="mb-1" />
</a>
<a
href="#"
onClick={(e) => {
window.open(
"https://www.facebook.com/sharer/sharer.php?u=https%3A//aura-tts-demo.deepgram.com",
"",
"_blank, width=600, height=500, resizable=yes, scrollbars=yes"
);
return e.preventDefault();
}}
target="_blank"
aria-label="share on Facebook"
>
<FacebookIcon className="mb-1" />
</a>
<div className="border-l border-[#4e4e52] w-px h-7"> </div>
<a
className="text-base font-semibold"
href="https://deepgram.com/contact-us"
target="_blank"
>
contact us
</a>
</footer>
</div>
</div>
</>
);
};
export default Home;