Maintenance Ready
This template shows how to build a simple maintenance view using Duet’s components. The same template can be used for success views as well by changing the illustration.
Hint: Press F
on your keyboard to view both templates and components in fullscreen and ESC
to exit the fullscreen mode. You can also open the template in a new browser window.
<!DOCTYPE html>
<html class="duet-bg-gradient duet-sticky-footer" lang="fi">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>LähiTapiola</title>
<link rel="stylesheet" href="https://cdn.duetds.com/api/fonts/3.0.51/lib/localtapiola.css" integrity="sha384-5JYmtSD7nykpUvSmTW1CHMoBDkBZUpUmG0vuh+NUVtZag3F75Kr7+/JU3J7JV6Wq" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.duetds.com/api/css/4.0.47/lib/duet.min.css" integrity="sha384-UoMJnpXiN8f7fKVnTzfKfyi7LzQlApQ+WTS9O3PXlYr6CO9yzou4glfsHV747f3v" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.duetds.com/api/tokens/4.0.61/lib/tokens.custom-properties.css" integrity="sha384-AexjbYNj18dJLZR54wNVU44b/akdDc+tpbLIWhAnzjMAbwFSli2DHpSP+7NCK+Xw" crossorigin="anonymous" />
<script type="module" src="https://cdn.duetds.com/api/components/8.7.3/lib/duet/duet.esm.js" integrity="sha384-W+bAckjmwa01nRBD0ol/f7xnJTQ14uXM899yjVthSe54gUJ0LTsVM0kaxXZwj8Yu" crossorigin="anonymous"></script>
<script nomodule src="https://cdn.duetds.com/api/components/8.7.3/lib/duet/duet.js" integrity="sha384-0aVVr72EVrSf7CulIIfKWnbnvT48863P6RDFRlazIsrXeBRJXtDvASC3rzZsv5Kj" crossorigin="anonymous"></script>
</head>
<body>
<duet-layout center middle>
<div slot="main" class="duet-text-center">
<img src="https://cdn.duetds.com/api/assets/illustrations/placeholder-dark.svg"
alt="Kuvitus" style="max-width:358px;width:70%;height:auto;"/>
<duet-spacer size="large"></duet-spacer>
<duet-heading level="h1">Palvelussamme on juuri nyt huoltokatko</duet-heading>
<duet-paragraph variation="intro">
Kehitämme palveluita, pahoittelemme katkosta aiheutuvaa haittaa.
Olet tervetullut palveluun katkon päätyttyä.
</duet-paragraph>
<duet-spacer size="x-small"></duet-spacer>
<duet-button fixed variation="primary" url="https://www.lahitapiola.fi/henkilo">
Siirry etusivulle
</duet-button>
</div>
</duet-layout>
<duet-footer variation="simple"></duet-footer>
<script>
// Save references to components we want to adjust below
var footer = document.querySelector("duet-footer")
// Set the help menu items in footer
footer.menu = [
{ label: 'Turvallisuus ja käyttöehdot', href: '#' },
{ label: 'Evästeet', href: '#' },
{ label: 'Henkilötietojen käsittely', href: '#' },
]
</script>
</body>
</html>
Integration
To install this template’s dependencies into your project, run:
npm install @duetds/components
npm install @duetds/css
npm install @duetds/fonts
For further guidelines, please see each package’s documentation.
Tutorials
Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:
Tutorials
Building Layouts
TutorialsUsing CLI Tools
TutorialsCreating Custom Patterns
TutorialsServer Side Rendering
TutorialsSharing Prototypes
TutorialsUsage With Markdown
Troubleshooting
If you experience any issues while using a template, please head over to the Support page for more guidelines and help.