Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _includes/downloads-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2>{{ download.name }}</h2>

.download-item > a > i {
font-size: 2.5em;
color: black;
color: var(--text-primary);
}

.download-item > a > h2 {
Expand Down
7 changes: 6 additions & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
<div class="container">
<div class="two-column inner-container">
<div class="column">
<div class="logo"><a href="https://linuxfoundation.eu"><img src="{{ site.logoLFEurope | url }}" alt="Linux Foundation Europe logo" width="250"></a></div>
<div class="logo">
<a href="https://linuxfoundation.eu">
<img class="footer-logo--light" src="{{ site.logoLFEurope | url }}" alt="Linux Foundation Europe logo" width="250">
<img class="footer-logo--dark" src="{{ '/img/lf-europe-white.svg' | url }}" alt="Linux Foundation Europe logo" width="250">
</a>
</div>
<p>&copy; {% currentYear %} {{ site.author }}</p>
<p>Copyright &copy; Servo is a project of <a class="footer-link" href="https://linuxfoundation.eu/">Linux Foundation Europe</a>.</p>
<p>For website terms of use, trademark policy and other project policies please see <a class="footer-link" href="https://lfprojects.org">https://lfprojects.org</a>.</p>
Expand Down
13 changes: 13 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Helps with theme detection from ls-->
<script>
(function () {
try {
var savedTheme = localStorage.getItem('theme');
var systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
var theme = savedTheme ? savedTheme : (systemPrefersDark ? 'dark' : 'light');
document.documentElement.setAttribute('data-theme', theme);
} catch (e) {}
})()
</script>

{% if title == "Home" %}
<title>{{ site.tagline }}</title>
<meta property="og:title" content="{{ site.tagline }}">
Expand Down
21 changes: 17 additions & 4 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
</a>
{% endif %}
{% endfor %}

<!-- Theme toggle btn -->
<button id="themeToggle" class="theme-toggle-btn" type="button" aria-label="Toggle theme" title="Toggle dark/light mode">
<i class="fas fa-moon" aria-hidden="true"></i>
<i class="fas fa-sun"></i>
</button>
{% include "social-buttons.html" %}
</div>
</div>
Expand All @@ -69,9 +75,16 @@
hamburger.setAttribute('aria-expanded', !isExpanded);
menu.classList.toggle('is-active', isExpanded);
};

// Toggle on click
hamburger.addEventListener('click', toggleMenu);


</script>
// Theme switch logic
const themeToggle = document.getElementById('themeToggle');
themeToggle?.addEventListener('click', () => {
const currentTheme = document.documentElement.getAttribute('data-theme') ||'light';
const nextTheme = currentTheme == 'dark' ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', nextTheme);
try{
localStorage.setItem('theme', nextTheme)
} catch (e) {}
});
</script>
5 changes: 3 additions & 2 deletions _includes/hero.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<section class="section" id="homeHero" aria-label="What is Servo">
<div class="hero-body">
<div class="container">
<img class="hero-img" src="{{ site.logoPositive | url }}" alt="{{ title }}">
<img class="hero-img hero-img--light" src="{{ site.logoPositive | url }}" alt="{{ title }}">
<img class="hero-img hero-img--dark" src="{{ '/svg/servo-color-negative-no-container.svg' | url }}" alt="{{ title }}">
<h1 class="title center-text">
Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.
</h1>
Expand Down Expand Up @@ -101,4 +102,4 @@ <h2>Acknowledgements</h2>
}


</style>
</style>
11 changes: 11 additions & 0 deletions _includes/sponsorship.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ <h3 class="center-text">Bronze Sponsors</h3>
}

.inner-container__logos {
background-color: #ffffff;
color: #2d3748;
border: 1px solid var(--midturquoise);
max-width: 800px;
margin-left: auto;
Expand All @@ -213,10 +215,19 @@ <h3 class="center-text">Bronze Sponsors</h3>
}

.inner-container__logos h3 {
color: #1a202c;
border-bottom: 1px solid var(--midturquoise);
padding-top: var(--12px);
padding-bottom: var(--12px);
font-size: var(--step-1);
}

.inner-container__logos a {
color: var(--midturquoise);
}

.inner-container__logos a:hover {
color: var(--darkturquoise);
}

</style>
Loading