Skip to content

Commit 5d40e82

Browse files
committed
Add links to github/slack
1 parent 8d9c25c commit 5d40e82

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

static/css/layout.css

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,32 @@ nav {
7979
gap: 0.5rem;
8080
}
8181

82+
.nav-right .icon-btn,
83+
.nav-right .theme-toggle {
84+
padding: 0.25rem;
85+
margin-left: 0;
86+
}
87+
88+
.nav-right .nav-links {
89+
margin-right: 1rem;
90+
}
91+
8292
.icon-btn {
8393
display: inline-flex;
8494
align-items: center;
8595
justify-content: center;
86-
padding: 0;
96+
padding: 0.5rem;
8797
border: none;
8898
background: none;
8999
cursor: pointer;
100+
transition: opacity 0.2s;
101+
transform: translateY(-2px);
102+
border-bottom: none;
103+
}
104+
105+
.icon-btn:hover {
106+
opacity: 0.7;
107+
border-bottom: none;
90108
}
91109

92110
/* Theme toggle */
@@ -129,6 +147,15 @@ nav {
129147
display: none;
130148
}
131149

150+
/* Social icons - adapt to theme */
151+
:root[data-theme="dark"] .icon-btn img {
152+
filter: invert(1);
153+
}
154+
155+
:root[data-theme="light"] .icon-btn img {
156+
filter: none;
157+
}
158+
132159
/* Leaderboard Table */
133160
.bordered {
134161
background: transparent;

static/images/logos/slack.svg

Lines changed: 4 additions & 0 deletions
Loading

templates/_topnav.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@
1010
<a href=""><li>Docs</li></a>
1111
<a href="/team/"><li>Team</li></a>
1212
</ul>
13+
<a href="https://github.com/codeclash-ai/codeclash" class="icon-btn" aria-label="GitHub" title="Check out our code on GitHub" target="_blank" rel="noopener noreferrer">
14+
<img src="/static/images/logos/github-mark.svg" class="theme-icon" alt="GitHub" />
15+
</a>
16+
<a href="https://join.slack.com/t/swe-bench/shared_invite/zt-36pj9bu5s-o3_yXPZbaH2wVnxnss1EkQ" class="icon-btn" aria-label="Slack" title="Join us on Slack" target="_blank" rel="noopener noreferrer">
17+
<img src="/static/images/logos/slack.svg" class="theme-icon" alt="Slack" />
18+
</a>
1319
<button
1420
id="theme-toggle"
1521
class="theme-toggle"
1622
aria-label="Toggle theme"
23+
title="Toggle dark/bright mode"
1724
>
1825
<img src="/static/images/misc/sun.svg" class="theme-icon sun-icon" alt="Light mode" />
1926
<img src="/static/images/misc/moon.svg" class="theme-icon moon-icon" alt="Dark mode" />

0 commit comments

Comments
 (0)