Skip to content

Commit

Permalink
Merge pull request #8 from muriukialex/ft/add-sitemap-file
Browse files Browse the repository at this point in the history
Feat: Add Sitemap File
  • Loading branch information
effiecancode authored Feb 17, 2024
2 parents 9a4b83e + 7cf7cdf commit 708e307
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ body {
}

h1 {
@apply mb-4 mt-4 text-2xl font-bold text-gray-500 sm:text-4xl dark:text-white;
@apply mb-4 mt-4 text-2xl font-bold text-gray-900 sm:text-4xl dark:text-white;
}

h2 {
Expand Down
2 changes: 1 addition & 1 deletion app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const HomePage = () => {
<div>
<button
data-test="sign-out"
className="rounded p-1 px-4 hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50"
className="rounded p-1 px-4 hover:bg-gray-400 disabled:cursor-not-allowed disabled:opacity-50 dark:hover:bg-gray-700"
disabled={buttonStatus.status === "submitting"}
onClick={() => handleSignOut()}
>
Expand Down
12 changes: 10 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,18 @@ const LoginPage = () => {
<div>
<div className="mb-10 flex items-center justify-center">
<Image
className="dark:hidden" // shown in light theme
alt={appTitle}
src="/aws-restart-logo-light.png"
width={128}
height={75}
/>
<Image
className="hidden dark:block" // shown in dark theme
alt={appTitle}
src="/aws-restart-logo.png"
width={120}
height={50}
width={128}
height={75}
/>
</div>
<div className="mb-4">
Expand Down
18 changes: 18 additions & 0 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { MetadataRoute } from "next"

export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: "https://aws-rstart-labs.vercel.app",
lastModified: new Date(),
changeFrequency: "monthly",
priority: 1,
},
{
url: "https://aws-rstart-labs.vercel.app/home",
lastModified: new Date(),
changeFrequency: "monthly",
priority: 0.8,
},
]
}
2 changes: 1 addition & 1 deletion components/UI/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Divider = () => {
return <hr className="bg-white dark:bg-gray-500" />
return <hr className="h-px border-0 bg-black dark:bg-gray-200"></hr>
}

export default Divider
2 changes: 1 addition & 1 deletion components/UI/Lab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Lab = ({ email, lab, data, mutate }: LabProps) => {
<input
data-test={`lab-checkbox-${lab.labId}`}
type="checkbox"
className="before:content[''] border-blue-gray-200 before:bg-blue-gray-500 peer relative h-5 w-5 cursor-pointer appearance-none rounded-md border transition-all before:absolute before:left-2/4 before:top-2/4 before:block before:h-12 before:w-12 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity checked:border-gray-900 checked:bg-blue-700 checked:before:bg-gray-900 hover:before:opacity-10 dark:checked:border-gray-200 dark:checked:before:bg-gray-200"
className="before:content[''] peer relative h-5 w-5 cursor-pointer appearance-none rounded-md border border-gray-900 transition-all before:absolute before:left-2/4 before:top-2/4 before:block before:h-12 before:w-12 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity checked:border-gray-900 checked:bg-blue-700 checked:before:bg-gray-900 hover:before:opacity-10 dark:border-white dark:checked:border-gray-200 dark:checked:before:bg-gray-200"
id={lab.name}
onChange={(e) => handleTrackLab({ event: e, lab })}
checked={completed}
Expand Down
4 changes: 2 additions & 2 deletions components/UI/Loading/LoadingLabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const LoadingLabs = () => {
{loadingItems.map((_, idx) => (
<li
key={idx}
className="h-10 w-full rounded bg-gray-200 dark:bg-gray-700"
></li>
className="h-10 w-full rounded bg-gray-500 dark:bg-gray-700"
/>
))}
</ul>
</div>
Expand Down
27 changes: 20 additions & 7 deletions components/UI/Loading/LoadingLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
import { appTitle } from "@/lib/const"
import Image from "next/image"

const LoadingLogo = () =>{
return (
<div className="h-screen flex items-center justify-center animate-bounce">
<Image alt={appTitle} src="/aws-restart-logo.png" width={120} height={50} />
</div>
)
const LoadingLogo = () => {
return (
<div className="flex h-screen animate-bounce items-center justify-center">
<Image
className="dark:hidden" // shown in light theme
alt={appTitle}
src="/aws-restart-logo-light.png"
width={128}
height={75}
/>
<Image
className="hidden dark:block" // shown in dark theme
alt={appTitle}
src="/aws-restart-logo.png"
width={128}
height={75}
/>
</div>
)
}

export default LoadingLogo
export default LoadingLogo
6 changes: 3 additions & 3 deletions lib/metadata-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ export const metaDataOptions: Metadata = {
},
},
robots: {
index: false,
index: true,
follow: true,
nocache: true,
googleBot: {
index: true,
follow: false,
noimageindex: true,
follow: true,
noimageindex: false,
"max-video-preview": -1,
"max-image-preview": "large",
"max-snippet": -1,
Expand Down
Binary file added public/aws-restart-logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 708e307

Please sign in to comment.