xonecas.io
4828
Sr

stream-together / commit 20bb348

Small tweaks

Adjusted how I was using the <Link> tag from Next
Changed the padding on the Primary button, and other small UI related
changes

sean2024-06-27 20bb348f0d44e78ec2a00f8cfca8a9c0198e6044 parent 01316c6

5 files changed

app/page.tsx+3−4
@@ -6,10 +6,9 @@ export default function Home() {
66 return (
77 <main className="flex min-h-screen flex-col items-center justify-start p-8 gap-20">
88 <Logo />
9-
10- <PrimaryButton>
11- <Link href="/new">Go live now!</Link>
12- </PrimaryButton>
9+ <Link href="/new">
10+ <PrimaryButton>Go live now!</PrimaryButton>
11+ </Link>
1312 </main>
1413 );
1514 }
components/header.tsx+0−2
@@ -1,6 +1,4 @@
1-import Link from "next/link";
21 import LogoSmall from "./logo-sm";
3-import PrimaryButton from "./primary-button";
42
53 export default function Header() {
64 return (
components/logo-sm.tsx+15−12
@@ -1,19 +1,22 @@
11 import Image from "next/image";
22 import { pacifico } from "./pacifico-font";
3+import Link from "next/link";
34
45 export default function LogoSmall() {
56 return (
6- <div className="flex flex-row items-center justify-center gap-4">
7- <Image
8- src="/stream-together.png"
9- alt="Stream together brand"
10- width={50}
11- height={50}
12- priority
13- />
14- <h2 className={`${pacifico.className} text-4xl text-stone-500`}>
15- Steam Together
16- </h2>
17- </div>
7+ <Link href="/">
8+ <div className="flex flex-row items-center justify-center gap-4">
9+ <Image
10+ src="/stream-together.png"
11+ alt="Stream together brand"
12+ width={50}
13+ height={50}
14+ priority
15+ />
16+ <h2 className={`${pacifico.className} text-4xl text-stone-500`}>
17+ Steam Together
18+ </h2>
19+ </div>
20+ </Link>
1821 );
1922 }
components/logo.tsx+2−2
@@ -4,7 +4,7 @@ import { pacifico } from "./pacifico-font";
44 export default function Logo() {
55 return (
66 <div className="flex flex-col text-stone-500 pb-16 max-w-xl">
7- <div className="flex flex-row items-center justify-start gap-16">
7+ <div className="flex flex-row items-center justify-start gap-12">
88 <Image
99 src="/stream-together.png"
1010 alt="Stream together brand"
@@ -12,7 +12,7 @@ export default function Logo() {
1212 height={100}
1313 priority
1414 />
15- <h1 className={`${pacifico.className} text-8xl`}>Steam Together</h1>
15+ <h1 className={`${pacifico.className} text-8xl`}>Stream Together</h1>
1616 </div>
1717 <p className="self-end text-lg font-light italic">You and I, Online!</p>
1818 </div>
components/primary-button.tsx+1−1
@@ -4,7 +4,7 @@ export default function PrimaryButton({
44 children: React.ReactNode;
55 }>) {
66 return (
7- <div className="text-rose-100 bg-rose-600 hover:bg-rose-900 border-b-8 active:border-b-0 active:border-t-8 border-t-rose-950 border-b-rose-950 font-bold text-2xl p-4 rounded-xl shadow-sm shadow-stone-800 cursor-pointer">
7+ <div className="text-rose-100 bg-rose-600 hover:bg-rose-900 border-b-8 active:border-b-0 active:border-t-8 border-t-rose-950 border-b-rose-950 font-bold text-2xl py-4 px-8 rounded-xl shadow-sm shadow-stone-800 cursor-pointer">
88 {children}
99 </div>
1010 );