Skip to content

Commit 60f7929

Browse files
authored
my redesign, second try (#26)
* added 2 banners * redesign with minimal css changes only * logo is smaller now
1 parent 64ecce3 commit 60f7929

File tree

5 files changed

+30
-16
lines changed

5 files changed

+30
-16
lines changed

css/components.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ button:focus,
487487
background-color: var(--color-accent-light);
488488
border: 1.5px solid var(--color-accent);
489489
padding: 1rem;
490-
margin-bottom: 1.5rem;
490+
margin-bottom: 0.4rem;
491491
border-radius: 0.25rem;
492492
display: flex;
493493
align-items: center;
@@ -858,4 +858,4 @@ button:focus,
858858

859859
.dark-mode .sidebar-family-icon {
860860
filter: brightness(1.2);
861-
}
861+
}

css/layout.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,15 @@
102102
/* Header */
103103
.page-header {
104104
background-color: var(--color-header);
105-
padding: 2rem 0;
105+
padding-top: 0.7rem;
106+
padding-bottom: 0.7rem;
107+
padding-left: 0;
108+
padding-right: 0;
106109
margin: 0;
107110
width: 100%;
108111
position: relative;
109112
color: #FFF7EC;
110-
margin-bottom: 2rem;
113+
margin-bottom: 0.4rem;
111114
}
112115

113116
.page-header .container {
@@ -385,7 +388,7 @@
385388

386389
.content-section {
387390
margin-bottom: 2.5rem;
388-
padding: 1.5rem;
391+
padding: 0.3rem;
389392
background-color: var(--color-background);
390393
border-radius: var(--radius-lg);
391394
box-shadow: var(--shadow-sm);
@@ -545,7 +548,7 @@
545548
}
546549

547550
.content-section {
548-
padding: 1.25rem;
551+
padding: 0.3rem;
549552
}
550553

551554
.title-wrapper h1 {
@@ -564,7 +567,7 @@
564567
}
565568

566569
.content-section {
567-
padding: 1rem;
570+
padding: 0.3rem;
568571
margin-bottom: 1.5rem;
569572
}
570573

@@ -575,4 +578,4 @@
575578
.title-wrapper h1 {
576579
font-size: 1.5rem;
577580
}
578-
}
581+
}

css/leaderboard-filters.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.filter-buttons {
33
display: flex;
44
flex-wrap: wrap;
5-
gap: 8px;
5+
gap: 4px;
66
}
77

88
.filter-toggle {
@@ -28,7 +28,7 @@
2828
display: flex;
2929
align-items: center;
3030
gap: 0.5em;
31-
padding: 0.375rem 0.75rem;
31+
padding: 0.25rem 0.5rem;
3232
border: 1px solid #ced4da;
3333
border-radius: 0.25rem;
3434
background-color: #f8f9fa;
@@ -277,4 +277,4 @@
277277
width: 100%;
278278
justify-content: flex-start !important;
279279
}
280-
}
280+
}

css/pages.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@
1111
width: 300px;
1212
max-width: 100%;
1313
height: auto;
14-
margin-bottom: 1.25rem;
14+
margin-bottom: 0.3rem;
15+
}
16+
17+
.header-logo-small {
18+
width: 75px;
19+
height: 75px;
20+
margin-right: 0.5rem;
21+
vertical-align: middle;
22+
display: inline-block;
1523
}
1624

1725
.paper-link {
@@ -88,7 +96,7 @@
8896
white-space: nowrap;
8997
scrollbar-width: none;
9098
-ms-overflow-style: none;
91-
margin-bottom: 1.5rem;
99+
margin-bottom: 0.5rem;
92100
}
93101

94102
.leaderboard-tabs::-webkit-scrollbar {
@@ -702,4 +710,4 @@ code {
702710

703711
.contact-container a:hover {
704712
text-decoration: underline;
705-
}
713+
}

templates/pages/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends 'base.html' %}
22

3-
{% block title %}SWE-bench Leaderboard{% endblock %}
3+
{% block title %}SWE-bench Leaderboards{% endblock %}
44

55
{% block head_extra %}
66
<link rel="icon" href="favicon.ico" type="image/x-icon">
@@ -15,7 +15,10 @@
1515
<header class="page-header">
1616
<div class="container">
1717
<div class="header-logo-container">
18-
<img src="img/swe-bench-banner.svg" alt="SWE-bench Logo" class="header-logo">
18+
<h1>
19+
<img src="img/swe-llama.svg" alt="SWE-bench Logo" class="header-logo-small">
20+
Leaderboards
21+
</h1>
1922
</div>
2023
</div>
2124
</header>

0 commit comments

Comments
 (0)