Skip to content

Commit

Permalink
Put back index
Browse files Browse the repository at this point in the history
  • Loading branch information
faces-of-eth committed Oct 19, 2023
1 parent 67da1d3 commit 60aaca1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 61 deletions.
59 changes: 0 additions & 59 deletions packages/web/src/pages/index-old.tsx

This file was deleted.

38 changes: 36 additions & 2 deletions packages/web/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import styled from '@emotion/styled';
import { PageWrapper } from 'ui/styles/components';
import Head from 'components/Head';
import Image from 'next/image';
import AboutWindow from 'features/about/components/AboutWindow';
import Cookies from 'js-cookie';
import DesktopIconList from 'components/DesktopIconList';
Expand All @@ -18,8 +17,43 @@ const IndexPage = () => {
return (
<IndexWrapper>
<Head />
<Image src="/images/under-construction.gif" alt="Under Construction" layout="fill" />
<DesktopIconList />
{Cookies.get('aboutWindowVisible') !== 'false' && (
<AboutWindow
posX={64}
posY={-16}
onClose={() => Cookies.set('aboutWindowVisible', 'false', { expires: 3 })}
/>
)}
{/* {Cookies.get('newsWindowVisible') !== 'false' && (
<NewsWindow
allPosts={allPosts}
posX={0}
posY={32}
onClose={() => Cookies.set('newsWindowVisible', 'false', { expires: 3 })}
/>
)} */}
</IndexWrapper>
);
};
export default IndexPage;

// Server-side rendered with Next.js so that
// we gather our news posts from the filesystem on server.
// export const getStaticProps = async () => {
// const allPosts = getAllPosts([
// 'title',
// 'date',
// 'slug',
// 'author',
// 'coverImage',
// 'coverImageText',
// 'excerpt',
// 'location',
// 'description',
// ]);

// return {
// props: { allPosts },
// };
// };

0 comments on commit 60aaca1

Please sign in to comment.