Skip to content

Commit 34c3e4a

Browse files
committed
Added icon links to socials
Signed-off-by: Marcus Noble <[email protected]>
1 parent 504a4d9 commit 34c3e4a

File tree

2 files changed

+48
-6
lines changed

2 files changed

+48
-6
lines changed

src/templates/event.html

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@
2929
margin-right:-5px;
3030
margin-left:-5px;
3131
}
32+
header .socials {
33+
float: right;
34+
}
35+
header .socials a {
36+
text-decoration: none !important;
37+
}
38+
header .socials svg {
39+
width: 30px;
40+
height: 30px;
41+
}
42+
3243

3344
h1, h3 {
3445
margin-bottom: 0;
@@ -77,11 +88,19 @@
7788
<body>
7889
<div class="container">
7990
<header>
80-
<a href="/">
81-
82-
<img src="/img/logo.jpg" />
83-
Conf.Party
84-
</a>
91+
<a href="/"><img src="/img/logo.jpg" /> Conf.Party</a>
92+
<div class="socials">
93+
<a rel="me" href="https://mastodon.social/@confparty">
94+
<svg xmlns="http://www.w3.org/2000/svg" aria-label="Mastodon" role="img" viewBox="0 0 512 512" fill="#fff">
95+
<path d="m0 0H512V512H0"/><linearGradient id="a" y2="1"><stop offset="0" stop-color="#6364ff"/><stop offset="1" stop-color="#563acc"/></linearGradient><path fill="url(#a)" d="M317 408q-55 32-138 9-57-23-70-69-6-21-9-53-9-116 3-147 19-48 75-58 64-10 162 0 53 9 72 58 6 15 3 116-5 67-72 80-80 13-149-2-1 67 123 39"/><path d="M360 202q0-51-43-60-35-5-51 21l-9 15-9-15q-18-26-51-21-43 9-44 60v91h36V205q0-31 30-28 20 3 20 34v47h36V211q0-31 20-34 28-3 29 23v93h36"/>
96+
</svg>
97+
</a>
98+
<a rel="me" href="https://bsky.app/profile/conf.party">
99+
<svg xmlns="http://www.w3.org/2000/svg" aria-label="Bluesky" role="img" viewBox="0 0 512 512">
100+
<path d="m0 0H512V512H0" fill="#fff"/><path d="M159 126c-28-22-74-38-74 14 0 11 6 88 9 101 13 43 57 54 97 48-69 11-87 50-49 89 72 75 104-18 112-42l2-5 2 5c8 24 40 117 112 42 38-39 20-78-49-89 40 6 84-5 97-48 3-13 9-90 9-101 0-52-46-36-74-14-39 29-82 89-97 121-15-32-58-92-97-121Z" fill="#1185fe"/>
101+
</svg>
102+
</a>
103+
</div>
85104
</header>
86105

87106
<main>

src/templates/index.html

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
<link rel="stylesheet" href="css/normalize.css">
1616
<link rel="stylesheet" href="css/skeleton.css">
1717
<style>
18+
h1 .socials {
19+
display: flex;
20+
justify-content: center;
21+
}
22+
h1 .socials svg {
23+
width: 40px;
24+
height: 40px;
25+
}
26+
1827
h3 {
1928
margin-bottom: 0;
2029
}
@@ -45,7 +54,21 @@
4554
<body>
4655
<div class="container">
4756
<img src="img/logo.jpg" style="display: block;text-align: center;margin:10px auto; max-width:200px; border-radius: 200px;;" />
48-
<h1 style="text-align: center;">Conf.Party</h1>
57+
<h1 style="text-align: center;">
58+
Conf.Party
59+
<div class="socials">
60+
<a rel="me" href="https://mastodon.social/@confparty">
61+
<svg xmlns="http://www.w3.org/2000/svg" aria-label="Mastodon" role="img" viewBox="0 0 512 512" fill="#fff">
62+
<path d="m0 0H512V512H0"/><linearGradient id="a" y2="1"><stop offset="0" stop-color="#6364ff"/><stop offset="1" stop-color="#563acc"/></linearGradient><path fill="url(#a)" d="M317 408q-55 32-138 9-57-23-70-69-6-21-9-53-9-116 3-147 19-48 75-58 64-10 162 0 53 9 72 58 6 15 3 116-5 67-72 80-80 13-149-2-1 67 123 39"/><path d="M360 202q0-51-43-60-35-5-51 21l-9 15-9-15q-18-26-51-21-43 9-44 60v91h36V205q0-31 30-28 20 3 20 34v47h36V211q0-31 20-34 28-3 29 23v93h36"/>
63+
</svg>
64+
</a>
65+
<a rel="me" href="https://bsky.app/profile/conf.party">
66+
<svg xmlns="http://www.w3.org/2000/svg" aria-label="Bluesky" role="img" viewBox="0 0 512 512">
67+
<path d="m0 0H512V512H0" fill="#fff"/><path d="M159 126c-28-22-74-38-74 14 0 11 6 88 9 101 13 43 57 54 97 48-69 11-87 50-49 89 72 75 104-18 112-42l2-5 2 5c8 24 40 117 112 42 38-39 20-78-49-89 40 6 84-5 97-48 3-13 9-90 9-101 0-52-46-36-74-14-39 29-82 89-97 121-15-32-58-92-97-121Z" fill="#1185fe"/>
68+
</svg>
69+
</a>
70+
</div>
71+
</h1>
4972

5073
<h2>Upcoming Conferences</h2>
5174
{{ range .Upcoming }}

0 commit comments

Comments
 (0)