Skip to content

Commit

Permalink
Fix page props
Browse files Browse the repository at this point in the history
  • Loading branch information
moerabaya committed Apr 2, 2024
1 parent 29f6d52 commit a5daacd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { getProjects } from "pages";
function MyApp({ Component, pageProps }: AppProps) {
return (
<ThemeProvider {...pageProps}>
<Layout>
<Layout pageProps={pageProps}>
<Component {...pageProps} />
</Layout>
</ThemeProvider>
Expand All @@ -27,7 +27,6 @@ MyApp.getInitialProps = async (context: any) => {
const passwords = cookies.get(consts.SiteReadCookie) ?? {};

const projects = await getProjects();
console.log(passwords);

projects.map((project) => {
const password = project.password;
Expand Down
4 changes: 2 additions & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ const Home: NextPage<Props> = ({ projects }: Props) => {
</div>
<div className="container max-w-5xl mx-auto px-5">{WorkItems()}</div>
<div className="py-20 bg-stone-100 dark:bg-neutral-950 px-5 max-md:py-12">
<div className="container mx-auto max-w-2xl flex items-center justify-between">
<div className="container mx-auto max-w-2xl flex items-center justify-between max-sm:flex-col max-sm:w-full max-sm:w-full">
<h2 className="font-medium text-stone-800 dark:text-neutral-50 max-md:text-2xl">
{getLocalizedString("home", "contact-title")}
</h2>
<a
href="mail:[email protected]"
className="px-8 py-3 ms-5 max-md:py-2 max-md:px-6 font-medium text-lg bg-stone-200 hover:bg-neutral-950 hover:text-neutral-50 dark:bg-neutral-900 dark:hover:text-neutral-950 dark:hover:bg-neutral-50 rounded-full"
className="px-8 py-3 ms-5 max-md:py-2 max-md:px-6 font-medium text-lg bg-stone-200 hover:bg-neutral-950 hover:text-neutral-50 dark:bg-neutral-900 dark:hover:text-neutral-950 dark:hover:bg-neutral-50 rounded-full max-sm:w-full max-sm:text-center max-sm:mt-5 max-sm:py-3"
>
{getLocalizedString("home", "contact-button")}
</a>
Expand Down

0 comments on commit a5daacd

Please sign in to comment.