Skip to content

Commit ed9933e

Browse files
committed
add powered by buildship
1 parent 23ac58f commit ed9933e

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

app/layout.tsx

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Metadata } from "next";
22
import { Inter } from "next/font/google";
33
import "./globals.css";
4+
import Image from "next/image";
45

56
const inter = Inter({ subsets: ["latin"] });
67

@@ -16,7 +17,24 @@ export default function RootLayout({
1617
}>) {
1718
return (
1819
<html lang="en">
19-
<body className={inter.className}>{children}</body>
20+
<body className={inter.className}>
21+
<div className="pb-16">{children}</div>
22+
<div className="fixed bottom-0 left-0 w-full bg-slate-100 py-2">
23+
<a
24+
href="https://buildship.com/"
25+
className="flex justify-center items-center"
26+
>
27+
<p className="text-secondary-foreground">Powered by </p>{" "}
28+
<Image
29+
src="/logo.webp"
30+
width={25}
31+
height={25}
32+
alt="BuildShip logo"
33+
/>
34+
<p>BuildShip</p>
35+
</a>
36+
</div>
37+
</body>
2038
</html>
2139
);
2240
}

components/your-score.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function YourScore({ score, originalGuess, userPrompt, reset }: Props) {
3232

3333
const handleShareOnTwitter = () => {
3434
const gameUrl = window.location.href;
35-
const tweetText = `I scored ${similarityScore}% on the "Guess the Prompt" game! Can you beat my score? #GuessThePrompt\n\nPlay the game: ${gameUrl}`;
35+
const tweetText = `I scored ${similarityScore}% on the "Guess the Prompt" game! Can you beat my score? #GuessThePrompt built with @BuildShipApp\n\nPlay the game: ${gameUrl}`;
3636
const tweetUrl = `https://twitter.com/intent/tweet?text=${encodeURIComponent(
3737
tweetText
3838
)}`;

public/logo.webp

4.31 KB
Binary file not shown.

0 commit comments

Comments
 (0)