Skip to content

Commit

Permalink
fix: remove batch cv download button display condition
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo committed Feb 6, 2024
1 parent 02d5b98 commit b82d4fc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
4 changes: 3 additions & 1 deletion layout/Challenges/components/Challenges/Challenge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export default function Challenge(props: IProps) {
{props.title}
</h2>
<div className="mt-10">
{props.description.split("\n").map((e) => (<p className="font-iregular text-white">{e}</p>))}
{props.description.split("\n").map((e) => (
<p className="font-iregular text-white">{e}</p>
))}
</div>
<div className="mt-3 flex flex-col">
{props.hrefs &&
Expand Down
6 changes: 5 additions & 1 deletion layout/FAQs/components/FindUs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export default function FindUs() {

<p className="mb-8 font-iregular">
SEI is free for participants and is organized by volunteers from
<a className="hover:text-quinary" href="/bean.html"> CeSIUM</a> and from the university community.
<a className="hover:text-quinary" href="/bean.html">
{" "}
CeSIUM
</a>{" "}
and from the university community.
</p>
<p className="mb-8 font-iregular">
This years event will take place at Pedagogic Complex 2, Gualtar
Expand Down
14 changes: 6 additions & 8 deletions layout/Sponsor/Visitors/Visitors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,12 @@ const SponsorVisitors: React.FC = () => {
description="Veja quem está a visitar a sua empresa e já recebeu o seu badge"
>
<div className="mt-5 h-screen text-white">
{visitors.filter((v) => v.cv != null).length > 0 && (
<button
className="font-terminal-uppercase m-auto mb-5 block select-none rounded-full bg-quinary px-5 py-2 text-2xl text-white"
onClick={downloadCVs}
>
{downloading ? "Downloading" : "Download All CVs"}
</button>
)}
<button
className="font-terminal-uppercase m-auto mb-5 block select-none rounded-full bg-quinary px-5 py-2 text-2xl text-white"
onClick={downloadCVs}
>
{downloading ? "Downloading" : "Download All CVs"}
</button>
<div className="grid grid-cols-1 lg:grid-cols-4">
{visitors.map((visitor) => (
<div
Expand Down
18 changes: 9 additions & 9 deletions public/bean.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>bean</title>
</head>
<body>
<div style="margin: auto; width: 50%;">
<img style="width: max-content;" src="images/bean.gif"/>
</head>
<body>
<div style="margin: auto; width: 50%">
<img style="width: max-content" src="images/bean.gif" />
</div>
</body>
</html>
</body>
</html>

0 comments on commit b82d4fc

Please sign in to comment.