Align header images
This commit is contained in:
@@ -1,20 +1,34 @@
|
||||
<template>
|
||||
<g-link :to="link" class="section banner">
|
||||
<div class="center">
|
||||
<h2 class="h1">
|
||||
<strong>{{ title }}</strong>
|
||||
<font-awesome :icon="['fas', 'long-arrow-alt-right']" />
|
||||
</h2>
|
||||
<div>
|
||||
<div class="header section banner" v-if="header">
|
||||
<div class="center">
|
||||
<h1 class="text-8xl">
|
||||
<strong>{{ title }}</strong>
|
||||
</h1>
|
||||
</div>
|
||||
<div
|
||||
class="back"
|
||||
:style="{ 'background-image': 'url(' + image.src + ')' }"
|
||||
></div>
|
||||
</div>
|
||||
<div
|
||||
class="back"
|
||||
:style="{ 'background-image': 'url(' + image.src + ')' }"
|
||||
></div>
|
||||
</g-link>
|
||||
|
||||
<g-link :to="link" class="section banner" v-else>
|
||||
<div class="center">
|
||||
<h2 class="h1">
|
||||
<strong>{{ title }}</strong>
|
||||
<font-awesome :icon="['fas', 'long-arrow-alt-right']" />
|
||||
</h2>
|
||||
</div>
|
||||
<div
|
||||
class="back"
|
||||
:style="{ 'background-image': 'url(' + image.src + ')' }"
|
||||
></div>
|
||||
</g-link>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: ["link", "title", "image"],
|
||||
props: ["link", "title", "image", "header"],
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -33,7 +47,13 @@ export default {
|
||||
transition: 1.5s;
|
||||
}
|
||||
|
||||
.banner .h1 {
|
||||
.header {
|
||||
height: auto;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.banner h2,
|
||||
.header h1 {
|
||||
margin: auto;
|
||||
color: #fff;
|
||||
position: relative;
|
||||
@@ -42,7 +62,12 @@ export default {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.banner .h1 svg {
|
||||
.header h1 {
|
||||
color: #000;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.banner h2 svg {
|
||||
font-size: 40px;
|
||||
margin-left: 15px;
|
||||
position: absolute;
|
||||
@@ -65,35 +90,60 @@ export default {
|
||||
transition: 1.5s;
|
||||
}
|
||||
|
||||
.header .back {
|
||||
filter: none;
|
||||
opacity: 1;
|
||||
background-position: top;
|
||||
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.banner:hover {
|
||||
background: #4b3a92;
|
||||
}
|
||||
|
||||
.banner:hover .h1 svg {
|
||||
.header:hover {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.banner:hover h2 svg {
|
||||
transform: translateY(-50%) scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.banner:hover .h1 {
|
||||
.banner:hover h2 {
|
||||
padding-right: 40px;
|
||||
}
|
||||
|
||||
.header:hover h1 {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.banner:hover .back {
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
.header:hover .back {
|
||||
transform: none;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.banner .h1 {
|
||||
.banner h2 {
|
||||
font: 600 7vw/10vw;
|
||||
}
|
||||
|
||||
.banner .h1 svg {
|
||||
.header h1 {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.banner h2 svg {
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.banner {
|
||||
.banner,
|
||||
.header {
|
||||
padding: 80px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,15 +2,31 @@
|
||||
<Layout :hideHeader="true" :disableScroll="true">
|
||||
<div
|
||||
class="container-fluid sm:pxi-0 mx-auto overflow-x-hidden py-5"
|
||||
v-if="$page.markdownPage.id == 'careers'"
|
||||
v-if="
|
||||
$page.markdownPage.id == 'careers' ||
|
||||
$page.markdownPage.id == 'community'
|
||||
"
|
||||
>
|
||||
<g-image
|
||||
class="w-100 mx-auto"
|
||||
v-if="$page.markdownPage.solution_image"
|
||||
:src="$page.markdownPage.solution_image.src"
|
||||
<CustomCTA
|
||||
:header="true"
|
||||
:image="$page.markdownPage.pageHeader.image"
|
||||
:title="$page.markdownPage.pageHeader.title"
|
||||
/>
|
||||
<!-- <div class="singlePic">
|
||||
<g-image
|
||||
class="w-100 mx-auto"
|
||||
v-if="$page.markdownPage.solution_image"
|
||||
:src="$page.markdownPage.solution_image.src"
|
||||
/>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5">
|
||||
<div
|
||||
class="container sm:pxi-0 mx-auto overflow-x-hidden py-5"
|
||||
v-if="
|
||||
$page.markdownPage.id !== 'careers' &&
|
||||
$page.markdownPage.id !== 'community'
|
||||
"
|
||||
>
|
||||
<Header
|
||||
v-if="
|
||||
$page.markdownPage.id !== 'contact' &&
|
||||
@@ -49,13 +65,13 @@
|
||||
:sections="$page.markdownPage.comparisonSecs"
|
||||
/>
|
||||
</div>
|
||||
<g-image
|
||||
<!-- <g-image
|
||||
v-if="
|
||||
$page.markdownPage.id !== 'careers' && $page.markdownPage.solution_image
|
||||
"
|
||||
class="mx-auto mt-10"
|
||||
:src="$page.markdownPage.solution_image.src"
|
||||
/>
|
||||
/> -->
|
||||
<div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5">
|
||||
<CallToAction
|
||||
:id="$page.markdownPage.id"
|
||||
@@ -156,7 +172,7 @@
|
||||
:pricingPlans="$page.markdownPage.jobs"
|
||||
:main="$page.markdownPage.jobsMain"
|
||||
/>
|
||||
|
||||
|
||||
<SolutionsHeader
|
||||
class="mt-0"
|
||||
v-if="$page.markdownPage.header4"
|
||||
@@ -404,6 +420,11 @@
|
||||
button2
|
||||
link2
|
||||
}
|
||||
pageHeader {
|
||||
id
|
||||
title
|
||||
image
|
||||
}
|
||||
}
|
||||
allCustomCta {
|
||||
edges {
|
||||
@@ -466,6 +487,9 @@ export default {
|
||||
CenteredAccordion,
|
||||
CustomCTA,
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.$page.markdownPage.careersHeader);
|
||||
},
|
||||
computed: {
|
||||
getImg() {
|
||||
let img = "";
|
||||
@@ -568,4 +592,4 @@ export default {
|
||||
.gridsome-highlight pre[class*="language-"].line-numbers {
|
||||
padding-left: 2.8em;
|
||||
}
|
||||
</style> >
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user