feat: add impressum.php template with legal document fetching and layout implementation
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/*
|
||||
Templates render the content of your pages.
|
||||
|
||||
They contain the markup together with some control structures
|
||||
like loops or if-statements. The `$page` variable always
|
||||
refers to the currently active page.
|
||||
|
||||
To fetch the content from each field we call the field name as a
|
||||
method on the `$page` object, e.g. `$page->title()`.
|
||||
|
||||
This default template must not be removed. It is used whenever Kirby
|
||||
cannot find a template with the name of the content file.
|
||||
|
||||
Snippets like the header and footer contain markup used in
|
||||
multiple templates. They also help to keep templates clean.
|
||||
|
||||
More about templates: https://getkirby.com/docs/guide/templates/basics
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<body class="font-sans antialiased bg-sf_grau-400 text-gray-900">
|
||||
<?php snippet('navbar') ?>
|
||||
|
||||
<section class="bg-sf_grau-50 py-24">
|
||||
<div class="lg:px-8 max-w-7xl mx-auto px-4 sm:px-6">
|
||||
<h1 class="text-3xl">Impressum</h1>
|
||||
</div>
|
||||
<div class="grid grid-cols-1 lg:grid lg:grid-cols-2 lg:px-8 max-w-7xl mx-auto px-4 sm:px-6">
|
||||
<div id="lc-text"></div>
|
||||
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
||||
<img src="/assets/img/img_siegel_v1_light.png" class="md:pt-12 md:px-10"/>
|
||||
</div>
|
||||
<script>
|
||||
fetch(`https://app.cockpit.legal/api/cockpit/resources/legaldocumentshare/8e1165cd6153a76beff18eb8bcda34b0/document/render/html?language=de`)
|
||||
.then((result) => { return result.text(); })
|
||||
.then((content) => {
|
||||
document.getElementById("lc-text").innerHTML = content
|
||||
});
|
||||
</script>
|
||||
<noscript>
|
||||
Sie können diesen Rechtstext nicht sehen, weil Sie JavaScript deaktiviert haben.
|
||||
Folgen Sie bitte diesem<a target="_blank" href="https://app.cockpit.legal/api/cockpit/resources/legaldocumentshare/8e1165cd6153a76beff18eb8bcda34b0/document/render/html?language=de">Link</a>,
|
||||
um den Rechtstext anzuzeigen.
|
||||
</noscript>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?= js('assets/js/navbar.js') ?>
|
||||
</body>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
Reference in New Issue
Block a user