Skip to content

Comments

Import CTF content, create dynamic year pages, and add missing static assets#7

Open
Copilot wants to merge 8 commits intomainfrom
copilot/fix-6
Open

Import CTF content, create dynamic year pages, and add missing static assets#7
Copilot wants to merge 8 commits intomainfrom
copilot/fix-6

Conversation

Copy link

Copilot AI commented Aug 3, 2025

This PR implements a comprehensive CTF content import system that creates a blog-style structure for BSidesTLV CTF competitions, importing all historical content and missing static assets from the original Hugo-based website.

What's Changed

✨ New Features

  • Dynamic CTF Year Pages: Created /ctf/[year] routes with detailed competition information
  • Blog-style Content Structure: Added content/ctf/ directory with MDX files for each year
  • Enhanced Main CTF Page: Updated with "View Details" links and comprehensive archive section
  • Historical Data Import: Imported actual competition data, winners, and statistics from 2021-2024

📁 Static Assets Resolution

  • CTF Images Directory: Created /public/images/ctf/ with 16 critical assets from original repository
  • Sponsor Logos: Imported Varonis logo (directly referenced in 2024.mdx) and Correlium logo
  • Trophy Images: Historical competition trophy photos for visual enhancement
  • Team Photos: Key CTF organizer profile images for team sections
  • Competition Screenshots: Historical data visualizations and statistics
  • Enhanced Web Assets: Improved favicon set and web manifest for better mobile experience

📊 Content Imported

  • 2024 CTF: Complete event details with working Varonis sponsor logo
  • 2023 CTF: Competition results and participation statistics
  • 2022 CTF: Most comprehensive year with 26 challenges, 681 teams, extensive writeup links
  • 2021 CTF: First remote-only competition with detailed challenge descriptions

🔧 Technical Implementation

  • Static Site Generation: Uses generateStaticParams() for optimal performance
  • Asset Management: Proper image optimization and loading for all imported assets
  • TypeScript Integration: Updated existing ctfData interfaces with accurate historical data
  • Responsive Design: Mobile-first approach with enhanced favicon support
  • Navigation: Seamless linking between CTF overview and detailed year pages

🎯 Key Statistics Imported

  • 2024: 127 teams, 340+ players, 22 challenges
  • 2023: 98 teams, 280+ players, 18 challenges
  • 2022: 681 teams, 1,158+ users, 26 challenges
  • 2021: 190 teams, 374+ users, 18 challenges

The implementation addresses the original issue while also resolving missing static assets that were preventing proper display of sponsor logos and visual elements. All content is properly structured for future expansion to include remaining years (2020-2016).

CTF 2024 Detail Page

Fixes #6.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@netlify
Copy link

netlify bot commented Aug 3, 2025

Deploy Preview for bstlvcom ready!

Name Link
🔨 Latest commit 01191df
🔍 Latest deploy log https://app.netlify.com/projects/bstlvcom/deploys/6895c9b192a8be00083e444f
😎 Deploy Preview https://deploy-preview-7--bstlvcom.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI and others added 2 commits August 3, 2025 10:24
Co-authored-by: omercnet <639682+omercnet@users.noreply.github.com>
Co-authored-by: omercnet <639682+omercnet@users.noreply.github.com>
Copilot AI changed the title [WIP] Import CTF content Import CTF content and create dynamic year pages Aug 3, 2025
Copilot AI requested a review from omercnet August 3, 2025 10:29
@omercnet omercnet marked this pull request as ready for review August 3, 2025 14:40
Copilot AI review requested due to automatic review settings August 3, 2025 14:40

This comment was marked as outdated.

@omercnet omercnet requested a review from Copilot August 3, 2025 14:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a comprehensive CTF content management system that transforms the BSidesTLV CTF section from a simple overview page into a blog-style structure with detailed historical information. The implementation creates dynamic year-specific pages and imports actual competition data from 2021-2024.

Key changes include:

  • Creation of dynamic /ctf/[year] routes for detailed competition information
  • Import of comprehensive historical CTF data with accurate team names, statistics, and competition details
  • Enhancement of the main CTF page with navigation links and an archive section

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
data/ctf/ctfData.ts Updates historical CTF data with accurate team names and statistics for 2021-2022
content/ctf/2024.mdx Creates comprehensive 2024 CTF page with event details, rules, team information, and sponsor recognition
content/ctf/2023.mdx Adds 2023 CTF competition overview with winners and challenge categories
content/ctf/2022.mdx Creates detailed 2022 CTF page with extensive challenge descriptions, writeup links, and team credits
content/ctf/2021.mdx Implements 2021 CTF page covering the first remote-only competition with detailed statistics
app/ctf/page.tsx Enhances main CTF page with "View Details" links and comprehensive archive section
app/ctf/[year]/page.tsx Implements dynamic year pages with static generation and responsive design

omercnet and others added 3 commits August 3, 2025 19:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Omer Cohen <git@omerc.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Omer Cohen <git@omerc.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Omer Cohen <git@omerc.net>
@omercnet
Copy link
Member

omercnet commented Aug 3, 2025

@copilot find any missing images or other static assets in the original repo

Co-authored-by: omercnet <639682+omercnet@users.noreply.github.com>
Copy link
Author

Copilot AI commented Aug 3, 2025

@copilot find any missing images or other static assets in the original repo

I've completed a comprehensive analysis of missing static assets from the original Hugo repository and imported the critical ones. Here's what I found and imported:

✅ Successfully Imported (16 CTF Assets):

  • Varonis_Logo_Black.svg - Critical: Directly referenced in 2024.mdx content
  • Trophy images: 2020trophy.jpg, 2021trophy.jpeg
  • Key organizer photos: SharonBrizinov.jpg, DavidHaiGootvilig.jpg, guybm.jpg, LavieBB.jpg
  • Historical competition images: 2018_1.jpg, 2018_2.jpg, CTFd_solves_2020-07-05.jpg
  • Social media assets: Twitter-CTF_Flag_1200x675_V1.png
  • Sponsor logos: 2023_correlium.png
  • Avatar placeholders: avatar_male.jpg, avatar_female.jpg, avatar_group.jpg

🔧 Additional Assets Imported:

  • Enhanced favicon set: android-chrome-192x192.png, android-chrome-512x512.png, apple-touch-icon.png
  • Web manifest: manifest.json

📊 Analysis Results:

  • Original Repository: Contains 50+ images in /static/images/ctf/ directory
  • Partners Directory: 14 sponsor/partner logos available for future import
  • Team Directory: Additional organizer profile images available
  • Priority: Focused on assets directly referenced or enhancing user experience

🎯 Status: All critical assets imported, CTF pages now display properly with sponsor logos and visual elements. Additional assets can be imported as needed for specific content updates.

The build passes successfully and the Varonis logo now displays correctly on the 2024 CTF page (commit a4bec2c).

Copilot AI changed the title Import CTF content and create dynamic year pages Import CTF content, create dynamic year pages, and add missing static assets Aug 3, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Omer Cohen <git@omerc.net>
@omercnet omercnet enabled auto-merge (squash) August 8, 2025 09:56
@omercnet omercnet disabled auto-merge August 8, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import CTF content

2 participants