diff --git a/apps/main/next.config.js b/apps/main/next.config.js index 034e7e9e..83980019 100644 --- a/apps/main/next.config.js +++ b/apps/main/next.config.js @@ -4,7 +4,7 @@ const { withSentryConfig } = require("@sentry/nextjs") const NextConfigs = { assetPrefix: "/assets", poweredByHeader: false, - productionBrowserSourceMaps: false, + productionBrowserSourceMaps: true, compress: true, transpilePackages: ["@twilight-toolkit/ui", "@twilight-toolkit/utils"], images: { diff --git a/apps/main/src/components/Banners/PagesAndLinks/index.tsx b/apps/main/src/components/Banners/PagesAndLinks/index.tsx index 12ddc7dc..b4cbd633 100644 --- a/apps/main/src/components/Banners/PagesAndLinks/index.tsx +++ b/apps/main/src/components/Banners/PagesAndLinks/index.tsx @@ -46,6 +46,7 @@ const PagesAndLinks = () => {
diff --git a/apps/main/src/components/Banners/Research/index.tsx b/apps/main/src/components/Banners/Research/index.tsx index ef33c19f..19e95cb5 100644 --- a/apps/main/src/components/Banners/Research/index.tsx +++ b/apps/main/src/components/Banners/Research/index.tsx @@ -10,7 +10,7 @@ const NexusPaper = () => { NEXUS
-
@@ -45,9 +45,10 @@ const NexusPaper = () => {
@@ -68,7 +69,7 @@ const NexusPaper = () => { LookAhead
-
diff --git a/apps/main/src/pages/index.tsx b/apps/main/src/pages/index.tsx index bfb0957e..a25ad1ee 100644 --- a/apps/main/src/pages/index.tsx +++ b/apps/main/src/pages/index.tsx @@ -1,9 +1,7 @@ import { Icon } from "@twilight-toolkit/ui" -// import { GetStaticProps } from "next" import Head from "next/head" import Link from "next/link" -import React, { useEffect, useState } from "react" -// import NextJS13Preview from "~/components/Banners/NextJS13Preview" +import React, { useState } from "react" import PagesAndLinks from "~/components/Banners/PagesAndLinks" import ResearchPapers from "~/components/Banners/Research" import EmploymentCard from "~/components/Card/Employment" @@ -14,10 +12,6 @@ import SubscriptionBox from "~/components/SubscriptionBox" import Top from "~/components/Top" import { NextPageWithLayout } from "~/pages/_app" -// import getAPI from "~/utilities/api" - -const GREETINGS = [" there, it's Tony", ", Tony here", ", I'm Tony"] - const Emphasis = ({ name, className, @@ -42,397 +36,352 @@ const Emphasis = ({ ) -// interface Props { -// stickyNotFound: boolean -// stickyPosts: any -// } - -const Home: NextPageWithLayout = () => - // { - // stickyNotFound: _1, - // stickyPosts: _2, - // }: Props - { - const [_greeting, setGreeting] = useState(GREETINGS[0]) - const [showPosts, setShowPosts] = useState(false) +const Home: NextPageWithLayout = () => { + const [showPosts, setShowPosts] = useState(false) - useEffect(() => { - const greetingNumber = Math.floor(Math.random() * 10) % 3 - setGreeting(GREETINGS[greetingNumber]) - }, []) - - return ( - <> - - Tony (Lipeng) He - -
-
-

- - 👋 - - Hello, and welcome! -

-
-

- My name is Lipeng He - - - Tony - - , and I am currently a student 👨‍🎓 and researcher 🔬 with the{" "} - - - - - - - - University of Waterloo{" "} - . -

-

- I was previously a{" "} - - Intern - - Full Stack Software Engineer{" "} - at various technology startups based in Toronto, Canada 🇨🇦. -

-
-
-
-
-
+ + ) +} Home.layout = pageLayout -// export const getStaticProps: GetStaticProps = async () => { -// const getStickyPostsResponse = await fetch( -// getAPI("internal", "posts", { -// sticky: true, -// perPage: 10, -// cateExclude: "5,2,74,335", -// }) -// ) - -// const stickyPostData = await getStickyPostsResponse.json() - -// return { -// props: { -// stickyNotFound: !stickyPostData, -// stickyPosts: stickyPostData, -// }, -// revalidate: 3600 * 24 * 31, -// } -// } - export default Home