Skip to content

Commit c4b62b2

Browse files
committed
Even more OCD updates
1 parent 9490226 commit c4b62b2

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

custom/layouts/open-source.njk

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
.project {
2121
width: 48%; /* Full width for each project */
2222
padding: 15px;
23+
padding-top: 4px;
2324
box-sizing: border-box;
2425
background-color: #f9f9f9;
2526
border: 1px solid #ddd;
@@ -48,7 +49,7 @@
4849
.project-logo {
4950
max-height: 50px;
5051
object-fit: contain;
51-
margin-left: 10px;
52+
margin-right: 2px;
5253
}
5354
5455
.project-name {
@@ -63,7 +64,7 @@
6364
6465
.project-details {
6566
display: flex;
66-
justify-content: flex-end;
67+
justify-content: flex-start;
6768
gap: 20px; /* Add space between details */
6869
font-size: 12px;
6970
color: #666;
@@ -120,20 +121,24 @@
120121
{% for item in section.items %}
121122
<a href="{{ item.url or item.github_url }}" class="project" data-repo="{{ item.github_url }}">
122123
<div class="project-header">
124+
<span>
123125
<div class="project-name">{{ item.name }}</div>
124-
{% if item.logo %}
125-
<img src="{{ item.logo }}" alt="{{ item.name }} logo" class="project-logo" style="height: {{ item.logo_scale or '100%' }}">
126-
{% endif %}
127-
</div>
128-
<div class="project-description">{{ item.description }}</div>
129126
{% if item.github_url %}
130127
<div class="project-details">
131128
<!-- Fixed width for consistent alignment, using FontAwesome icons -->
132129
<span class="language"><i class="fas fa-code"></i> <span id="{{ item.name | lower | replace(' ', '-') }}-language">...</span></span>
133-
<span class="stars"><i class="fas fa-star"></i> <span id="{{ item.name | lower | replace(' ', '-') }}-stars">...</span></span>
130+
<span class="stars"><i class="far fa-star"></i> <span id="{{ item.name | lower | replace(' ', '-') }}-stars">...</span></span>
134131
<span class="forks"><i class="fas fa-code-branch"></i> <span id="{{ item.name | lower | replace(' ', '-') }}-forks">...</span></span>
135132
</div>
136133
{% endif %}
134+
</span>
135+
{% if item.logo %}
136+
<span style="width: {{ item.logo_scale or '100%' }}">
137+
<img src="{{ item.logo }}" alt="{{ item.name }} logo" class="project-logo">
138+
</span>
139+
{% endif %}
140+
</div>
141+
<div class="project-description">{{ item.description }}</div>
137142
</a>
138143
{% endfor %}
139144
</div>

source/open-source/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ sections:
2222
url: "https://ml.energy/zeus"
2323
github_url: "https://github.com/ml-energy/zeus"
2424
logo: "/open-source/logo/zeus.svg"
25+
logo_scale: 70%
2526
description: "Deep learning energy measurement and optimization"
2627

2728
- title: "Systems + AI"
@@ -38,7 +39,7 @@ sections:
3839
url: "https://fedscale.ai"
3940
github_url: "https://github.com/SymbioticLab/FedScale"
4041
logo: "/open-source/logo/fedscale.png"
41-
logo_scale: 60%
42+
logo_scale: 50%
4243
description: "A scalable and extensible federated learning platform"
4344

4445
- title: "Memory systems"

0 commit comments

Comments
 (0)