Skip to content

Commit d07b1cb

Browse files
authored
Bump Hugo theme and add dark mode (#672)
1 parent 86e4f4e commit d07b1cb

File tree

5 files changed

+71
-17
lines changed

5 files changed

+71
-17
lines changed

config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ baseURL: https://fmi-standard.org
22
title: Functional Mock-up Interface
33
theme: ma-hugo-theme
44
params:
5-
logo: /assets/images/FMI_bare.svg
5+
logo: /images/ma-logos/dark/FMI-bare.svg
66
github: modelica/fmi-standard
77
88
gtag: G-TJX9TPG2XT
9+
darkMode: true
910
menu:
1011
main:
1112
- pageRef: "tools"

content/_index.html

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
aliases: [/downloads/]
3-
contactFooter: true
43
---
54

65
<style>
@@ -17,6 +16,8 @@
1716
</div>
1817
</div>
1918

19+
<script src="/js/jquery-3.7.1.min.js"></script>
20+
2021
<script>
2122
var playerModal = document.getElementById('playerModal');
2223

@@ -37,7 +38,7 @@
3738

3839
{{< latest-news >}}
3940

40-
<img src="/assets/images/FMI.svg" width="450" alt="Functional Mock-up Interface" class="d-block mx-auto mb-5" style="max-width: 80%;">
41+
<div class="fmi-masthead-logo d-block mx-auto" style="width: 450px; max-width: 80%;"></div>
4142

4243
<h1 class="mb-4">The leading standard to exchange dynamic simulation models</h1>
4344

@@ -48,7 +49,7 @@ <h1 class="mb-4">The leading standard to exchange dynamic simulation models</h1>
4849

4950
<div class="d-grid gap-3 d-lg-flex justify-content-center">
5051

51-
<button type="button" class="btn btn-lg btn-primary text-nowrap" data-bs-toggle="modal" data-bs-target="#playerModal">
52+
<button type="button" class="btn btn-lg btn-primary btn-ma-primary text-nowrap" data-bs-toggle="modal" data-bs-target="#playerModal">
5253
<i class="fa-solid fa-circle-play me-2"></i>Why FMI
5354
</button>
5455

@@ -115,7 +116,7 @@ <h2 class="display-5 mb-3 fw-semibold lh-sm">Getting started</h2>
115116
</div>
116117

117118
<div class="col-lg-8 mx-auto">
118-
<img src="/assets/images/Jupyter_BouncingBall.png" class="p-3 rounded shadow img-fluid">
119+
<img src="/assets/images/Jupyter_BouncingBall.png" class="p-3 rounded shadow img-fluid bg-white">
119120
</div>
120121

121122
</div>
@@ -150,15 +151,15 @@ <h2 class="display-5 mb-3 fw-semibold lh-sm">Implement the FMI</h2>
150151
</figcaption>
151152
</div>
152153
<div class="col-md-6 text-center">
153-
<div style="background-image: url(/assets/images/bosch-logo.png); background-position: center; /* Center the image */
154+
<div class="ma-quote-logo" style="background-image: url(/assets/images/bosch-logo.png); background-position: center; /* Center the image */
154155
background-repeat: no-repeat;
155156
background-size: contain; height: 100%; min-height: 10em; max-width: 17em; margin: auto;"></div>
156157
</div>
157158
</div>
158159

159160
<div class="row featurette justify-content-md-center p-4">
160161
<div class="col-md-6 text-center order-2 order-md-1">
161-
<div style="background-image: url(/assets/images/haldex-logo.jpg); background-position: center; /* Center the image */
162+
<div class="ma-quote-logo" style="background-image: url(/assets/images/Haldex.svg); background-position: center; /* Center the image */
162163
background-repeat: no-repeat;
163164
background-size: contain; height: 100%; min-height: 10em; max-width: 12em; margin: auto;"></div>
164165
</div>
@@ -182,15 +183,15 @@ <h2 class="display-5 mb-3 fw-semibold lh-sm">Implement the FMI</h2>
182183
</figcaption>
183184
</div>
184185
<div class="col-md-6 text-center">
185-
<div style="background-image: url(/assets/images/siemens-logo.png); background-position: center; /* Center the image */
186+
<div class="ma-quote-logo" style="background-image: url(/assets/images/siemens-logo.png); background-position: center; /* Center the image */
186187
background-repeat: no-repeat;
187188
background-size: contain; height: 100%; min-height: 10em; max-width: 14em; margin: auto;"></div>
188189
</div>
189190
</div>
190191

191192
<div class="row featurette justify-content-md-center p-4">
192193
<div class="col-md-6 text-center order-2 order-md-1">
193-
<div style="background-image: url(/assets/images/saab-logo.png); background-position: center; /* Center the image */
194+
<div class="ma-quote-logo" style="background-image: url(/assets/images/saab-logo.png); background-position: center; /* Center the image */
194195
background-repeat: no-repeat;
195196
background-size: contain; height: 100%; min-height: 10em; max-width: 14em; margin: auto;"></div>
196197
</div>
@@ -211,27 +212,27 @@ <h2 class="text-center display-6 fw-normal">Merchandising</h2>
211212
<div class="row">
212213

213214
<div class="col-lg-2 col-4">
214-
<img src="/assets/images/merch/fmi-hoodie.jpg">
215+
<img class="rounded-3" src="/assets/images/merch/fmi-hoodie.jpg">
215216
</div>
216217

217218
<div class="col-lg-2 col-4">
218-
<img src="/assets/images/merch/m-hoodie.jpg">
219+
<img class="rounded-3" src="/assets/images/merch/m-hoodie.jpg">
219220
</div>
220221

221222
<div class="col-lg-2 col-4">
222-
<img src="/assets/images/merch/fmi-womens-t-shirt.jpg">
223+
<img class="rounded-3" src="/assets/images/merch/fmi-womens-t-shirt.jpg">
223224
</div>
224225

225226
<div class="col-lg-2 col-4">
226-
<img src="/assets/images/merch/modelica-t-shirt.jpg">
227+
<img class="rounded-3" src="/assets/images/merch/modelica-t-shirt.jpg">
227228
</div>
228229

229230
<div class="col-lg-2 col-4">
230-
<img src="/assets/images/merch/fmi-mug.jpg">
231+
<img class="rounded-3" src="/assets/images/merch/fmi-mug.jpg">
231232
</div>
232233

233234
<div class="col-lg-2 col-4">
234-
<img src="/assets/images/merch/fmi-sticker.jpg">
235+
<img class="rounded-3" src="/assets/images/merch/fmi-sticker.jpg">
235236
</div>
236237

237238
</div>

content/tools.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<div class="container mt-4">
8484
<div v-for="tool in filteredTools" class="row justify-content-center mt-4">
8585
<div class="col-sm-4 col-lg-3 text-end">
86-
<img v-if="tool.hasOwnProperty('logo')" :src="imageURL(tool.logo)" style="margin-top: 7px; max-height: 46px; max-width: 140px;"/>
86+
<img v-if="tool.hasOwnProperty('logo')" :src="imageURL(tool.logo)" class="bg-white rounded-1" style="margin-top: 7px; max-height: 76px; max-width: 170px; padding: 5px;"/>
8787
</div>
8888
<div class="col-sm-8 col-lg-6">
8989
<div><a :href="tool.url" style="font-size: 20px; font-weight: 500;">{{ tool.name }}</a></div>

static/assets/images/Haldex.svg

Lines changed: 52 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)