Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Servo Redesign #202

Merged
merged 35 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
afe5297
Base structure and styles
Jan 10, 2025
f35e1c9
subpage styling, tables, mobile nav
Jan 24, 2025
f063b90
Accessible menu, acknowledgements page, home update
Jan 28, 2025
3c8af3b
Merge branch 'servo:main' into servo-redesign
ststimac Jan 28, 2025
bd4ff0d
Style updates, home page messaging, blog layout
ststimac Jan 29, 2025
9c8f4d2
Blog post styles and layout
ststimac Jan 29, 2025
3ce4ddf
Sass
ststimac Jan 29, 2025
4d19269
Fix GitHub workflows
mrego Jan 29, 2025
f84548f
Remove unneeded file
mrego Jan 30, 2025
9b07c8c
Recover slides styles
mrego Jan 30, 2025
3fa371a
Remove package-lock.json
mrego Jan 30, 2025
f21fc73
Update CODE_OF_CONDUCT.md
mrego Jan 30, 2025
feef89c
Remove unneeded files
mrego Jan 30, 2025
3124393
Remove unneeded file
mrego Jan 30, 2025
11d6635
Limit videos to 100% max-width
mrego Jan 30, 2025
b6427e7
Move style.css to assets/css/
mrego Jan 30, 2025
9c6fecb
Simplify process and dependencies for reveal.js themes
mrego Jan 30, 2025
ee71dc6
Remove unused files
mrego Jan 30, 2025
1943b5a
Try to fix background image in preview deployment
mrego Jan 30, 2025
dc37c95
Home img changes, multiplatform feature, crisper pngs for feature icons
ststimac Jan 30, 2025
cb10ae2
Update sentence as we're no longer showing legacy layout in wpt.servo…
mrego Jan 30, 2025
13887ac
Change multiplatform to cross platform and edit embedded copy
ststimac Jan 30, 2025
275be56
Feature copy edits
ststimac Jan 30, 2025
38c1eb9
Update .eleventy.js
mrego Jan 31, 2025
4afc799
Fix blog pagination on preview
mrego Jan 31, 2025
5b44641
Update package-lock.json
mrego Jan 31, 2025
4bf9bbd
Fix size of wpt.servo.org iframe
mrego Jan 31, 2025
0077438
Merge branch 'main' into servo-redesign
mrego Jan 31, 2025
f780440
Fix styles of table on last blog post
mrego Jan 31, 2025
ce8f445
Home edits
ststimac Jan 31, 2025
dc1d7d9
Download page edits
ststimac Jan 31, 2025
d9ed5a5
Drop a page we're no longer used (and it's outdated too)
mrego Feb 1, 2025
c018791
Minor tweak in frontpage wording
mrego Feb 1, 2025
8972440
Move code styles to the CSS file so they apply also on blog posts
mrego Feb 1, 2025
2502d23
Import correct fonts
ststimac Feb 3, 2025
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
Binary file added .DS_Store
mrego marked this conversation as resolved.
Show resolved Hide resolved
Binary file not shown.
4 changes: 0 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
npm-
- name: Install Node modules
run: npm install
- name: Sass
run: npm run sass
- name: Sass Reveal.js
run: npm run sass-revealjs
- name: Eleventy
run: |
npx eleventy --output='_site/' --pathprefix='/'
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
npm-
- name: Install Node modules
run: npm install
- name: Sass
run: npm run sass
- name: Sass Reveal.js
run: npm run sass-revealjs
- name: Eleventy
run: |
npx eleventy \
Expand Down
1 change: 1 addition & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

mrego marked this conversation as resolved.
Show resolved Hide resolved
# Code of Conduct

The Servo Project follows the [**Rust Code of Conduct**](https://www.rust-lang.org/policies/code-of-conduct), with the differences below.
Expand Down
3 changes: 2 additions & 1 deletion _data/site.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"author": "The Servo Project Developers",
"favicon": "/img/servo-symbol-color-no-container.png",
"logo": "/img/servo-color-positive.png",
"logoNegative": "/img/servo-color-negative-no-container.png",
"logoPositive": "/img/servo-color-positive-no-container.png",
"logoMark": "/img/servo-color.png",
"logoLFEurope": "/img/lf-europe-logo.png"
}
1 change: 0 additions & 1 deletion _data/social.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
{ "title": "GitHub", "color": "github-color", "url": "https://github.com/servo/servo", "icon": "fab fa-github" },
{ "title": "Mastodon", "color": "mastodon-color", "url": "https://floss.social/@servo", "icon": "fab fa-mastodon" },
{ "title": "Bluesky", "color": "bluesky-color", "url": "https://bsky.app/profile/servo.org", "icon": "fab fa-bluesky" },
{ "title": "Twitter", "color": "twitter-color", "url": "https://twitter.com/ServoDev", "icon": "fab fa-twitter" },
{ "title": "LinkedIn", "color": "linkedin-color", "url": "https://www.linkedin.com/company/servo-project/", "icon": "fab fa-linkedin" }
]
18 changes: 18 additions & 0 deletions _includes/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="contact" aria-label="Contact information">
<div class="container">
<div class="inner-container two-column">
<div class="column">
<h2>Contact</h2>
</div>
<div class="column">
<ul>
<li><a class="footer-link" href="https://servo.zulipchat.com/">Zulip chat</a></li>
<li><a class="footer-link" href="https://github.com/servo/servo/discussions">GitHub discussions</a></li>
<li><a class="footer-link" href="mailto:[email protected]">Email: [email protected]</a></li>
<li><a class="footer-link" href="https://floss.social/@servo">Mastodon</a></li>
<li><a class="footer-link" href="https://bsky.app/profile/servo.org">Bluesky</a></li>
</ul>
</div>
</div>
</div>
</div>
14 changes: 5 additions & 9 deletions _includes/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
<body class="is-page">
<main class="is-main">
{% include "header.html" %}
<section class="section" style="padding-top: 0;">
<div class="container">
<aside class="menu box">
<p class="menu-label">
{{ title }}
</p>
{% for link in menu %}
{% assign pagedir = page.url %}
{% if link.url == pagedir %}
Expand All @@ -23,12 +18,13 @@
{% endif %}
{% endfor %}
</aside>
<div class="content">
<div class="content container" id="{{ title }}">
{{ content }}
</div>
</div>
</section>
</main>
{% include "footer.html" %}
{% include "contact.html" %}
<footer>
{% include "footer.html" %}
</footer>
</body>
</html>
23 changes: 12 additions & 11 deletions _includes/download.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
layout: default
---
<div class="subpage-content inner-container">
<h1 id="download">
Download
<a class="headline-hash" href="#download">
<span class="icon hashlink">
<i class="fas fa-link"></i>
</span>
</a>
</h1>

<h1 id="download">
Download
<a class="headline-hash" href="#download">
<span class="icon hashlink">
<i class="fas fa-link"></i>
</span>
</a>
</h1>
{% include "downloads.html" %}

{% include "downloads.html" %}

{{ content }}
{{ content }}
</div>
6 changes: 2 additions & 4 deletions _includes/downloads-list.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<div class="downloads">
{% for download in downloads %}
<p>
<div class="buttons has-addons">
<a rel="nofollow" role="button" class="button is-primary" href="https://download.servo.org/{{download.href}}" style="width: 22ch;">{{download.name}}</a>
<div class="buttons">
<a rel="nofollow" role="button" class="button" href="https://download.servo.org/{{download.href}}" style="width: 22ch;">{{download.name}}</a>
<span class="button is-static" id="date-{{download.key}}" style="width: 10ch;">?</span>
<a rel="nofollow" role="button" class="button" style="width: 7ch;" href="https://download.servo.org/{{download.sha256}}">sha256</a>
</div>
</p>
{% endfor %}
</div>
29 changes: 14 additions & 15 deletions _includes/downloads.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<div class="container">
<div class="content">
<div class="columns">
<div class="column">
<p>
These pre-built nightly snapshots allow developers to try Servo and
<a href="https://github.com/servo/servo/issues/new">report issues</a> without
<a href="https://book.servo.org/hacking/building-servo.html">building Servo locally</a>.
<strong>Please don’t log into your bank with Servo just yet!</strong>
</p>
</div>
<div class="column">
{% include "downloads-list.html" %}
{% include "downloads-script.html" %}
</div>
<div class="content">
<div class="columns">
<div class="column">
<p>
These pre-built nightly snapshots allow developers to try Servo and
<a href="https://github.com/servo/servo/issues/new">report issues</a> without
<a href="https://book.servo.org/hacking/building-servo.html">building Servo locally</a>.
<strong>Please don’t log into your bank with Servo just yet!</strong>
</p>
</div>
<div class="column">
{% include "downloads-list.html" %}
{% include "downloads-script.html" %}
</div>
</div>
</div>

31 changes: 14 additions & 17 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
<footer class="footer">
<div class="container" style="text-align: center;">
<a href="{{ '/coc/' | url }}">Code of Conduct</a> |
Contact: <a href="mailto:[email protected]">[email protected]</a>,
<a href="https://servo.zulipchat.com/">Zulip Chat</a>,
<a href="https://github.com/servo/servo/discussions">GitHub Discussions</a>,
<a href="https://floss.social/@servo">Mastodon</a>,
<a href="https://bsky.app/profile/servo.org">Bluesky</a>,
<a href="https://twitter.com/ServoDev">Twitter</a>,
<a href="https://www.linkedin.com/company/servo-project/">LinkedIn</a>
<div class="footer">
<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>
<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>
</div>
<div class="column code-of-conduct">
<a class="footer-link" href="{{ '/coc/' | url }}">Code of Conduct</a>
</div>
</div>
<div class="container" style="text-align: center; font-size: 0.875em;">
<p><a href="https://linuxfoundation.eu"><img src="{{ site.logoLFEurope | url }}" alt="Linux Foundation Europe logo" width="250" style="margin: 1em;"></a></p>
<p>&copy; {% currentYear %} {{ site.author }}</p>
<p>Copyright &copy; Servo is a project of <a href="https://linuxfoundation.eu/">Linux Foundation Europe</a>.</p>
<p>For website terms of use, trademark policy and other project policies please see <a href="https://lfprojects.org">https://lfprojects.org</a>.</p>
</div>
</footer>
</div>

<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script>
$(() => {
Expand Down
92 changes: 55 additions & 37 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,47 +1,65 @@
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="{{ '/' | url }}">
<img src="{{ site.logoNegative | url }}" alt="{{ title }}">
</a>
<div class="inner-container">
<div class="navbar-brand">
<a href="{{ '/' | url }}">
<img src="{{ site.logoMark | url }}" alt="{{ title }}">
</a>

<a role="button" class="navbar-burger" data-target="navbar-menu" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<button id="hamburgerMenu" class="navbar-burger" data-target="navbar-menu" aria-label="menu" aria-expanded="false" type="button">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</button>
</div>

<div class="navbar-menu" id="navbar-menu">
{% for link in menu %}
{% assign pagedir = page.url %}
{% if link.subpages %}
{% capture subpage-is-active %}
{% for sublink in link.subpages %}
{% if sublink.url == pagedir %}
is-active
{% endif %}
{% endfor %}
{% endcapture %}
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link{% if link.url == pagedir %} is-active {% endif %}{{ subpage-is-active }}" href="{{ link.url | url }}"{% if link.url contains 'http://' or link.url contains 'https://' %} target="_blank"{% endif %}>
{{ link.title }}
</a>
<div class="navbar-dropdown">
<div class="navbar-menu" id="navbar-menu">
{% for link in menu %}
{% assign pagedir = page.url %}
{% if link.subpages %}
{% capture subpage-is-active %}
{% for sublink in link.subpages %}
<a class="navbar-item{% if sublink.url == pagedir %} is-active{% endif %}" href="{{ sublink.url | url }}"{% if sublink.url contains 'http://' or sublink.url contains 'https://' %} target="_blank"{% endif %}>
{{ sublink.title }}
</a>
{% if sublink.url == pagedir %}
is-active
mrego marked this conversation as resolved.
Show resolved Hide resolved
{% endif %}
{% endfor %}
{% endcapture %}
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link{% if link.url == pagedir %} is-active {% endif %}{{ subpage-is-active }}" href="{{ link.url | url }}"{% if link.url contains 'http://' or link.url contains 'https://' %} target="_blank"{% endif %}>
{{ link.title }}
</a>
<div class="navbar-dropdown">
{% for sublink in link.subpages %}
<a class="navbar-item{% if sublink.url == pagedir %} is-active{% endif %}" href="{{ sublink.url | url }}"{% if sublink.url contains 'http://' or sublink.url contains 'https://' %} target="_blank"{% endif %}>
{{ sublink.title }}
</a>
{% endfor %}
</div>
</div>
</div>
{% else %}
<a class="navbar-item{% if link.url == pagedir %} is-active{% endif %}" href="{{ link.url | url }}"{% if link.url contains 'http://' or link.url contains 'https://' %} target="_blank"{% endif %}>
{{ link.title }}
</a>
{% endif %}
{% endfor %}
{% include "social-buttons.html" %}
{% else %}
<a class="navbar-item{% if link.url == pagedir %} is-active{% endif %}" href="{{ link.url | url }}"{% if link.url contains 'http://' or link.url contains 'https://' %} target="_blank"{% endif %}>
{{ link.title }}
</a>
{% endif %}
{% endfor %}
{% include "social-buttons.html" %}
</div>
</div>
</div>
</nav>

<script>
const hamburger = document.getElementById('hamburgerMenu');
const menu = document.getElementById('navbar-menu');

const toggleMenu = () => {
const isExpanded = hamburger.getAttribute('aria-expanded') === 'true';
hamburger.setAttribute('aria-expanded', !isExpanded);
menu.classList.toggle('is-active', isExpanded);
};

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


</script>
Loading
Loading