Skip to content

Commit eea081b

Browse files
committed
Add preliminary bubbles
1 parent 9d93cf7 commit eea081b

File tree

3 files changed

+119
-0
lines changed

3 files changed

+119
-0
lines changed

docs/overrides/main.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
{{ super() }}
5+
6+
<!-- Floating Bubbles -->
7+
<div class="floating-bubbles">
8+
<div class="floating-bubbles-title">Our projects</div>
9+
<a href="https://swe-agent.com/" class="bubble" title="SWE-agent">
10+
<img src="https://raw.githubusercontent.com/SWE-agent/swe-agent-media/refs/heads/main/media/logos_banners/sweagent_logo.svg" alt="SWE-agent">
11+
<span class="bubble-tooltip">SWE-agent</span>
12+
</a>
13+
<a href="https://swe-rex.com/" class="bubble" title="SWE-rex">
14+
<img src="https://raw.githubusercontent.com/SWE-agent/swe-agent-media/refs/heads/main/media/logos_banners/swerex_logo.svg" alt="SWE-ReX">
15+
<span class="bubble-tooltip">SWE-ReX</span>
16+
</a>
17+
<a href="https://swesmith.com" class="bubble" title="SWE-smith">
18+
<img src="https://raw.githubusercontent.com/SWE-agent/swe-agent-media/refs/heads/main/media/logos_banners/swesmith_logo.png" alt="SWE-smith">
19+
<span class="bubble-tooltip">SWE-smith</span>
20+
</a>
21+
<a href="https://swebench.com" class="bubble" title="SWE-bench">
22+
<img src="https://raw.githubusercontent.com/SWE-agent/swe-agent-media/refs/heads/main/media/logos_banners/swebench_logo.png" alt="SWE-bench">
23+
<span class="bubble-tooltip">SWE-bench</span>
24+
</a>
25+
<a href="https://codeclash.ai" class="bubble" title="CodeClash">
26+
<img src="https://raw.githubusercontent.com/SWE-agent/swe-agent-media/refs/heads/main/media/logos_banners/codeclash_logo.svg" alt="CodeClash">
27+
<span class="bubble-tooltip">CodeClash</span>
28+
</a>
29+
<a href="https://www.swebench.com/sb-cli/" class="bubble" title="sb-cli">
30+
<img src="https://raw.githubusercontent.com/SWE-agent/swe-agent-media/refs/heads/main/media/logos_banners/sbcli_logo.svg" alt="sb-cli">
31+
<span class="bubble-tooltip">sb-cli</span>
32+
</a>
33+
</div>
34+
{% endblock %}
35+

docs/stylesheets/extra.css

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,86 @@
117117
}
118118
}
119119

120+
/* Floating bubbles styles */
121+
.floating-bubbles {
122+
position: fixed;
123+
bottom: 20px;
124+
right: 20px;
125+
display: flex;
126+
flex-direction: column;
127+
gap: 10px;
128+
z-index: 1000;
129+
}
130+
131+
.floating-bubbles-title {
132+
position: absolute;
133+
top: -30px;
134+
right: 0;
135+
font-size: 12px;
136+
color: #777;
137+
text-align: right;
138+
font-weight: bold;
139+
opacity: 0;
140+
visibility: hidden;
141+
transition:
142+
opacity 0.3s ease,
143+
visibility 0.3s ease;
144+
white-space: nowrap;
145+
}
146+
147+
.floating-bubbles:hover .floating-bubbles-title {
148+
opacity: 1;
149+
visibility: visible;
150+
}
151+
152+
.bubble {
153+
width: 40px;
154+
height: 40px;
155+
display: flex;
156+
justify-content: center;
157+
align-items: center;
158+
position: relative;
159+
transition: transform 0.3s ease;
160+
}
161+
162+
.bubble:hover {
163+
transform: scale(1.1);
164+
}
165+
166+
.bubble img {
167+
width: 40px;
168+
height: 40px;
169+
}
170+
171+
.bubble-tooltip {
172+
position: absolute;
173+
right: 60px;
174+
background-color: #333;
175+
color: white;
176+
padding: 5px 10px;
177+
border-radius: 4px;
178+
font-size: 14px;
179+
white-space: nowrap;
180+
opacity: 0;
181+
visibility: hidden;
182+
transition:
183+
opacity 0.3s ease,
184+
visibility 0.3s ease;
185+
}
186+
187+
.bubble:hover .bubble-tooltip {
188+
opacity: 1;
189+
visibility: visible;
190+
}
191+
192+
.floating-bubbles:hover .bubble-tooltip {
193+
opacity: 1;
194+
visibility: visible;
195+
}
196+
197+
/* Hide on mobile */
198+
@media (max-width: 768px) {
199+
.floating-bubbles {
200+
display: none;
201+
}
202+
}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repo_url: https://github.com/swe-agent/mini-swe-agent
1010
# Theme configuration
1111
theme:
1212
name: material
13+
custom_dir: docs/overrides
1314
logo: assets/mini_square.svg
1415
favicon: assets/mini.png
1516
palette:

0 commit comments

Comments
 (0)