Video 52: Styling the Application: Part II
This commit is contained in:
parent
a627e00364
commit
6116711a55
@ -4,6 +4,14 @@ body {
|
||||
max-width: 650px;
|
||||
margin: 0 auto;
|
||||
padding: 0 16px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
footer {
|
||||
@ -28,3 +36,7 @@ header a {
|
||||
margin-right: 16px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.portrait {
|
||||
width: 250px;
|
||||
}
|
||||
|
BIN
web-server/public/img/weather.png
Normal file
BIN
web-server/public/img/weather.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
@ -3,13 +3,18 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>404</title>
|
||||
<link rel="icon" href="/img/weather.png">
|
||||
<link rel="stylesheet" href="/css/styles.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="main-content">
|
||||
{{>header}}
|
||||
<p>{{errorMessage}}</p>
|
||||
{{>footer}}
|
||||
</div>
|
||||
|
||||
{{>footer}}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
@ -3,13 +3,18 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>About</title>
|
||||
<link rel="icon" href="/img/weather.png">
|
||||
<link rel="stylesheet" href="/css/styles.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="main-content">
|
||||
{{>header}}
|
||||
<img src="/img/me.jpg">
|
||||
{{>footer}}
|
||||
<img class="portrait" src="/img/me.jpg">
|
||||
</div>
|
||||
|
||||
{{>footer}}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
@ -3,13 +3,18 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Help</title>
|
||||
<link rel="icon" href="/img/weather.png">
|
||||
<link rel="stylesheet" href="/css/styles.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="main-content">
|
||||
{{>header}}
|
||||
<p>{{helpText}}</p>
|
||||
{{>footer}}
|
||||
</div>
|
||||
|
||||
{{>footer}}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
@ -3,13 +3,19 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Weather</title>
|
||||
<link rel="icon" href="/img/weather.png">
|
||||
<link rel="stylesheet" href="/css/styles.css">
|
||||
<script src="/js/app.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="main-content">
|
||||
{{>header}}
|
||||
{{>footer}}
|
||||
<p>Use this site to get your weather!</p>
|
||||
</div>
|
||||
|
||||
{{>footer}}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user