Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copyright/disclaimer to footer #32

Merged
merged 3 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body {
overflow: hidden;
display: block;
position: relative;
padding-bottom: 100px;
padding-bottom: 150px;
/* height of your footer */
}

Expand All @@ -28,5 +28,5 @@ footer {
position: absolute;
bottom: 0;
width: 100%;
height: 100px;
height: 150px;
}
9 changes: 8 additions & 1 deletion app/link/[slug]/native/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ export default async function Page({ params }: { params: { slug: string } }) {
Click this link to launch CGS for {game.name}
</Link>
</p>
<Footer />
{game.copyright && (
<Footer
disclaimer={
game.name + " is trademark/copyright of " + game.copyright
}
/>
)}
{!game.copyright && <Footer />}
</main>
);
}
9 changes: 8 additions & 1 deletion app/link/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ export default async function Page({ params }: { params: { slug: string } }) {
View in web browser (NOT Recommended)
</Link>
</p>
<Footer />
{game.copyright && (
<Footer
disclaimer={
game.name + " is trademark/copyright of " + game.copyright
}
/>
)}
{!game.copyright && <Footer />}
</main>
);
}
9 changes: 8 additions & 1 deletion app/link/[slug]/steam/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ export default async function Page({ params }: { params: { slug: string } }) {
</li>
<li>Paste the AutoUpdateUrl and submit</li>
</ol>
<Footer />
{game.copyright && (
<Footer
disclaimer={
game.name + " is trademark/copyright of " + game.copyright
}
/>
)}
{!game.copyright && <Footer />}
</main>
);
}
9 changes: 8 additions & 1 deletion app/link/[slug]/web/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ export default async function Page({ params }: { params: { slug: string } }) {
<Link href={"/link/" + params.slug + "/native"}>Launch native app</Link>
</p>
<UnityWeb url={game.autoUpdateUrl} />
<Footer />
{game.copyright && (
<Footer
disclaimer={
game.name + " is trademark/copyright of " + game.copyright
}
/>
)}
{!game.copyright && <Footer />}
</main>
);
}
6 changes: 4 additions & 2 deletions components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import Link from "next/link";

export default function Footer() {
export default function Footer({ disclaimer }: { disclaimer?: string }) {
return (
<footer>
<hr />
{disclaimer && <p>{disclaimer}</p>}
{!disclaimer && <p>Finol Digital LLC ©2023</p>}
<p>
<Link href="/">CGS Games Homepage</Link>
<Link href="/">CGS Games</Link>
</p>
<p>
<Link href="/link">CGS Games List</Link>
Expand Down
1 change: 1 addition & 0 deletions lib/firebase/firestore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export async function getGame(slug: string) {
name: doc.get("name"),
bannerImageUrl: doc.get("bannerImageUrl"),
autoUpdateUrl: doc.get("autoUpdateUrl"),
copyright: doc.get("copyright"),
};
});
}