-
Notifications
You must be signed in to change notification settings - Fork 0
/
ravello_round.html
30 lines (29 loc) · 1.66 KB
/
ravello_round.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<title>Ravello Round Knot</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* { padding: 0; margin: 0; }
body { background: #fff; width: 100%; height: 100%; font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; text-align: center; }
body, h1 { font-weight: 100; }
a { opacity: 0.7; }
#content { position: absolute; bottom: 10px; right: 10px; color: #999; text-align: left; }
svg { max-height: 100%; max-width: 100%; }
</style>
<div id="content">
<h1>Ravello Round Knot</h1>
<p>By <a href="http://bernhardhaeussner.de">Bernhard Häussner</a>, May 2016.<br/>Code on <a href="https://github.com/bxt/Nazareth-Knot">GitHub</a>.</p>
</div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xml:lang="en" viewBox="-250 -250 500 500" id="knot">
<defs>
<style>
.top, .bottom { stroke-width: 25px; fill: none; }
.top { stroke: #E09989; }
.bottom { stroke: #E8E1D3; }
.top { stroke-dasharray: 40,99,99,60.48; stroke-dashoffset: -10; }
</style>
<path id="path-a" d="M 20.711 50 L 91.421 50 A 50 50 0 0 0 91.421 -50 L 20.711 -50 L -29.289 -100 A 50 50 0 0 0 -100 -29.289 L -50 20.711 L -50 91.421 A 50 50 0 0 0 50 91.421 L 50 20.711 L 100 -29.289 A 50 50 0 0 0 29.289 -100 L -20.711 -50 L -91.421 -50 A 50 50 0 0 0 -91.421 50 L -20.711 50 L 29.289 100 A 50 50 0 0 0 100 29.289 L 50 -20.711 L 50 -91.421 A 50 50 0 0 0 -50 -91.421 L -50 -20.711 L -100 29.289 A 50 50 0 0 0 -29.289 100 Z" />
</defs>
<use xlink:href="#path-a" class="bottom" />
<use xlink:href="#path-a" class="top" />
</svg>