Skip to content

Commit fefd42b

Browse files
author
AquarHEAD Lou
committed
[Close #5] Add One Clock in index, add beta link
⌛ ⏰ ⌚
1 parent 7284326 commit fefd42b

File tree

5 files changed

+98
-4
lines changed

5 files changed

+98
-4
lines changed

_layouts/index.html

+28-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
margin-top: 10px;
4848
}
4949
#expense-icon {
50-
background-image: url('/images/expense.png');
50+
background-image: url('/images/expense/icon.png');
51+
}
52+
#oneclock-icon {
53+
background-image: url('/images/oneclock/icon.png')
5154
}
5255

5356
@media only screen and (max-device-width: 480px) {
@@ -87,6 +90,18 @@ <h2>Expense</h2>
8790
<p>Easy expense tracking</p>
8891
</a>
8992
</li>
93+
94+
<li>
95+
<a id="oneclock" class="clearfix" href="/oneclock">
96+
<div id="oneclock-icon" class="icon ribbon-wrapper">
97+
<div class="ribbon-wrapper-green">
98+
<div class="ribbon-green">Beta</div>
99+
</div>
100+
</div>
101+
<h2>One Clock</h2>
102+
<p>One Clock to rule them all.</p>
103+
</a>
104+
</li>
90105
</ul>
91106

92107
<form class="subscribe" action="https://tinyletter.com/elaworkshop" method="post" target="popupwindow" onsubmit="window.open('https://tinyletter.com/elaworkshop', 'popupwindow', 'scrollbars=yes,width=800,height=600');return true">
@@ -111,6 +126,18 @@ <h2>Expense</h2>
111126
</footer>
112127

113128
<a href="https://github.com/ElaWorkshop" class="github-corner"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#70B7FD; color:#fff; position: absolute; top: 0; border: 0; right: 0;"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
129+
130+
<script type="text/javascript">
131+
var betaBadge = document.querySelector(".ribbon-green");
132+
133+
document.getElementById('oneclock').addEventListener('mouseover', function() {
134+
betaBadge.style.opacity = 0.9;
135+
});
136+
137+
document.getElementById('oneclock').addEventListener('mouseout', function() {
138+
betaBadge.style.opacity = 0.3;
139+
});
140+
</script>
114141
</body>
115142

116143
</html>

css/app.css

+67
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,70 @@ footer p {
211211
margin: auto;
212212
}
213213
}
214+
215+
/* Badge aka. Ribbon, ref: https://css-tricks.com/snippets/css/corner-ribbon/ */
216+
.ribbon-wrapper {
217+
margin: auto;
218+
width: 128px;
219+
height: 128px;
220+
border-radius: 10px;
221+
-webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
222+
-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
223+
box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
224+
position: relative;
225+
z-index: 90;
226+
background-size: 100% 100%;
227+
}
228+
229+
.ribbon-wrapper-green {
230+
width: 85px;
231+
height: 88px;
232+
overflow: hidden;
233+
position: absolute;
234+
top: -3px;
235+
right: -3px;
236+
}
237+
238+
.ribbon-green {
239+
font: bold 15px;
240+
font-family: Futura, "Segoe UI", sans-serif;
241+
color: #333;
242+
text-align: center;
243+
text-shadow: rgba(255,255,255,0.5) 0px 1px 0px;
244+
-webkit-transform: rotate(45deg);
245+
-moz-transform: rotate(45deg);
246+
-ms-transform: rotate(45deg);
247+
-o-transform: rotate(45deg);
248+
position: relative;
249+
padding: 7px 0;
250+
left: -5px;
251+
top: 15px;
252+
width: 120px;
253+
background-color: #BFDC7A;
254+
background-image: -webkit-gradient(linear, left top, left bottom, from(#BFDC7A), to(#8EBF45));
255+
background-image: -webkit-linear-gradient(top, #BFDC7A, #8EBF45);
256+
background-image: -moz-linear-gradient(top, #BFDC7A, #8EBF45);
257+
background-image: -ms-linear-gradient(top, #BFDC7A, #8EBF45);
258+
background-image: -o-linear-gradient(top, #BFDC7A, #8EBF45);
259+
color: #6a6340;
260+
-webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
261+
-moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
262+
box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
263+
opacity: 0.3;
264+
}
265+
266+
.ribbon-green:before, .ribbon-green:after {
267+
content: "";
268+
border-top: 3px solid #6e8900;
269+
border-left: 3px solid transparent;
270+
border-right: 3px solid transparent;
271+
position:absolute;
272+
bottom: -3px;
273+
}
274+
275+
.ribbon-green:before {
276+
left: 0;
277+
}
278+
.ribbon-green:after {
279+
right: 0;
280+
}​
File renamed without changes.

images/oneclock/icon.png

64.5 KB
Loading

oneclock.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
layout: app
33
title: One Clock
4-
made: Lovingly made by <a href="https://twitter.com/xhacker" target="_blank">@xhacker</a>
4+
made: Lovingly made by <a href="https://twitter.com/xhacker" target="_blank">@xhacker</a>, <a href="https://twitter.com/aquarhead" target="_blank">@aquarhead</a> and <a href="https://twitter.com/Ceecirno" target="_blank">@Cee</a>
55
copyright: © 2016 <a href="/">Ela Workshop</a>
66
---
77

88
<h1>
99
<p class="main">One Clock</p>
10-
<p class="sub">All your time zones, in One Clock.</p>
10+
<p class="sub">One Clock to rule them all.</p>
1111
</h1>
1212

1313
<img class="screenshot" src="/images/oneclock/screenshot.png" alt="Screenshot" width="415">
1414

1515
<img class="screenshot" src="/images/oneclock/screenshot-dark.png" alt="Screenshot Dark" width="415">
1616

17-
<p class="coming">Coming soon™</p>
17+
<p class="coming"><a href="https://rink.hockeyapp.net/apps/e718f0d66a5e4070897854315657b48a">Coming soon™</a></p>

0 commit comments

Comments
 (0)