Skip to content

Commit 06a2286

Browse files
committed
feat: back home button + styling
1 parent 86b9a4c commit 06a2286

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

content/core/signup.json

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
},
1212
"page_content": [
1313
{
14+
"back_home_cta": {
15+
"text": "Back home",
16+
"tag": "nuxt-link",
17+
"to": "/",
18+
"theme": "secondary"
19+
},
1420
"signup_card": {
1521
"title": "Register for Singularity app preview",
1622
"img": "/images/increase-graphic.svg",

pages/signup.vue

+28-10
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
<div class="grid-center-noGutter">
44
<div class="col-8">
55

6+
<ButtonCta
7+
class="back-home-button"
8+
:theme="content.back_home_cta.theme"
9+
:tag="content.back_home_cta.tag"
10+
:to="content.back_home_cta.to">
11+
<span class="button-label"> {{ content.back_home_cta.text }} </span>
12+
</ButtonCta>
13+
614
<SignupCard :signup-card="content.signup_card" />
715

816
</div>
@@ -37,15 +45,25 @@ const content = computed(() => {
3745
align-items: center;
3846
}
3947
40-
.top {
41-
display: flex;
42-
flex-direction: row;
43-
align-items: center;
44-
margin-bottom: 2rem;
45-
}
46-
47-
.logo {
48-
width: 3rem;
49-
margin-right: 1rem;
48+
.back-home-button {
49+
padding-right: 0;
50+
padding-left: 1.5625rem;
51+
margin-bottom: toRem(17);
52+
:deep(.button-content) {
53+
&::before {
54+
content: '';
55+
position: absolute;
56+
left: 0.5rem;
57+
@include transitionDefault;
58+
}
59+
&::after {
60+
display: none;
61+
}
62+
&:hover {
63+
&:before {
64+
transform: translateX(-0.5rem);
65+
}
66+
}
67+
}
5068
}
5169
</style>

0 commit comments

Comments
 (0)