-
Notifications
You must be signed in to change notification settings - Fork 0
/
Header and Footer
46 lines (40 loc) · 1.33 KB
/
Header and Footer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Header file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Header and Footer</title>
<link rel="stylesheet" type="text/css" href="app.css">
<script src="/app.js"></script>
</head>
<body>
<h1>
In header we can declare script and many different things that
will then be used in each template we create and include it.
</h1>
<h2>
Simple yet satisfying.
</h2>
=======================================================================================
Footer
// optional tag included
<link
rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/pure-min.css"
integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47"
crossorigin="anonymous"
>
</body>
</html>
========================================================================================
Template
<% include partials/header %>
<form class="pure-form">
<fieldset>
<legend><strong>Sign Up</strong></legend>
<input type="email" placeholder="Email" required>
<input type="password" placeholder="Password" required>
<button type="submit" class="pure-button pure-button-primary">Sign in</button>
</fieldset>
</form>
<% include partials/footer %>