Skip to content

Commit e3f83f2

Browse files
authored
Merge pull request #9 from proxify-ab/GRC-1170-page-improvements
feat: update header of developers page
2 parents c4239aa + a09a7c6 commit e3f83f2

File tree

4 files changed

+90
-20
lines changed

4 files changed

+90
-20
lines changed

.vitepress/theme/components/PageHero.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<h1 class="page-hero__title">
44
<slot name="title" />
55
</h1>
6-
<p class="page-hero__lead">
6+
<div class="page-hero__lead">
77
<slot name="lead" />
8-
</p>
8+
</div>
99
</div>
1010
</template>
1111

src/developers/components/DeveloperHero.vue

Lines changed: 72 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,83 @@ import { generateUTMUrl } from './utils'
88
defineProps<{ title?: string }>()
99
1010
const route = useRoute()
11-
const applyLink = computed(() => generateUTMUrl(partnerConfig.pageHeroBanner.applyButton.url, route.path))
11+
const hireUsLink = computed(() => generateUTMUrl(partnerConfig.hireUsButtonUrl, route.path))
1212
</script>
1313

1414
<template>
15-
<PageHero>
15+
<PageHero class="page-hero">
1616
<template #title>{{ title || partnerConfig.pageHeroBanner.title }}</template>
1717
<template #lead>
18-
{{ partnerConfig.pageHeroBanner.description }}
19-
<br />
20-
<a v-if="applyLink" class="link" :href="applyLink"
21-
target="_blank">{{ partnerConfig.pageHeroBanner.applyButton.label }}</a>.
18+
<p class="description">
19+
{{ partnerConfig.pageHeroBanner.description1 }}
20+
<br />
21+
{{ partnerConfig.pageHeroBanner.description2 }}
22+
<br />
23+
</p>
24+
25+
<a
26+
v-if="hireUsLink"
27+
:href="hireUsLink"
28+
target="_blank"
29+
class="accent-button"
30+
>
31+
{{ partnerConfig.pageHeroBanner.hireButton.label }}
32+
</a>
33+
34+
<span class="footer-text">{{ partnerConfig.pageHeroBanner.footer }}</span>
2235
</template>
2336
</PageHero>
2437
</template>
38+
39+
<style scoped>
40+
.page-hero {
41+
max-width: 100%;
42+
}
43+
44+
:deep(.page-hero__title) {
45+
font-weight: 400;
46+
font-size: 32px;
47+
margin-bottom: 0;
48+
}
49+
50+
:deep(.page-hero__lead) {
51+
padding-top: 0;
52+
}
53+
54+
.accent-button {
55+
margin: 40px auto 16px;
56+
}
57+
58+
.description {
59+
margin-top: 24px;
60+
font-weight: 400;
61+
}
62+
63+
.footer-text {
64+
color: var(--vp-c-text-2);
65+
font-size: 14px;
66+
font-weight: 700;
67+
}
68+
69+
/* Media Queries */
70+
@media (min-width: 768px) {
71+
.page-hero {
72+
padding: 48px 128px;
73+
}
74+
75+
.accent-button {
76+
margin-top: 48px;
77+
}
78+
}
79+
80+
@media (min-width: 1024px) {
81+
.page-hero {
82+
max-width: 846px;
83+
padding: 96px 0;
84+
}
85+
86+
.description {
87+
margin-top: 32px;
88+
}
89+
}
90+
</style>

src/developers/partnerConfig.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ const partnerConfig = {
2525

2626
// Hero Section
2727
pageHeroBanner: {
28-
title: 'Vue Developers',
29-
description: 'Vue Developers are certified individual freelancers. Payments, compliance and vetting are administrated by our partner Proxify. Interested to join the list?',
30-
applyButton: {
31-
url: applyUrl,
32-
label: 'Apply here'
33-
}
28+
title: 'Find top Vue.js developers for your team',
29+
description1: 'Access certified Vue.js developers available for your next project.',
30+
description2: 'Proxify handles the vetting process to ensure top-tier quality and reliability.',
31+
hireButton: {
32+
url: hireUrl,
33+
label: 'Find Vue.js developers now'
34+
},
35+
footer: "Get matched with a top Vue.js developer in less than 48 hours",
3436
},
3537

3638
// Hero Section

src/partners/components/PartnerHero.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ defineProps<{ title?: string }>()
88
<PageHero>
99
<template #title>{{ title || 'Vue Partners' }}</template>
1010
<template #lead>
11-
Vue Partners are Vue-team endorsed agencies that provide first-class
12-
Vue consulting and development services. If your company is
13-
interested in being listed as a partner, please
14-
<a class="link" href="https://airtable.com/shrCQhat57SApJI2l" target="_blank"
15-
>register your interest here</a
16-
>.
11+
<p>
12+
Vue Partners are Vue-team endorsed agencies that provide first-class
13+
Vue consulting and development services. If your company is
14+
interested in being listed as a partner, please
15+
<a class="link" href="https://airtable.com/shrCQhat57SApJI2l" target="_blank"
16+
>register your interest here</a
17+
>.
18+
</p>
1719
</template>
1820
</PageHero>
1921
</template>

0 commit comments

Comments
 (0)