generated from cncf/hugo-netlify-starter
-
Notifications
You must be signed in to change notification settings - Fork 20
Servo Redesign #202
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
Merged
Merged
Servo Redesign #202
Changes from 8 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
afe5297
Base structure and styles
f35e1c9
subpage styling, tables, mobile nav
f063b90
Accessible menu, acknowledgements page, home update
3c8af3b
Merge branch 'servo:main' into servo-redesign
ststimac bd4ff0d
Style updates, home page messaging, blog layout
ststimac 9c8f4d2
Blog post styles and layout
ststimac 3ce4ddf
Sass
ststimac 4d19269
Fix GitHub workflows
mrego f84548f
Remove unneeded file
mrego 9b07c8c
Recover slides styles
mrego 3fa371a
Remove package-lock.json
mrego f21fc73
Update CODE_OF_CONDUCT.md
mrego feef89c
Remove unneeded files
mrego 3124393
Remove unneeded file
mrego 11d6635
Limit videos to 100% max-width
mrego b6427e7
Move style.css to assets/css/
mrego 9c6fecb
Simplify process and dependencies for reveal.js themes
mrego ee71dc6
Remove unused files
mrego 1943b5a
Try to fix background image in preview deployment
mrego dc37c95
Home img changes, multiplatform feature, crisper pngs for feature icons
ststimac cb10ae2
Update sentence as we're no longer showing legacy layout in wpt.servo…
mrego 13887ac
Change multiplatform to cross platform and edit embedded copy
ststimac 275be56
Feature copy edits
ststimac 38c1eb9
Update .eleventy.js
mrego 4afc799
Fix blog pagination on preview
mrego 5b44641
Update package-lock.json
mrego 4bf9bbd
Fix size of wpt.servo.org iframe
mrego 0077438
Merge branch 'main' into servo-redesign
mrego f780440
Fix styles of table on last blog post
mrego ce8f445
Home edits
ststimac dc1d7d9
Download page edits
ststimac d9ed5a5
Drop a page we're no longer used (and it's outdated too)
mrego c018791
Minor tweak in frontpage wording
mrego 8972440
Move code styles to the CSS file so they apply also on blog posts
mrego 2502d23
Import correct fonts
ststimac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>© {% currentYear %} {{ site.author }}</p> | ||
<p>Copyright © 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>© {% currentYear %} {{ site.author }}</p> | ||
<p>Copyright © 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> | ||
$(() => { | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.