Skip to content

Commit 6e7db28

Browse files
committed
enable osint ctf, diyarbakir sunrise/sunset, hackathon card redesign
1 parent a5fcfe5 commit 6e7db28

6 files changed

Lines changed: 11 additions & 10 deletions

File tree

components/index/cards/osint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export default function Osint() {
240240
letterSpacing: '1px'
241241
}}
242242
>
243-
START HUNTING
243+
REGISTER
244244
</Buttons>
245245
</Box>
246246

components/index/ctas/osint/osint-cta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export default function OsintCTA() {
227227
}}
228228
as="span"
229229
>
230-
START HUNTING
230+
REGISTER
231231
</Button>
232232
</Card>
233233
</Box>

lib/announcements.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[
22
{
33
"id": "hhs-osint-ctf",
4-
"disabled": true,
5-
"expiresAt": "2026-03-31",
6-
"copy": "HHS OSINT CTF is live!",
7-
"caption": "Test your open-source intelligence skills in our capture the flag challenge. Start hunting now!",
4+
"expiresAt": "2026-04-15",
5+
"copy": "HHS OSINT CTF Registration Open!",
6+
"caption": "Test your open-source intelligence skills in our capture the flag challenge. Register now!",
87
"href": "https://hhs.ninja",
98
"imgSrc": "/project-icon/osint-sticker.svg",
109
"imgAlt": "OSINT CTF"

lib/cards.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{ "component": "communityHub", "section": "opensource" },
44
{ "component": "githubmon", "section": "opensource" },
55
{ "component": "awesome-hackathon", "section": "opensource" },
6-
{ "component": "osint", "section": "community", "disabled": true },
6+
{ "component": "osint", "section": "community", "expiresAt": "2026-04-15" },
77
{ "component": "som", "section": "community", "disabled": true },
88
{ "component": "athena", "section": "community", "disabled": true },
99
{ "component": "highway", "section": "community", "disabled": true },

lib/cta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"component": "osint/osint-cta",
4-
"disabled": true
4+
"expiresAt": "2026-04-15"
55
},
66
{
77
"component": "door/door-cta"

pages/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,8 +1622,10 @@ function Page({
16221622
export async function getStaticProps() {
16231623
// Only load critical static data at build time
16241624
const carouselCards = require('../lib/carousel.json')
1625-
const ctaCards = require('../lib/cta.json').filter(c => !c.disabled)
1626-
const cardsList = require('../lib/cards.json').filter(c => !c.disabled)
1625+
const now = new Date()
1626+
const isActive = c => !c.disabled && (!c.expiresAt || new Date(c.expiresAt) > now)
1627+
const ctaCards = require('../lib/cta.json').filter(isActive)
1628+
const cardsList = require('../lib/cards.json').filter(isActive)
16271629

16281630
// Load basic events data for initial page render (optional)
16291631
let events = []

0 commit comments

Comments
 (0)