-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from SJSUCSClub/132-improve-privacy-policy-to…
…s-robotsts-and-ui-tweaks [Improve] privacy policy, tos, robots.ts, and UI tweaks + bump down react to 18
- Loading branch information
Showing
16 changed files
with
2,289 additions
and
790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { MDXRemote } from 'next-mdx-remote/rsc'; | ||
import React from 'react'; | ||
|
||
export default async function Page() { | ||
const res = await fetch( | ||
process.env.NEXT_PUBLIC_BASE_URL + '/privacy-policy.md', | ||
); | ||
const markdown = await res.text(); | ||
return ( | ||
<main> | ||
<section className="mx-auto flex w-full max-w-content-width items-stretch px-md"> | ||
<div className="flex w-full flex-col items-center justify-between gap-xxl py-xxl"> | ||
<div> | ||
<h1 className="pb-sm max-lg:text-h3-mobile lg:text-h3-desktop"> | ||
Privacy Policy | ||
</h1> | ||
</div> | ||
<div> | ||
<article className="prose dark:prose-invert"> | ||
<MDXRemote source={markdown} /> | ||
</article> | ||
</div> | ||
</div> | ||
</section> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { MDXRemote } from 'next-mdx-remote/rsc'; | ||
import React from 'react'; | ||
|
||
export default async function Page() { | ||
const res = await fetch( | ||
process.env.NEXT_PUBLIC_BASE_URL + '/terms-of-service.md', | ||
); | ||
const markdown = await res.text(); | ||
return ( | ||
<main> | ||
<section className="mx-auto flex w-full max-w-content-width items-stretch px-md"> | ||
<div className="flex w-full flex-col items-center justify-between gap-xxl py-xxl"> | ||
<div> | ||
<h1 className="pb-sm max-lg:text-h3-mobile lg:text-h3-desktop"> | ||
Terms of Service | ||
</h1> | ||
</div> | ||
<div> | ||
<article className="prose dark:prose-invert"> | ||
<MDXRemote source={markdown} /> | ||
</article> | ||
</div> | ||
</div> | ||
</section> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import type { MetadataRoute } from 'next'; | ||
import { generateSitemaps as generateCoursesSitemaps } from '@/app/(main)/courses/sitemap'; | ||
import { generateSitemaps as generateProfessorsSitemaps } from '@/app/(main)/professors/sitemap'; | ||
|
||
export default async function robots(): Promise<MetadataRoute.Robots> { | ||
const coursesSitemaps = (await generateCoursesSitemaps()).map( | ||
(_, index) => `${process.env.NEXT_PUBLIC_BASE_URL}/courses/${index}.xml`, | ||
); | ||
const professorsSitemaps = (await generateProfessorsSitemaps()).map( | ||
(_, index) => `${process.env.NEXT_PUBLIC_BASE_URL}/professors/${index}.xml`, | ||
); | ||
const bridgeSitemaps = coursesSitemaps.concat(professorsSitemaps); | ||
|
||
return { | ||
rules: { | ||
userAgent: '*', | ||
allow: '/', | ||
disallow: '/profile', | ||
}, | ||
sitemap: [`${process.env.NEXT_PUBLIC_BASE_URL}/sitemap.xml`].concat( | ||
bridgeSitemaps, | ||
), | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.