Skip to content

Commit 6db56e2

Browse files
committed
contact glow
1 parent 6e921e1 commit 6db56e2

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/lib/components/contact.svelte

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</div>
3333

3434
<style lang="scss">
35-
// @import url('https://use.fontawesome.com/releases/v5.15.4/css/solid.css');
35+
3636
3737
#contact {
3838
& * {
@@ -63,9 +63,9 @@
6363
}
6464
6565
&.externally-activated {
66-
background-color: $primary;
67-
color: $on-primary;
68-
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
66+
// background-color: $primary;
67+
// color: $on-primary;
68+
box-shadow: $glow-shadow;
6969
}
7070
&.activated {
7171
background-color: azure;

src/lib/sections/contact.svelte

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</div>
4646
{/each}
4747
</div>
48-
<div id="link-preview" class:active>
48+
<div id="link-preview" class:active class:left>
4949
{#if active}
5050
<a transition:slide href={activeContact?.link}>
5151
<!-- <i class={activeContact?.iconClass}></i> -->{activeContact?.link}<i class="fa-solid fa fa-arrow-up-right-from-square"></i>
@@ -95,6 +95,9 @@
9595
opacity: 0;
9696
transform: translateX(-20rem);
9797
&.active {
98+
&.left{
99+
box-shadow: $glow-shadow;
100+
}
98101
opacity: 1;
99102
pointer-events: all;
100103
transform: translateX(0);

src/theme/dark/_smui-theme.scss

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
$primary: #a7c347;
77
$surface: black;
88

9+
$glow-shadow: 0 0 15px -2px $primary;
10+
11+
912
// Svelte Colors! (Dark Theme)
1013
@forward '@material/theme/index' with (
1114
$primary: $primary,

0 commit comments

Comments
 (0)