Skip to content

Commit bcd4ae8

Browse files
authored
chore: updated Hacktoberfest link on the dev portal (#152)
* chore: updated Hacktoberfest link * chore: updated the external link styling
1 parent d30d04f commit bcd4ae8

File tree

3 files changed

+35
-28
lines changed

3 files changed

+35
-28
lines changed

public/img/icon-external.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/pages/FoundationHeader.astro

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import FoundationLogo from "../logos/FoundationLogo.astro";
3+
import ExternalIcon from "../../../public/img/icon-external.svg";
34
---
45

56
<header class="site-header" role="banner">
@@ -147,13 +148,15 @@ import FoundationLogo from "../logos/FoundationLogo.astro";
147148
>Podcast</a
148149
>
149150
</li>
150-
<li class="menu-item menu-item--level-2 external">
151+
<li class="menu-item menu-item--level-2">
151152
<a
152153
href="https://community.interledger.org/"
153154
data-umami-event="Site Nav - Community Forem"
154155
rel="noopener noreferrer"
155-
target="_blank">Community Forem</a
156-
>
156+
target="_blank"
157+
>Community Forem
158+
<ExternalIcon class="external" />
159+
</a>
157160
</li>
158161
</ul>
159162
</li>
@@ -264,8 +267,7 @@ import FoundationLogo from "../logos/FoundationLogo.astro";
264267
color: currentColor;
265268
}
266269

267-
.external a::after {
268-
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4M11 1h6m0 0v6m0-6L7 11"/></svg>');
270+
.external {
269271
display: inline-block;
270272
height: 0.75em;
271273
width: 0.75em;

src/pages/index.astro

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
33
import InterledgerIcon from "../components/logos/InterledgerIcon.astro";
44
import OpenPaymentsIcon from "../components/logos/OpenPaymentsIcon.astro";
55
import RafikiIcon from "../components/logos/RafikiIcon.astro";
6+
import ExternalIcon from "../../public/img/icon-external.svg";
67
---
78

89
<BaseLayout title="Developers">
@@ -24,11 +25,12 @@ import RafikiIcon from "../components/logos/RafikiIcon.astro";
2425
data-umami-event="Devs page link - Get involved">Get involved</a
2526
>
2627
<a
27-
class="external"
2828
href="https://github.com/interledger"
2929
target="_blank"
30-
rel="noopener noreferrer">Contribute on Github</a
31-
>
30+
rel="noopener noreferrer"
31+
>Contribute on Github
32+
<ExternalIcon class="external" />
33+
</a>
3234
</div>
3335
</div>
3436
<div class="image-wrapper">
@@ -60,8 +62,9 @@ import RafikiIcon from "../components/logos/RafikiIcon.astro";
6062
data-umami-event="Devs page link - GitHub"
6163
target="_blank"
6264
rel="noopener noreferrer"
63-
><OpenPaymentsIcon /> Open Payments Repo</a
64-
>
65+
><OpenPaymentsIcon /> Open Payments Repo
66+
<ExternalIcon class="external" />
67+
</a>
6568
</h2>
6669
<p>
6770
Open Payments is an open API standard that can be implemented by
@@ -76,8 +79,10 @@ import RafikiIcon from "../components/logos/RafikiIcon.astro";
7679
href="https://github.com/interledger/rafiki"
7780
data-umami-event="Devs page link - Rafiki"
7881
target="_blank"
79-
rel="noopener noreferrer"><RafikiIcon /> Rafiki Repo</a
80-
>
82+
rel="noopener noreferrer"
83+
><RafikiIcon /> Rafiki Repo
84+
<ExternalIcon class="external" />
85+
</a>
8186
</h2>
8287
<p>
8388
Rafiki is open source software that provides an efficient solution
@@ -93,8 +98,9 @@ import RafikiIcon from "../components/logos/RafikiIcon.astro";
9398
data-umami-event="Devs page link - RFCs"
9499
target="_blank"
95100
rel="noopener noreferrer"
96-
><InterledgerIcon /> Specifications Repo</a
97-
>
101+
><InterledgerIcon /> Specifications Repo
102+
<ExternalIcon class="external" />
103+
</a>
98104
</h2>
99105
<p>
100106
The <a
@@ -112,8 +118,10 @@ import RafikiIcon from "../components/logos/RafikiIcon.astro";
112118
href="https://github.com/interledger/testnet"
113119
data-umami-event="Devs page link - Testnet"
114120
target="_blank"
115-
rel="noopener noreferrer"><InterledgerIcon /> Test Network Repo</a
116-
>
121+
rel="noopener noreferrer"
122+
><InterledgerIcon /> Test Network Repo
123+
<ExternalIcon class="external" />
124+
</a>
117125
</h2>
118126
<p>
119127
The Test Network (Testnet) is an open Interledger network working
@@ -125,10 +133,9 @@ import RafikiIcon from "../components/logos/RafikiIcon.astro";
125133
<div class="card">
126134
<h2 class="heading--6">
127135
<a
128-
href="https://github.com/search?q=topic%3Ahacktoberfest+org%3Ainterledger+fork%3Atrue+repo%3Awicg%2Fwebmonetization&type=repositories"
136+
href="/hacktoberfest"
129137
data-umami-event="Devs page link - Hacktoberfest"
130-
target="_blank"
131-
rel="noopener noreferrer"><InterledgerIcon /> Hacktoberfest</a
138+
><InterledgerIcon /> Hacktoberfest</a
132139
>
133140
</h2>
134141
<p>
@@ -207,20 +214,19 @@ import RafikiIcon from "../components/logos/RafikiIcon.astro";
207214
width: 0.6em;
208215
}
209216

210-
.external {
217+
a {
211218
text-decoration-color: transparent;
212219
text-underline-offset: 4px;
213220
transition: text-decoration-color ease-in-out 200ms;
214221
cursor: pointer;
215222
}
216223

217-
.external:hover {
224+
a:hover {
218225
color: var(--color-white);
219226
text-decoration: underline;
220227
}
221228

222-
.external::after {
223-
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path stroke="hsl(180,0%,100%)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4M11 1h6m0 0v6m0-6L7 11"/></svg>');
229+
.external {
224230
height: 0.75em;
225231
width: 0.75em;
226232
display: inline-block;
@@ -318,13 +324,11 @@ import RafikiIcon from "../components/logos/RafikiIcon.astro";
318324
.card h2 a {
319325
display: flex;
320326
gap: var(--space-2xs);
327+
align-items: center;
321328
}
322329

323-
.card h2 a::after {
324-
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 18 18"><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4M11 1h6m0 0v6m0-6L7 11"/></svg>');
325-
height: 0.75em;
326-
width: 0.75em;
327-
filter: var(--filter-primary);
330+
.card h2 a .external {
331+
margin-inline: 0;
328332
}
329333

330334
.card h2,

0 commit comments

Comments
 (0)