Skip to content

Commit 78728fc

Browse files
committed
side floating links - book a demo added
1 parent 951a035 commit 78728fc

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/components/FloatingLinks.astro

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
---
44

55
<ul id="floating-links">
6+
<li>
7+
<a href="/book-a-demo/" class="highlight" data-astro-prefetch>
8+
<span>Book a Demo</span>
9+
</a>
10+
</li>
611
<li>
712
<a href="/newsletter/" data-astro-prefetch><span>Newsletter</span></a>
813
</li>
@@ -47,6 +52,8 @@
4752
</script>
4853

4954
<style lang="scss">
55+
56+
5057
#floating-links {
5158
position: fixed;
5259
z-index: 2;
@@ -76,17 +83,29 @@
7683
display: flex;
7784
flex-flow: row;
7885
align-items: center;
86+
padding-left: 10px;
7987
justify-content: flex-start;
8088
box-sizing: border-box;
8189
border-bottom: 1px solid var(--text-body-primary);
8290
text-decoration: none;
83-
transition-property: border-bottom-color;
91+
transition-property: border-bottom-color border-bottom-width;
8492

8593
@include animate();
8694

8795
&:hover {
8896
border-bottom-color: var(--surface-main-primary);
97+
border-bottom-width: 4px;
98+
}
99+
}
100+
.highlight{
101+
background-color: var(--surface-main-primary);
102+
span {
103+
color: white;
89104
}
105+
106+
&:hover {
107+
border-bottom-color: var(--text-body-primary);
108+
}
90109
}
91110
}
92111
}

0 commit comments

Comments
 (0)