Update: Maps
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
public/
|
public/
|
||||||
resources/_gen/
|
resources/_gen/
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
node_modules/
|
node_modules/
|
||||||
|
static/tiles/
|
||||||
6
assets/js/main.js
Normal file
6
assets/js/main.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
AOS.init({
|
||||||
|
once: true,
|
||||||
|
offset: 100,
|
||||||
|
easing: 'ease',
|
||||||
|
duration: 1200
|
||||||
|
});
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
|
|
||||||
// Globals
|
// Globals
|
||||||
$container-max-widths: (
|
/* $container-max-widths: (
|
||||||
sm: 540px,
|
sm: 540px,
|
||||||
md: 720px,
|
md: 720px,
|
||||||
lg: 960px,
|
lg: 960px,
|
||||||
xl: 1140px,
|
xl: 1140px,
|
||||||
xxl: 1520px
|
xxl: 1520px
|
||||||
);
|
); */
|
||||||
|
|
||||||
// Imports
|
// Imports
|
||||||
@import "node_modules/bootstrap/scss/bootstrap";
|
@import "node_modules/bootstrap/scss/bootstrap";
|
||||||
@@ -131,8 +131,13 @@ p {
|
|||||||
margin-block-start: 0;
|
margin-block-start: 0;
|
||||||
margin-block-end: 0;
|
margin-block-end: 0;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color:$van-emous-orange;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
border-radius: 40px;
|
border-radius: 40px;
|
||||||
}
|
}
|
||||||
@@ -159,6 +164,10 @@ p {
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rounded-img {
|
||||||
|
border-radius: 20px;;
|
||||||
|
}
|
||||||
|
|
||||||
// Menu
|
// Menu
|
||||||
.top-bar {
|
.top-bar {
|
||||||
background-color: #a8bbd5;
|
background-color: #a8bbd5;
|
||||||
@@ -189,9 +198,20 @@ p {
|
|||||||
backdrop-filter: blur(4px);
|
backdrop-filter: blur(4px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeIn {
|
// Animation
|
||||||
from { opacity: 0; transform: translateY(10px); }
|
[data-aos^="fade"][data-aos^="fade"] {
|
||||||
to { opacity: 1; transform: translateY(0); }
|
transition-property: opacity, transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-aos="fade-up"] { transform: translateY(30px) !important; }
|
||||||
|
[data-aos="fade-down"] { transform: translateY(-30px) !important; }
|
||||||
|
|
||||||
|
[data-aos="fade-left"] { transform: translateX(30px) !important; }
|
||||||
|
[data-aos="fade-right"] { transform: translateX(-30px) !important; }
|
||||||
|
|
||||||
|
[data-aos].aos-animate {
|
||||||
|
transform: translate(0) !important;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
@@ -444,6 +464,11 @@ p {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Forms
|
||||||
|
.form-control {
|
||||||
|
padding: 16px 22px;
|
||||||
|
}
|
||||||
|
|
||||||
// Map
|
// Map
|
||||||
#col-map {
|
#col-map {
|
||||||
transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
@@ -462,6 +487,49 @@ p {
|
|||||||
transform: translateX(0) !important;
|
transform: translateX(0) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ol-control {
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ol-zoom {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-zoom {
|
||||||
|
bottom: 20px;
|
||||||
|
right: 20px;
|
||||||
|
top: auto;
|
||||||
|
left: auto;
|
||||||
|
position: absolute;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-zoom button {
|
||||||
|
background-color: #fff !important;
|
||||||
|
color: $van-emous-orange !important;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 5px !important;
|
||||||
|
margin-bottom: 5px !important;
|
||||||
|
width: 30px !important;
|
||||||
|
height: 30px !important;
|
||||||
|
font-size: 1.2rem !important;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-zoom button:hover {
|
||||||
|
background-color: $van-emous-orange !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ol-attribution {
|
||||||
|
right: 20px !important;
|
||||||
|
bottom: 10px !important;
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
// Footer
|
// Footer
|
||||||
.footer-main {
|
.footer-main {
|
||||||
.footer-inner {
|
.footer-inner {
|
||||||
|
|||||||
28
hugo.toml
28
hugo.toml
@@ -1,6 +1,8 @@
|
|||||||
baseURL = 'https://vanemous.start-it.nl/'
|
baseURL = 'https://vanemous.start-it.nl/'
|
||||||
languageCode = 'nl-nl'
|
languageCode = 'nl-nl'
|
||||||
|
defaultContentLanguage = 'nl'
|
||||||
title = 'Van Emous Mantelzorgwoningen'
|
title = 'Van Emous Mantelzorgwoningen'
|
||||||
|
paginate = 10
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
writeStats = true
|
writeStats = true
|
||||||
@@ -37,6 +39,18 @@ title = 'Van Emous Mantelzorgwoningen'
|
|||||||
url = "/mantelzorgwoningen/type-a/"
|
url = "/mantelzorgwoningen/type-a/"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
|
[[menus.main]]
|
||||||
|
parent = "mantelzorgwoningen"
|
||||||
|
name = "Type B"
|
||||||
|
url = "/mantelzorgwoningen/type-a/"
|
||||||
|
weight = 1
|
||||||
|
|
||||||
|
[[menus.main]]
|
||||||
|
parent = "mantelzorgwoningen"
|
||||||
|
name = "Type C"
|
||||||
|
url = "/mantelzorgwoningen/type-a/"
|
||||||
|
weight = 1
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
name = "Over Ons"
|
name = "Over Ons"
|
||||||
url = "/over-ons/"
|
url = "/over-ons/"
|
||||||
@@ -64,10 +78,14 @@ title = 'Van Emous Mantelzorgwoningen'
|
|||||||
|
|
||||||
## Params
|
## Params
|
||||||
[params]
|
[params]
|
||||||
description = "Van Emous bouwt hoogwaardige mantelzorgwoningen op maat."
|
description = "Van Emous bouwt hoogwaardige mantelzorgwoningen op maat. Duurzaam, comfortabel en volledig ontzorgd."
|
||||||
telefoon = "+31 6 15116762"
|
telefoon = "+31 6 15116762"
|
||||||
|
telefoon_link = "+31615116762"
|
||||||
email = "info@vanemousmantelzorgwoningen.nl"
|
email = "info@vanemousmantelzorgwoningen.nl"
|
||||||
google_rating = 5
|
address = "Adresgegevens hier..."
|
||||||
|
|
||||||
|
# SEO & Socials
|
||||||
|
author = "Van Emous"
|
||||||
logo = "img/logo.svg"
|
logo = "img/logo.svg"
|
||||||
favicon = "favicon.ico"
|
favicon = "favicon.ico"
|
||||||
og_image = "img/og-image.jpg"
|
og_image = "img/og-image.jpg"
|
||||||
@@ -76,5 +94,7 @@ title = 'Van Emous Mantelzorgwoningen'
|
|||||||
facebook = "https://facebook.com/vanemous"
|
facebook = "https://facebook.com/vanemous"
|
||||||
instagram = "https://instagram.com/vanemous"
|
instagram = "https://instagram.com/vanemous"
|
||||||
|
|
||||||
[params.seo]
|
[sitemap]
|
||||||
og_image = "img/og-share-image.jpg"
|
changefreq = 'monthly'
|
||||||
|
priority = 0.5
|
||||||
|
filename = 'sitemap.xml'
|
||||||
@@ -56,6 +56,7 @@
|
|||||||
"btn-cta",
|
"btn-cta",
|
||||||
"col-12",
|
"col-12",
|
||||||
"col-6",
|
"col-6",
|
||||||
|
"col-8",
|
||||||
"col-auto",
|
"col-auto",
|
||||||
"col-lg-3",
|
"col-lg-3",
|
||||||
"col-lg-4",
|
"col-lg-4",
|
||||||
@@ -83,6 +84,8 @@
|
|||||||
"dropdown-item",
|
"dropdown-item",
|
||||||
"dropdown-menu",
|
"dropdown-menu",
|
||||||
"dropdown-toggle",
|
"dropdown-toggle",
|
||||||
|
"fade-left",
|
||||||
|
"fade-up",
|
||||||
"flex-column",
|
"flex-column",
|
||||||
"flex-nowrap",
|
"flex-nowrap",
|
||||||
"footer-inner",
|
"footer-inner",
|
||||||
@@ -94,11 +97,11 @@
|
|||||||
"form-select",
|
"form-select",
|
||||||
"fs-6",
|
"fs-6",
|
||||||
"fw-bold",
|
"fw-bold",
|
||||||
|
"g-2",
|
||||||
"g-3",
|
"g-3",
|
||||||
"g-4",
|
"g-4",
|
||||||
"g-5",
|
"g-5",
|
||||||
"g-lg-4",
|
"g-lg-4",
|
||||||
"google-reviews",
|
|
||||||
"h-100",
|
"h-100",
|
||||||
"h4",
|
"h4",
|
||||||
"h5",
|
"h5",
|
||||||
@@ -124,7 +127,6 @@
|
|||||||
"mb-4",
|
"mb-4",
|
||||||
"mb-5",
|
"mb-5",
|
||||||
"mb-lg-5",
|
"mb-lg-5",
|
||||||
"me-1",
|
|
||||||
"me-2",
|
"me-2",
|
||||||
"me-3",
|
"me-3",
|
||||||
"me-lg-5",
|
"me-lg-5",
|
||||||
@@ -142,7 +144,6 @@
|
|||||||
"mt-auto",
|
"mt-auto",
|
||||||
"mt-lg-5",
|
"mt-lg-5",
|
||||||
"mx-auto",
|
"mx-auto",
|
||||||
"mx-lg-5",
|
|
||||||
"my-5",
|
"my-5",
|
||||||
"my-lg-5",
|
"my-lg-5",
|
||||||
"nav-item",
|
"nav-item",
|
||||||
@@ -159,7 +160,6 @@
|
|||||||
"opacity-10",
|
"opacity-10",
|
||||||
"overflow-hidden",
|
"overflow-hidden",
|
||||||
"p-4",
|
"p-4",
|
||||||
"p-5",
|
|
||||||
"panel",
|
"panel",
|
||||||
"pb-3",
|
"pb-3",
|
||||||
"pb-lg-5",
|
"pb-lg-5",
|
||||||
@@ -170,14 +170,17 @@
|
|||||||
"pt-5",
|
"pt-5",
|
||||||
"px-3",
|
"px-3",
|
||||||
"px-4",
|
"px-4",
|
||||||
"px-lg-4",
|
"px-5",
|
||||||
"px-lg-5",
|
"px-lg-5",
|
||||||
"py-2",
|
"py-2",
|
||||||
"py-3",
|
"py-3",
|
||||||
|
"py-4",
|
||||||
"py-5",
|
"py-5",
|
||||||
"py-lg-4",
|
"py-lg-4",
|
||||||
|
"rounded-img",
|
||||||
"rounded-pill",
|
"rounded-pill",
|
||||||
"row",
|
"row",
|
||||||
|
"shadow",
|
||||||
"shadow-sm",
|
"shadow-sm",
|
||||||
"small",
|
"small",
|
||||||
"sticky-top",
|
"sticky-top",
|
||||||
@@ -190,7 +193,6 @@
|
|||||||
"text-primary",
|
"text-primary",
|
||||||
"text-secondary",
|
"text-secondary",
|
||||||
"text-uppercase",
|
"text-uppercase",
|
||||||
"text-warning",
|
|
||||||
"text-white",
|
"text-white",
|
||||||
"text-white-50",
|
"text-white-50",
|
||||||
"top-bar",
|
"top-bar",
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
{{ partial "usps.html" . }}
|
{{ partial "usps.html" . }}
|
||||||
|
|
||||||
{{ if .Params.info_section }}
|
{{ if .Params.info_section }}
|
||||||
<section class="info-section py-5 my-lg-5 mx-lg-5">
|
<section class="info-section py-5 my-lg-5">
|
||||||
<div class="container px-lg-5">
|
<div class="container">
|
||||||
<div class="row align-items-center g-5">
|
<div class="row align-items-center g-5">
|
||||||
|
|
||||||
<div class="col-lg-5 pe-lg-5">
|
<div class="col-lg-5 pe-lg-5">
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
{{ with .Params.info_section.image }}
|
{{ with .Params.info_section.image }}
|
||||||
<img src="{{ . | relURL }}"
|
<img src="{{ . | relURL }}"
|
||||||
alt="{{ $.Params.info_section.image_alt | default "Van Emous Mantelzorgwoningen" }}"
|
alt="{{ $.Params.info_section.image_alt | default "Van Emous Mantelzorgwoningen" }}"
|
||||||
class="img-fluid hero-rounded-img shadow-sm">
|
class="img-fluid rounded-img shadow fade-left">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
<div class="container my-5 px-lg-10">
|
<div class="container my-5">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -1,23 +1,43 @@
|
|||||||
<link rel="icon" href="/img/favicon.ico" sizes="any">
|
|
||||||
<link rel="apple-touch-icon" href="/img/apple-touch-icon.png">
|
|
||||||
<link rel="manifest" href="/site.webmanifest">
|
|
||||||
|
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
|
||||||
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/main.css" "enableSourceMap" true }}
|
|
||||||
{{ $style := resources.Get "scss/main.scss" | css.Sass $opts | resources.Minify | resources.Fingerprint }}
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
|
||||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
|
|
||||||
|
|
||||||
<meta property="og:type" content="website">
|
<link rel="icon" href="{{ "img/favicon.ico" | relURL }}" sizes="any">
|
||||||
|
<link rel="apple-touch-icon" href="{{ "img/apple-touch-icon.png" | relURL }}">
|
||||||
|
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
|
||||||
|
|
||||||
|
<title>
|
||||||
|
{{- if .IsHome -}}
|
||||||
|
{{ .Site.Title }} | {{ .Site.Params.description }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ .Title }} | {{ .Site.Title }}
|
||||||
|
{{- end -}}
|
||||||
|
</title>
|
||||||
|
|
||||||
|
{{- $description := .Description | default .Summary | default .Site.Params.description -}}
|
||||||
|
<meta name="description" content="{{ $description }}">
|
||||||
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
|
||||||
|
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/main.css" "enableSourceMap" true }}
|
||||||
|
{{ with resources.Get "scss/main.scss" | css.Sass $opts | resources.Minify | resources.Fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}">
|
||||||
|
{{ end }}
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
||||||
|
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
|
||||||
|
|
||||||
|
{{ with resources.Get "js/main.js" | resources.Minify | resources.Fingerprint }}
|
||||||
|
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" defer></script>
|
||||||
|
{{ end }}
|
||||||
|
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
|
||||||
|
|
||||||
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
<meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}">
|
<meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}">
|
||||||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
<meta property="og:description" content="{{ $description }}">
|
||||||
<meta property="og:image" content="{{ .Site.Params.seo.og_image | absURL }}">
|
<meta property="og:image" content="{{ .Params.image | default .Site.Params.og_image | absURL }}">
|
||||||
|
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||||
|
|
||||||
<meta property="twitter:card" content="summary_large_image">
|
<meta property="twitter:card" content="summary_large_image">
|
||||||
<meta property="twitter:url" content="{{ .Permalink }}">
|
<meta property="twitter:url" content="{{ .Permalink }}">
|
||||||
<meta property="twitter:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}">
|
<meta property="twitter:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}">
|
||||||
<meta property="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
<meta property="twitter:description" content="{{ $description }}">
|
||||||
<meta property="twitter:image" content="{{ .Site.Params.seo.og_image | absURL }}">
|
<meta property="twitter:image" content="{{ .Params.image | default .Site.Params.og_image | absURL }}">
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<header>
|
<header>
|
||||||
<div class="top-bar py-2">
|
<div class="top-bar py-2">
|
||||||
<div class="container d-flex justify-content-between align-items-center px-lg-5">
|
<div class="container d-flex justify-content-between align-items-center">
|
||||||
<nav class="contact-info" aria-label="Contactinformatie">
|
<nav class="contact-info" aria-label="Contactinformatie">
|
||||||
{{ if .Site.Params.telefoon }}
|
{{ if .Site.Params.telefoon }}
|
||||||
<a href="tel:{{ .Site.Params.telefoon | urlize }}" class="me-lg-5 text-white text-decoration-none" aria-label="Bel ons op {{ .Site.Params.telefoon }}">
|
<a href="tel:{{ .Site.Params.telefoon | urlize }}" class="me-lg-5 text-white text-decoration-none" aria-label="Bel ons op {{ .Site.Params.telefoon }}">
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<section class="hero-section py-5 my-lg-5">
|
<section class="hero-section py-5 my-lg-5">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row align-items-end mx-lg-5 px-lg-4">
|
<div class="row align-items-end">
|
||||||
<div class="col-lg-7">
|
<div class="col-lg-7">
|
||||||
<h1 class="display-3 mb-4 mb-lg-5">{{ .Params.hero.title | markdownify }}</h1>
|
<h1 class="display-3 mb-4 mb-lg-5">{{ .Params.hero.title | markdownify }}</h1>
|
||||||
|
|
||||||
<div class="d-none d-lg-block">
|
<div class="d-none d-lg-block">
|
||||||
<a href="{{ .Params.hero.cta_link | relURL }}" class="btn btn-cta">
|
<a href="{{ .Params.hero.cta_link | relURL }}" class="btn btn-cta" data-aos="fade-up" data-aos-delay="300">
|
||||||
{{ .Params.hero.cta_text }}
|
{{ .Params.hero.cta_text }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="d-lg-none mt-4">
|
<div class="d-lg-none mt-4">
|
||||||
<a href="{{ .Params.hero.cta_link | relURL }}" class="btn btn-cta">
|
<a href="{{ .Params.hero.cta_link | relURL }}" class="btn btn-cta fade-left">
|
||||||
{{ .Params.hero.cta_text }}
|
{{ .Params.hero.cta_text }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<div class="row mt-4 mt-lg-5">
|
<div class="row mt-4 mt-lg-5">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
{{ with .Params.hero.image }}
|
{{ with .Params.hero.image }}
|
||||||
<div class="hero-image-dynamic"
|
<div class="hero-image-dynamic" data-aos="fade-in" data-aos-delay="100"
|
||||||
style="background-image: url('{{ . | relURL }}');">
|
style="background-image: url('{{ . | relURL }}');">
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
<section class="info-section py-5 my-lg-5">
|
<section class="info-section py-5 my-lg-5">
|
||||||
<div class="container overflow-hidden">
|
<div class="container overflow-hidden">
|
||||||
<div class="mb-5">
|
<div class="row">
|
||||||
|
<div class="mb-4 col-8">
|
||||||
<h6 class="text-primary">Doe een vooronderzoek</h6>
|
<h6 class="text-primary">Doe een vooronderzoek</h6>
|
||||||
<h2 class="display-5 fw-bold">Toets uw kavel</h2>
|
<h2 class="display-5 fw-bold">Toets uw kavel</h2>
|
||||||
|
<p>U kunt geheel vrijblijvend een vooronderzoek doen naar uw mogelijkheden. Voer uw (plaatsing-)adres in en krijg direct resultaat en een uitgebreid verslag ontvangt u binnen 5 minuten per email.</p>
|
||||||
|
<p>Liever <a href="/contact">persoonlijk advies?</a> Dat kunt uiteraard ook.</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row flex-nowrap g-5" style="min-height: 650px;">
|
|
||||||
|
<div class="row flex-nowrap g-5 h-100" style="min-height: 600px;" data-aos="fade-in" data-aos-delay="100">
|
||||||
|
|
||||||
<div id="col-map" class="col-12" style="transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0;">
|
<div id="col-map" class="col-12 mb-3" style="transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0;">
|
||||||
<div class="panel overflow-hidden" style="height: 650px; position: relative;">
|
<div class="panel overflow-hidden shadow" style="height: 600px; position: relative;border:2px solid #fff;">
|
||||||
<div id="panel" class="bg-white p-4" style="position: absolute; left: 20px; top: 20px; z-index: 1000; width: 350px; border-radius: 20px; max-height: 90%;">
|
<div id="panel" class="bg-white p-4" style="position: absolute; left: 20px; top: 20px; z-index: 1000; width: 300px; border-radius: 20px; max-height: 90%;">
|
||||||
<div class="mb-3">
|
<div class="">
|
||||||
<p class="text-dark">Voer uw (plaatsing-)adres in.</p>
|
<input type="text" id="pc-input" class="form-control mb-2 rounded-pill" placeholder="Postcode">
|
||||||
<input type="text" id="pc-input" class="form-control mb-2 rounded-pill" placeholder="Postcode (3771VH)">
|
|
||||||
<input type="number" id="hn-input" class="form-control mb-2 rounded-pill" placeholder="Huisnummer">
|
<input type="number" id="hn-input" class="form-control mb-2 rounded-pill" placeholder="Huisnummer">
|
||||||
<button id="btnSearch" class="btn btn-cta">Analyseer Kavel</button>
|
<button id="btnSearch" class="btn btn-cta">Analyseer Kavel</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -20,43 +24,47 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="col-results" class="col-md-5 " style="display: none; opacity: 0; transform: translateX(50px); transition: all 0.6s ease-out; flex-shrink: 0;">
|
<div id="col-results" class="col-md-5" style="display: none; opacity: 0; transform: translateX(50px); transition: all 0.6s ease-out; flex-shrink: 0;">
|
||||||
<div class="bg-light p-4 panel p-5">
|
<div class="bg-light panel px-5 py-4 pt-5">
|
||||||
<h3 class="fw-bold mb-4">Resultaten</h3>
|
|
||||||
<div class="d-flex justify-content-between mb-2"><span>Kavelnummer:</span><strong id="res-kavelnummer"></strong></div>
|
<div class="d-flex justify-content-between mb-2"><span>Kavelnummer:</span><strong id="res-kavelnummer"></strong></div>
|
||||||
<div class="d-flex justify-content-between mb-2"><span>Bouwjaar hoofdgebouw:</span><strong id="res-bouwjaar"></strong></div>
|
<div class="d-flex justify-content-between mb-2"><span>Bouwjaar hoofdgebouw:</span><strong id="res-bouwjaar"></strong></div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="d-flex justify-content-between mb-2"><span>Formaat kavel:</span><strong id="res-kavelformaat"></strong></div>
|
<div class="d-flex justify-content-between mb-2"><span>Formaat kavel:</span><strong id="res-kavelformaat"></strong></div>
|
||||||
<div class="d-flex justify-content-between mb-2"><span>Formaat kavel:</span><strong id="res-kavelvrij"></strong></div>
|
<div class="d-flex justify-content-between mb-2"><span>Vrije meters:</span><strong id="res-kavelvrij"></strong></div>
|
||||||
<div class="d-flex justify-content-between mb-2"><span class="text-primary h5">Max. Mantelzorgwoning</span><strong class="text-primary h5" style="filter: blur(7px);" id="res-max"></strong></div>
|
<div class="d-flex justify-content-between mb-2"><span class="text-primary h5">Max. Mantelzorgwoning</span><strong class="text-primary h5" style="filter: blur(7px);" id="res-max"></strong></div>
|
||||||
<hr>
|
</div>
|
||||||
|
<div class="p-4">
|
||||||
<p>Ontvang een volledig rapport over alle mogelijkheden binnen 5 minuten in uw email.</p>
|
<p>Ontvang een volledig rapport over alle mogelijkheden binnen 5 minuten in uw email.</p>
|
||||||
<form id="lead-form">
|
<form id="lead-form">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row g-2">
|
||||||
<div class="mb-2 col-md-4">
|
<div class="mb-2 col-md-4">
|
||||||
<select class="form-select form-select rounded-pill" id="f-aanhef" required>
|
<select class="form-select form-control form-select rounded-pill" id="f-aanhef" required>
|
||||||
<option value="" selected disabled>Aanhef</option>
|
<option value="" selected disabled>Aanhef</option>
|
||||||
<option value="Dhr.">Dhr.</option>
|
<option value="Dhr.">Dhr.</option>
|
||||||
<option value="Mevr.">Mevr.</option>
|
<option value="Mevr.">Mevr.</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-2 col-md-8">
|
<div class="mb-2 col-md-8">
|
||||||
<input type="text" id="f-achternaam" class="form-control form-control rounded-pill" placeholder="Achternaam" required>
|
<input type="text" id="f-achternaam" class="form-control rounded-pill" placeholder="Achternaam" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<input type="email" id="f-email" class="form-control form-control rounded-pill" placeholder="E-mailadres" required>
|
<input type="email" id="f-email" class="form-control rounded-pill" placeholder="E-mailadres" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<input type="tel" id="f-telefoon" class="form-control form-control rounded-pill" placeholder="Telefoonnummer" required>
|
<input type="tel" id="f-telefoon" class="form-control rounded-pill" placeholder="Telefoonnummer" required>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-cta">Rapport Aanvragen</button>
|
<div class="col-12">
|
||||||
|
<button type="submit" class="btn btn-cta">Rapport Aanvragen</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
<div id="form-success" class="mt-3 text-center d-none">
|
<div id="form-success" class="mt-3 text-center d-none">
|
||||||
<p class="fw-bold mb-0">✓ Je rapport is onderweg!</p>
|
<p class="fw-bold mb-0">✓ Je rapport is onderweg!</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -68,14 +76,23 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
// 1. Bronnen initialiseren
|
|
||||||
const perceelSource = new ol.source.Vector();
|
const perceelSource = new ol.source.Vector();
|
||||||
const gebouwSource = new ol.source.Vector();
|
const gebouwSource = new ol.source.Vector();
|
||||||
|
|
||||||
const map = new ol.Map({
|
const map = new ol.Map({
|
||||||
target: 'map',
|
target: 'map',
|
||||||
|
controls: [
|
||||||
|
new ol.control.Zoom({
|
||||||
|
className: 'custom-zoom'
|
||||||
|
}),
|
||||||
|
new ol.control.Attribution({
|
||||||
|
collapsible: true
|
||||||
|
})
|
||||||
|
],
|
||||||
layers: [
|
layers: [
|
||||||
new ol.layer.Tile({ source: new ol.source.OSM() }),
|
new ol.layer.Tile({
|
||||||
|
source: new ol.source.OSM()
|
||||||
|
}),
|
||||||
new ol.layer.Vector({
|
new ol.layer.Vector({
|
||||||
source: perceelSource,
|
source: perceelSource,
|
||||||
style: new ol.style.Style({
|
style: new ol.style.Style({
|
||||||
@@ -91,10 +108,12 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
view: new ol.View({ center: ol.proj.fromLonLat([5.594, 52.285]), zoom: 12 })
|
view: new ol.View({
|
||||||
|
center: ol.proj.fromLonLat([5.5846253, 52.2690304]),
|
||||||
|
zoom: 11
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
// 2. Click Handler
|
|
||||||
document.getElementById('btnSearch').addEventListener('click', async function() {
|
document.getElementById('btnSearch').addEventListener('click', async function() {
|
||||||
const pc = document.getElementById('pc-input').value.replace(/\s+/g, "").toUpperCase();
|
const pc = document.getElementById('pc-input').value.replace(/\s+/g, "").toUpperCase();
|
||||||
const hn = document.getElementById('hn-input').value;
|
const hn = document.getElementById('hn-input').value;
|
||||||
@@ -108,7 +127,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
if (data.results && data.results.length > 0) {
|
if (data.results && data.results.length > 0) {
|
||||||
const r = data.results[0];
|
const r = data.results[0];
|
||||||
|
|
||||||
// A. Data invullen
|
|
||||||
// document.getElementById('res-adres').innerText = r.adres || '—';
|
// document.getElementById('res-adres').innerText = r.adres || '—';
|
||||||
document.getElementById('res-bouwjaar').innerText = r.hoofdgebouw_bouwjaar || '—';
|
document.getElementById('res-bouwjaar').innerText = r.hoofdgebouw_bouwjaar || '—';
|
||||||
document.getElementById('res-max').innerText = (r.max_mantelzorgwoning_m2 || 0) + ' m²';
|
document.getElementById('res-max').innerText = (r.max_mantelzorgwoning_m2 || 0) + ' m²';
|
||||||
@@ -116,25 +134,20 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
document.getElementById("res-kavelformaat").innerText = (r.kavel_m2 || 0) + ' m²';
|
document.getElementById("res-kavelformaat").innerText = (r.kavel_m2 || 0) + ' m²';
|
||||||
document.getElementById("res-kavelvrij").innerText = (r.vrije_m2 || 0) + ' m²';
|
document.getElementById("res-kavelvrij").innerText = (r.vrije_m2 || 0) + ' m²';
|
||||||
|
|
||||||
// B. Animatie Logica
|
|
||||||
const colMap = document.getElementById('col-map');
|
const colMap = document.getElementById('col-map');
|
||||||
const colRes = document.getElementById('col-results');
|
const colRes = document.getElementById('col-results');
|
||||||
|
|
||||||
// Stap 1: Krimp de kaart-kolom
|
|
||||||
colMap.classList.remove('col-12');
|
colMap.classList.remove('col-12');
|
||||||
colMap.classList.add('col-md-7');
|
colMap.classList.add('col-md-7');
|
||||||
|
|
||||||
// Stap 2: Toon zijpaneel met fade-in
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
colRes.style.display = "block";
|
colRes.style.display = "block";
|
||||||
// Kleine delay voor de browser om display:block te verwerken voor de transitie
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
colRes.style.opacity = "1";
|
colRes.style.opacity = "1";
|
||||||
colRes.style.transform = "translateX(0)";
|
colRes.style.transform = "translateX(0)";
|
||||||
}, 50);
|
}, 50);
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
// C. Kaart tekenen
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
map.updateSize();
|
map.updateSize();
|
||||||
perceelSource.clear();
|
perceelSource.clear();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="container px-lg-5">
|
<div class="container px-lg-5">
|
||||||
<div class="row g-3 g-lg-4 justify-content-center">
|
<div class="row g-3 g-lg-4 justify-content-center">
|
||||||
{{ range .Params.usps }}
|
{{ range .Params.usps }}
|
||||||
<div class="col-auto mx-auto">
|
<div class="col-auto mx-auto fade-up">
|
||||||
<div class="usp-item d-flex align-items-center">
|
<div class="usp-item d-flex align-items-center">
|
||||||
<svg class="me-2" width="26" height="22" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg class="me-2" width="26" height="22" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M1.5 7.5L6.5 12.5L16.5 1.5" stroke="#B95913" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M1.5 7.5L6.5 12.5L16.5 1.5" stroke="#B95913" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
|||||||
2
static/robots.txt
Normal file
2
static/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
||||||
Reference in New Issue
Block a user