Repository navigation
Expand file tree
/
Copy pathHeader.svelte
More file actions
105 lines (88 loc) · 2.16 KB
/
Copy pathHeader.svelte
File metadata and controls
105 lines (88 loc) · 2.16 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<script>
</script>
<style>
#header {
height: 50px;
display: flex;
padding: 0 20px;
align-items: center;
background: rgb(30, 30, 30);
justify-content: space-between;
}
#logo {
display: flex;
align-items: center;
}
#logo-text {
font-size: 30px;
color: var(--light-gray);
font-family: 'A Love of Thunder';
margin-right: 10px;
}
#svg-logo-tagline {
font-size: 23px;
fill: rgb(255, 255, 255);
dominant-baseline: baseline;
font-family: 'Neucha';
}
.icons {
display: flex;
justify-content: flex-start;
align-items: center;
}
.icon {
width: 27px;
height: 27px;
margin-left: 15px;
}
.icon a{
width: 100%;
height: 100%;
}
.icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
</style>
<div id="header">
<div id="logo">
<div id="logo-text">
CNN Explainer
</div>
<svg width="510px" height="50px">
<defs>
<filter x="0%" y="0%" width="100%" height="100%" filterUnits="objectBoundingBox" id="chalk-texture">
<feTurbulence type="fractalNoise" baseFrequency="2" numOctaves="5" stitchTiles="stitch" result="f1">
</feTurbulence>
<feColorMatrix type="matrix" values="0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 -1.5 1.5" result="f2">
</feColorMatrix>
<feComposite operator="in" in2="f2" in="SourceGraphic" result="f3">
</feComposite>
</filter>
</defs>
<g filter="url(#chalk-texture)" transform="translate(0, 35)">
<text id="svg-logo-tagline">
Learn Convolutional Neural Network (CNN) in your browser!
</text>
</g>
</svg>
</div>
<div class="icons">
<div class="icon" title="Research paper">
<a target="_blank" href="http://zijie.wang/redirect/cnn-explainer/">
<img src="PUBLIC_URL/assets/img/pdf.png" alt="pdf icon"/>
</a>
</div>
<div class="icon" title="Demo video">
<a target="_blank" href="https://youtu.be/HnWIHWFbuUQ">
<img src="PUBLIC_URL/assets/img/youtube.png" alt="youtube icon"/>
</a>
</div>
<div class="icon" title="Open-source code">
<a target="_blank" href="https://github.com/poloclub/cnn-explainer">
<img src="PUBLIC_URL/assets/img/github.png" alt="github icon"/>
</a>
</div>
</div>
</div>