[c] bugfix
This commit is contained in:
parent
858dfc2cb7
commit
61ca6e63f7
1 changed files with 18 additions and 3 deletions
|
@ -84,13 +84,20 @@
|
||||||
smoothScrollTo('home');
|
smoothScrollTo('home');
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleKeydown(event: KeyboardEvent) {
|
function handleKeydownHome(event: KeyboardEvent) {
|
||||||
// Trigger redirection on Enter key or Space bar
|
// Trigger redirection on Enter key or Space bar
|
||||||
if (event.key === 'Enter' || event.key === ' ') {
|
if (event.key === 'Enter' || event.key === ' ') {
|
||||||
redirectToHome();
|
redirectToHome();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleKeydownToggleMore(event: KeyboardEvent) {
|
||||||
|
// Trigger redirection on Enter key or Space bar
|
||||||
|
if (event.key === 'Enter' || event.key === ' ') {
|
||||||
|
toggleShowMore();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function openWebsite(url: string) {
|
function openWebsite(url: string) {
|
||||||
goto(url);
|
goto(url);
|
||||||
}
|
}
|
||||||
|
@ -104,6 +111,7 @@
|
||||||
href="https://discord.com/users/373525255102136341"
|
href="https://discord.com/users/373525255102136341"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
tabindex="0"
|
||||||
class="round-button button discord"
|
class="round-button button discord"
|
||||||
aria-label="Discord"
|
aria-label="Discord"
|
||||||
>
|
>
|
||||||
|
@ -116,6 +124,7 @@
|
||||||
href="https://youtube.com/@Sangeloo"
|
href="https://youtube.com/@Sangeloo"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
tabindex="0"
|
||||||
class="round-button button youtube"
|
class="round-button button youtube"
|
||||||
aria-label="YouTube"
|
aria-label="YouTube"
|
||||||
>
|
>
|
||||||
|
@ -128,6 +137,7 @@
|
||||||
href="https://github.com/SangeloDev"
|
href="https://github.com/SangeloDev"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
tabindex="0"
|
||||||
class="round-button button github"
|
class="round-button button github"
|
||||||
aria-label="GitHub"
|
aria-label="GitHub"
|
||||||
>
|
>
|
||||||
|
@ -140,6 +150,7 @@
|
||||||
href="mailto:contact@sangelo.space"
|
href="mailto:contact@sangelo.space"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
tabindex="0"
|
||||||
class="round-button button email"
|
class="round-button button email"
|
||||||
aria-label="Email"
|
aria-label="Email"
|
||||||
>
|
>
|
||||||
|
@ -156,6 +167,7 @@
|
||||||
href="https://steamcommunity.com/id/sangeloo"
|
href="https://steamcommunity.com/id/sangeloo"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
tabindex="0"
|
||||||
class="round-button button steam"
|
class="round-button button steam"
|
||||||
aria-label="Steam"
|
aria-label="Steam"
|
||||||
>
|
>
|
||||||
|
@ -168,6 +180,7 @@
|
||||||
href="https://matrix.to/#/@sangelo:matrix.org"
|
href="https://matrix.to/#/@sangelo:matrix.org"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
tabindex="0"
|
||||||
class="round-button button matrix"
|
class="round-button button matrix"
|
||||||
aria-label="Matrix"
|
aria-label="Matrix"
|
||||||
>
|
>
|
||||||
|
@ -180,6 +193,7 @@
|
||||||
href="https://gitpot.dev/Sangelo"
|
href="https://gitpot.dev/Sangelo"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
tabindex="0"
|
||||||
class="round-button button gitpot"
|
class="round-button button gitpot"
|
||||||
aria-label="Gitpot"
|
aria-label="Gitpot"
|
||||||
>
|
>
|
||||||
|
@ -249,6 +263,7 @@
|
||||||
href="https://mas.to/@sangelo"
|
href="https://mas.to/@sangelo"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
tabindex="0"
|
||||||
class="round-button button mastodon"
|
class="round-button button mastodon"
|
||||||
aria-label="Mastodon"
|
aria-label="Mastodon"
|
||||||
>
|
>
|
||||||
|
@ -262,7 +277,7 @@
|
||||||
<div
|
<div
|
||||||
class="toggle-more"
|
class="toggle-more"
|
||||||
on:click={toggleShowMore}
|
on:click={toggleShowMore}
|
||||||
on:keydown={handleKeydown}
|
on:keydown={handleKeydownToggleMore}
|
||||||
role="button"
|
role="button"
|
||||||
class:active={showMore}
|
class:active={showMore}
|
||||||
tabindex=0
|
tabindex=0
|
||||||
|
@ -285,7 +300,7 @@
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
on:click={redirectToHome}
|
on:click={redirectToHome}
|
||||||
on:keydown={handleKeydown}
|
on:keydown={handleKeydownHome}
|
||||||
>
|
>
|
||||||
<mask
|
<mask
|
||||||
id="mask0_1404_2"
|
id="mask0_1404_2"
|
||||||
|
|
Loading…
Reference in a new issue