Skip to content

Commit

Permalink
add sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasma0305 committed Apr 16, 2024
1 parent 7b88058 commit b66cea5
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
Binary file added public/Google-Cloud-Emblem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/app/tcp1pctf-2024/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Categories } from "./categories";
import { Countdown } from "./countdown";
import { FAQ } from "./faq";
import { Sponsor } from "./sponsors";

export default function Page() {
const ctfDate = new Date("2024-10-11").getTime()
Expand Down Expand Up @@ -31,6 +32,11 @@ export default function Page() {
<div className="divider"></div>
<p>The call for sponsorship for TCP1P-CTF 2024 is open! For more details contact us at <a className="link" href="mailto:[email protected]">[email protected]</a>.</p>
</div>
<div>
<h2 className="text-4xl">Sponsors</h2>
<div className="divider"></div>
<Sponsor></Sponsor>
</div>
</div>
</div>
</>
Expand Down
23 changes: 23 additions & 0 deletions src/app/tcp1pctf-2024/sponsors.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
import Image from "next/image"
import GoogleImage from "../../../public/Google-Cloud-Emblem.png"

export function Sponsor() {
const sponsors = [
{
name: "Google",
text: "Infra sponsored by goo.gle/ctfsponsorship",
image: GoogleImage
},
]
return <>
<div className="grid justify-center lg:grid-cols-3 md:grid-cols-2 gap-4">
{sponsors.map((sponsor, _index) => (
<div className="card w-96">
<figure className="px-10 pt-10">
<Image src={sponsor.image} alt={sponsor.text}></Image>
</figure>
<div className="card-body items-center text-center">
<h2 className="card-title">{sponsor.name}</h2>
<p>{sponsor.text}</p>
</div>
</div>
))}
</div>

</>
}

0 comments on commit b66cea5

Please sign in to comment.