Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (71 loc) · 3.23 KB
/
Copy pathindex.html
File metadata and controls
71 lines (71 loc) · 3.23 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html dir="ltr" lang="en_GB" class="no-js">
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1" name="viewport">
<title>Demo: Use SVG inline with fallback</title>
<link rel="stylesheet" href="./style.css">
<noscript>
<style>
/* TODO: keep in sync with .no-svg .social-icon */
.no-js .social-icon {
background-image: url("./assets/images/sprite.png");
}
</style>
</noscript>
</head>
<body>
<main role="main">
<article id="use-inline-svg" class="content" tabindex="-1">
<h1>Use SVG inline with fallback</h1>
<ul class="social-links nols">
<li class="social social--twitter" aria-describedby="description-twitter">
<a target="_blank" class="social-link" href="https://twitter.com/depone" rel="me">
<span id="description-twitter" class="type user-name">Twitter: @depone</span>
<svg class="social-icon">
<use xlink:href="#twitter"></use>
</svg>
</a>
</li>
<li class="social social--instagram" aria-describedby="description-instagram">
<a target="_blank" class="social-link" href="https://instagram.com/deponev2" rel="me">
<span id="description-instagram" class="type user-name">Instagram: @deponev2</span>
<svg class="social-icon">
<use xlink:href="#instagram"></use>
</svg>
</a>
</li>
<li class="social social--facebook" aria-describedby="description-facebook">
<a target="_blank" class="social-link" href="https://www.facebook.com/danielehniss" rel="me">
<span id="description-facebook" class="type user-name">Facebook: Daniel Ehniss</span>
<svg class="social-icon">
<use xlink:href="#facebook"></use>
</svg>
</a>
</li>
<li class="social social--github" tabindex="-1" aria-describedby="description-github">
<a target="_blank" class="social-link" href="https://github.com/deponeWD" rel="me">
<span id="description-github" class="type user-name">Github: @deponeWD</span>
<svg class="social-icon">
<use xlink:href="#github"></use>
</svg>
</a>
</li>
<li class="social social--codepen" tabindex="-1" aria-describedby="description-codepen">
<a target="_blank" class="social-link" href="https://codepen.io/depone" rel="me">
<span id="description-codepen" class="type user-name">CodePen: @depone</span>
<svg class="social-icon">
<use xlink:href="#codepen"></use>
</svg>
</a>
</li>
</ul>
<p>There is a <a href="https://depone.net/2017/05/11/die-vorteile-von-svg-nutzen/">post about this demo on my blog</a>.</p>
</article>
</main>
<footer class="page--footer" role="contentinfo" tabindex="-1">
<p>Made with ❤ by <a href="https://depone.net" rel="me">Depone</a>. <a href="https://github.com/deponeWD/inline-svg">Code is on GitHub</a></p>
</footer>
</body>
<script src="./assets/scripts/global.js"></script>
</html>