Skip to content

Commit

Permalink
chore: hide blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
ttttonyhe committed Dec 31, 2024
1 parent d7de587 commit caeecfb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions apps/main/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import React, { useState } from "react"
import PagesAndLinks from "~/components/Banners/PagesAndLinks"
import EmploymentCard from "~/components/Card/Employment"
import PaperCard from "~/components/Card/Paper"
import List from "~/components/List"
// import List from "~/components/List"
import { pageLayout } from "~/components/Page"
import SubscriptionBox from "~/components/SubscriptionBox"
import Top from "~/components/Top"
import { NextPageWithLayout } from "~/pages/_app"

const Home: NextPageWithLayout = () => {
const [showPosts, setShowPosts] = useState(false)
// const [showPosts, setShowPosts] = useState(false)
const [maskClass, setMaskClass] = useState("mask-x-r")

return (
Expand Down Expand Up @@ -118,7 +118,7 @@ const Home: NextPageWithLayout = () => {
Homomorphic Encryption (FHE) and Privacy-preserving Machine Learning
(PPML).
</p>
<p className="mt-5">My general objectives are to:</p>
<p className="mt-5">My current focus is to:</p>
<ul className="mt-2 list-disc pl-5">
<li className="pl-3">
Design and develop systems and protocols that are provably secure,
Expand Down Expand Up @@ -341,7 +341,7 @@ const Home: NextPageWithLayout = () => {
</span>
<span className="uppercase">Blog Posts</span>
</label>
<button
{/* <button
data-cy="showIndexPosts"
onClick={() => setShowPosts(!showPosts)}
aria-label="Toggle between posts and subscription box"
Expand All @@ -350,17 +350,17 @@ const Home: NextPageWithLayout = () => {
className={`flex h-5 w-5 duration-200 ${showPosts ? "rotate-180" : "rotate-0"}`}>
<Icon name="arrowUp" />
</span>
</button>
</button> */}
</div>
{showPosts ? (
{/* {showPosts ? (
<div className="mt-5 animate-appear">
<List type="index" />
</div>
) : (
<div className="mt-5">
<SubscriptionBox type="sm" />
</div>
)}
) : ( */}
<div className="mt-5">
<SubscriptionBox type="sm" />
</div>
{/* )} */}
</section>
</>
)
Expand Down

0 comments on commit caeecfb

Please sign in to comment.