Skip to content

Commit

Permalink
feat: implement templates overview (#14)
Browse files Browse the repository at this point in the history
* feat: implement templates overview

* feat: implement templates preview images

* Update src/pages/homepage.twig

* Update src/pages/homepage.twig

* Update src/pages/homepage.twig

---------

Co-authored-by: Deborah Köpfer <[email protected]>
  • Loading branch information
paulovareiro29 and koepferd authored Sep 17, 2024
1 parent 6d3c542 commit 64938b0
Show file tree
Hide file tree
Showing 13 changed files with 269 additions and 202 deletions.
Binary file not shown.
Binary file added public/assets/previews/enquiry-all-states.webp
Binary file not shown.
Binary file added public/assets/previews/enquiry-dark.webp
Binary file not shown.
Binary file not shown.
Binary file added public/assets/previews/enquiry-validated.webp
Binary file not shown.
Binary file added public/assets/previews/enquiry.webp
Binary file not shown.
Binary file added public/assets/previews/homepage-dark.webp
Binary file not shown.
Binary file added public/assets/previews/homepage.webp
Binary file not shown.
191 changes: 191 additions & 0 deletions src/pages/homepage.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{% extends 'layouts::base.twig' %}
{% set theme = 'default' %}

{% block content %}
<section class='row pb-3 pb-lg-5'>
<div class='col-12'>
{%
include 'partials::base/b_hero.twig' with {
src: 'https://picsum.photos/960/540',
type: 'background'
}
%}

<div class='row'>
<div class='col-12 col-lg-9 mb-4 mb-xl-5'>
<div class='text-bg-primary p-3 pb-5'>
<div class='p-3'>
<h1 class='display-5 mb-4'>
Die beste Grundlage für fundierte Entscheidungen: offene Daten aus Ihrer Region.
</h1>
<form class='form-inline d-flex gap-2' action='overview'>
<input
class='form-control fs-5 mr-sm-2'
type='search'
placeholder='Datensätze suchen'
aria-label='Datensätze suchen'
>
<button class='btn btn-outline-primary fs-5' type='submit' aria-label='Suchen'>
<i class='bi bi-search'></i>
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</section>

<section class='row pb-5'>
<div class='col-12'>
<div class='p-3 bg-body'>
<h2 class='p-3 m-0'>
Hier finden alle Kölner – ob Bürger, Verwaltung, Unternehmen oder Wissenschaft – offene Datensätze, um
gemeinsam einen Mehrwert für alle zu schaffen.
</h2>
</div>
</div>
</section>

<section class='row pt-4 pb-5'>
{%
include 'partials::content-layout/cl_section-header.twig' with {
title: 'Beliebte Datensätze',
link: {
href: './overview',
text: 'Alle Datensätze',
}
}
%}

<div class='col-6 mb-4'>
{%
include 'partials::base/b_card.twig' with {
'thumbnail': {
src: 'https://picsum.photos/960/540',
},
'direction': 'horizontal',
'href': './dataset',
'title': 'Baumkataster Köln 2020',
'subtitle': 'Herausgeber: Stadt Köln',
'description': 'Lorem ipsum dolor sit amet, consetetur sadipscin invidunt ut labore et erat, sed diam voluptua...',
}
%}
</div>
<div class='col-6 mb-4'>
{%
include 'partials::base/b_card.twig' with {
'thumbnail': {
src: 'https://picsum.photos/960/540',
},
'direction': 'horizontal',
'href': './dataset',
'title': 'Baumkataster Köln 2020',
'subtitle': 'Herausgeber: Stadt Köln',
'description': 'Lorem ipsum dolor sit amet, consetetur sadipscin invidunt ut labore et erat, sed diam voluptua...',
}
%}
</div>
<div class='col-6 mb-4'>
{%
include 'partials::base/b_card.twig' with {
'thumbnail': {
src: 'https://picsum.photos/960/540',
},
'direction': 'horizontal',
'href': './dataset',
'title': 'Baumkataster Köln 2020',
'subtitle': 'Herausgeber: Stadt Köln',
'description': 'Lorem ipsum dolor sit amet, consetetur sadipscin invidunt ut labore et erat, sed diam voluptua...',
}
%}
</div>
<div class='col-6 mb-4'>
{%
include 'partials::base/b_card.twig' with {
'thumbnail': {
src: 'https://picsum.photos/960/540',
},
'direction': 'horizontal',
'href': './dataset',
'title': 'Baumkataster Köln 2020',
'subtitle': 'Herausgeber: Stadt Köln',
'description': 'Lorem ipsum dolor sit amet, consetetur sadipscin invidunt ut labore et erat, sed diam voluptua...',
}
%}
</div>
<div class='col-6'>
{%
include 'partials::base/b_card.twig' with {
'thumbnail': {
src: 'https://picsum.photos/960/540',
},
'direction': 'horizontal',
'href': './dataset',
'title': 'Baumkataster Köln 2020',
'subtitle': 'Herausgeber: Stadt Köln',
'description': 'Lorem ipsum dolor sit amet, consetetur sadipscin invidunt ut labore et erat, sed diam voluptua...',
}
%}
</div>
<div class='col-6'>
{%
include 'partials::base/b_card.twig' with {
'thumbnail': {
src: 'https://picsum.photos/960/540',
},
'direction': 'horizontal',
'href': './dataset',
'title': 'Baumkataster Köln 2020',
'subtitle': 'Herausgeber: Stadt Köln',
'description': 'Lorem ipsum dolor sit amet, consetetur sadipscin invidunt ut labore et erat, sed diam voluptua...',
}
%}
</div>
</section>

<section class='row py-5 border-gray border-top border-opacity-25'>
{%
include 'partials::content-layout/cl_section-header.twig' with {
title: 'News',
link: {
href: '#',
text: 'Alle News anzeigen',
}
}
%}

<div class='col-12'>
{% include 'partials::base/b_highlight-teaser.twig' %}
</div>
</section>

<section class='row py-5 border-gray border-top border-opacity-25'>
{%
include 'partials::content-layout/cl_section-header.twig' with {
title: 'Beliebte Kategorien'
}
%}

<div class='col-12'>
{% include 'partials::content-layout/cl_tile-showcase.twig' %}
</div>
</section>

<section class='row py-5 border-gray border-top border-bottom border-opacity-25'>
{%
include 'partials::content-layout/cl_section-header.twig' with {
title: 'Daten über Schnittstelle nutzen',
link: {
href: '#',
text: 'Artikel anzeigen',
}
}
%}

<p class='h2'>
Erfahren Sie hier wie Sie mit der DKAN API unsere offenen Datensätze für Ihre eigenen Projekte anschauen,
herunterladen und programmsteuern können.
</p>
</section>
{% endblock %}
Loading

0 comments on commit 64938b0

Please sign in to comment.