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

fix: Fix broken links and apply navbar to every page #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion src/components/shared/AppFooter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function AppFooter () {
-{' '}
<a
className='text-muted'
href='https://github.com/bennyman123abc/LinkTag-Next'
href='https://github.com/WiiLink24/LinkTag-Next'
rel='external noopener noreferrer'
target='_blank'
>
Expand Down
4 changes: 4 additions & 0 deletions src/pages/about.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ENV from '@/lib/constants/environmentVariables'
import styles from '@/styles/modules/editor-text.module.scss'
import prisma from '@/lib/db'
import { isBlank } from '@/lib/utils/utils'
import AppNavbar from '@/components/shared/AppNavbar'

export async function getStaticProps () {
const about = await prisma.sys.findUnique({
Expand All @@ -26,6 +27,8 @@ export async function getStaticProps () {

function AboutPage ({ about }) {
return (
<>
<AppNavbar />
<Container>
<NextSeo
title='About LinkTag'
Expand All @@ -46,6 +49,7 @@ function AboutPage ({ about }) {
/>
</Row>
</Container>
</>
)
}

Expand Down
8 changes: 6 additions & 2 deletions src/pages/credits.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ENV from '@/lib/constants/environmentVariables'
import { withSession } from '@/lib/iron-session'
import prisma from '@/lib/db'
import Contributor from '@/components/credits/Contributor'
import AppNavbar from '@/components/shared/AppNavbar'

export const getServerSideProps = withSession(async ({ req }) => {
const username = req.session?.username
Expand All @@ -34,6 +35,8 @@ export const getServerSideProps = withSession(async ({ req }) => {

function CreditsPage ({ display_name: wiitagName }) {
return (
<>
<AppNavbar />
<Container>
<NextSeo
title='Credits'
Expand Down Expand Up @@ -61,11 +64,11 @@ function CreditsPage ({ display_name: wiitagName }) {
Added official LinkTag support to his modification of USB Loader GX
</Contributor>
<Contributor name='Brawl345' link='https://wiidatabase.de'>
Completely rewrote LinkTag into version 2.0 (LinkTag-Next)
Completely rewrote RiiTag into version 2.0 (RiiTag-Next)
</Contributor>
<Contributor name='daileon'>
Created Wiinnertag (no longer available), which heavily inspired
LinkTag
RiiTag
</Contributor>
<Contributor name='dhtdht020'>
Created some of the LinkTag overlays
Expand Down Expand Up @@ -136,6 +139,7 @@ function CreditsPage ({ display_name: wiitagName }) {
</Col>
</Row>
</Container>
</>
)
}

Expand Down
4 changes: 4 additions & 0 deletions src/pages/privacy-policy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import prisma from '@/lib/db'
import styles from '@/styles/modules/editor-text.module.scss'
import ENV from '@/lib/constants/environmentVariables'
import { isBlank } from '@/lib/utils/utils'
import AppNavbar from '@/components/shared/AppNavbar'

export async function getStaticProps () {
const privacyPolicy = await prisma.sys.findUnique({
Expand All @@ -26,6 +27,8 @@ export async function getStaticProps () {

function PrivacyPolicyPage ({ privacyPolicy }) {
return (
<>
<AppNavbar />
<Container>
<NextSeo
title='Privacy Policy'
Expand All @@ -45,6 +48,7 @@ function PrivacyPolicyPage ({ privacyPolicy }) {
/>
</Row>
</Container>
</>
)
}

Expand Down
4 changes: 4 additions & 0 deletions src/pages/tos.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import prisma from '@/lib/db'
import styles from '@/styles/modules/editor-text.module.scss'
import ENV from '@/lib/constants/environmentVariables'
import { isBlank } from '@/lib/utils/utils'
import AppNavbar from '@/components/shared/AppNavbar'

export async function getStaticProps () {
const tos = await prisma.sys.findUnique({
Expand All @@ -24,6 +25,8 @@ export async function getStaticProps () {

function TosPage ({ tos }) {
return (
<>
<AppNavbar />
<Container>
<NextSeo
title='Terms of Service'
Expand All @@ -43,6 +46,7 @@ function TosPage ({ tos }) {
/>
</Row>
</Container>
</>
)
}

Expand Down
Loading