Skip to content

Commit 42e13c8

Browse files
committed
Add arena pages
1 parent a8eea89 commit 42e13c8

20 files changed

Lines changed: 109 additions & 6 deletions

pages/arenas/battlesnake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: Battlesnake
2+
image: /static/images/arenas/battlesnake.png
3+
description: Hi
4+
5+
---

pages/arenas/corewar.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: Core War
2+
image: /static/images/arenas/corewar.png
3+
description: Hi
4+
5+
---

pages/arenas/halite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: Halite
2+
image: /static/images/arenas/halite.png
3+
description: Hi
4+
5+
---

pages/arenas/poker.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: Poker
2+
image: /static/images/arenas/poker.png
3+
description: Hi
4+
5+
---

pages/arenas/robocode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: RoboCode
2+
image: /static/images/arenas/robocode.png
3+
description: Hi
4+
5+
---

pages/arenas/robotrumble.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: RobotRumble
2+
image: /static/images/arenas/robotrumble.png
3+
description: Hi
4+
5+
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: Introducing CodeClash
22
date: 2025-11-04
3-
description: Evaluating AI Systems as Competitive Software Developers
3+
description: Benchmarking Goal Oriented Software Engineering
44
authors: John Yang, Kilian Lieret
55
time: TUESDAY, NOVEMBER 4, 2025
66

File renamed without changes.

server.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
freezer = Freezer(app)
2828
markdown_manager = Markdown(app, extensions=['fenced_code'], output_format='html5',)
2929

30+
pages_insights = [page for page in list(pages) if page.path.startswith('insights/')]
31+
pages_arenas = [page for page in list(pages) if page.path.startswith('arenas/')]
3032

3133
# Routes
3234
@app.route('/')
@@ -44,7 +46,11 @@ def team():
4446

4547
@app.route('/insights')
4648
def insights():
47-
return render_template('insights.html', pages=pages)
49+
return render_template('insights.html', pages=pages_insights)
50+
51+
@app.route('/arenas')
52+
def arenas():
53+
return render_template('arenas.html', pages=pages_arenas)
4854

4955
@app.errorhandler(404)
5056
def page_not_found(path):

static/css/layout.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,47 @@ body {
7373
text-align: right;
7474
width: 8rem;
7575
}
76+
77+
/* Arenas grid - layout only */
78+
.arenas-container {
79+
padding: 1rem;
80+
}
81+
82+
.arenas-grid {
83+
display: grid;
84+
grid-template-columns: repeat(3, 1fr);
85+
gap: 1rem;
86+
}
87+
88+
.arena-card {
89+
display: flex;
90+
flex-direction: column;
91+
gap: 0.25rem;
92+
align-items: center;
93+
justify-content: center;
94+
text-align: center;
95+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
96+
transition: transform 0.2s, box-shadow 0.2s;
97+
}
98+
99+
.arena-card:hover {
100+
transform: translateY(-4px);
101+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
102+
}
103+
104+
.arena-card img {
105+
height: 50px; /* fixed height */
106+
width: auto; /* keep original aspect ratio */
107+
max-width: 100%; /* never exceed container width */
108+
display: block;
109+
margin: 1em auto;
110+
object-fit: contain;
111+
}
112+
113+
@media (max-width: 900px) {
114+
.arenas-grid { grid-template-columns: repeat(2, 1fr); }
115+
}
116+
117+
@media (max-width: 540px) {
118+
.arenas-grid { grid-template-columns: 1fr; }
119+
}

0 commit comments

Comments
 (0)