Skip to content

Commit

Permalink
Add platform status page
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing committed Jun 13, 2016
1 parent 9a4d154 commit 83e5afa
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 1 deletion.
61 changes: 61 additions & 0 deletions _sass/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,27 @@
padding-bottom: 1.5rem;
}

.c-site__link {
&:hover {
text-shadow: 0 0 0.35px map-get($colors, text), 0 0 0.35px map-get($colors, text);
text-shadow: 0 0 0.35px color(text), 0 0 0.35px color(text);

&::after {
text-shadow: none;
}
}

&::after {
content: '|';
display: inline-block;

}

&:last-child::after {
content: '';
}
}

// Events listing
.c-past-event {
box-shadow: 0 2px 5px 0 map-get($colors, shadow);
Expand Down Expand Up @@ -146,6 +167,46 @@
margin-bottom: 1.5rem;
}

// PLatform status page
.c-platform {
display: flex;
flex-wrap: wrap;
text-align: center;
margin-bottom: 3rem;
}

.c-platform__link {
display: block;
flex: 1 0 calc(50% - 2rem);
border: 1px solid map-get($colors, secondary);
border: 1px solid color(secondary);
padding: 1.5rem 1rem 0;
margin: 1rem;
transition: border 0.3s;

p {
transition: color 0.3s;
}

&:hover {
border: 1px solid map-get($colors, main);
border: 1px solid color(main);

p {
color: map-get($colors, main);
color: color(main);
}
}
}

.c-platform__icon {
display: inline-block;
vertical-align: middle;
width: 100%;
height: 2em;
margin-bottom: 1rem;
}

// Site footer styles
.c-site-footer {
background: map-get($colors, main);
Expand Down
2 changes: 1 addition & 1 deletion css/styles.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions img/chrome.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/firefox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/microsoft.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions img/webkit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions platform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: page
title: Platform status
permalink: /platform-status/
---
All the major browser vendors publish the list of web platform features and their implementation status on every major browser. The information on each site is more or less the same, but each site has a different design and presentation, so take your pick.

<div class="c-platform">
<a href="https://platform-status.mozilla.org/" class="c-platform__link c-platform__firefox">
<img src="/img/firefox.svg" class="c-platform__icon" alt="Firefox">
<p>Firefox Platform Status</p>
</a>
<a href="https://www.chromestatus.com/features" class="c-platform__link c-platform__chrome">
<img src="/img/chrome.svg" class="c-platform__icon" alt="Chrome">
<p>Chrome Platform Status</p>
</a>
<a href="https://webkit.org/status/" class="c-platform__link c-platform__webkit">
<img src="/img/webkit.svg" class="c-platform__icon" alt="WebKit">
<p>WebKit Feature Status</p>
</a>
<a href="https://developer.microsoft.com/en-us/microsoft-edge/platform/status/" class="c-platform__link c-platform__microsoft">
<img src="/img/microsoft.svg" class="c-platform__icon" alt="Microsoft">
<p>Edge Platform Status</p>
</a>
</div>

*P.S. The layout of this page is kinda broken on Internet Explorer at the moment, but I'll fix it up when I have the time. Sorry about that.*

0 comments on commit 83e5afa

Please sign in to comment.