Add default theme and apply to pages
This commit is contained in:
		
							
								
								
									
										75
									
								
								static/css/style.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								static/css/style.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,75 @@
 | 
			
		||||
body {
 | 
			
		||||
    font-family: Arial, sans-serif;
 | 
			
		||||
    background-color: lightblue;
 | 
			
		||||
    color: #333;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.container {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    width: 80%;
 | 
			
		||||
    padding: 20px;
 | 
			
		||||
    margin: 0 auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.footer-container {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    height: 80px;
 | 
			
		||||
    background-color: lightblue;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
footer {
 | 
			
		||||
    color: #0077be;
 | 
			
		||||
    font-size: 14px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
form label {
 | 
			
		||||
    display: block;
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
    margin-bottom: 5px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
form input[type="text"],
 | 
			
		||||
form input[type="password"] {
 | 
			
		||||
    padding: 10px;
 | 
			
		||||
    font-size: 16px;
 | 
			
		||||
    border-radius: 5px;
 | 
			
		||||
    border: none;
 | 
			
		||||
    margin-bottom: 10px;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
form input[type="submit"] {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    padding: 10px 20px;
 | 
			
		||||
    background-color: #0077be;
 | 
			
		||||
    color: #fff;
 | 
			
		||||
    border-radius: 5px;
 | 
			
		||||
    text-decoration: none;
 | 
			
		||||
    border: none;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
form input[type="submit"]:hover {
 | 
			
		||||
    background-color: #005fa3;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
h1, h2, h3, h4, h5, h6 {
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
    color: #333;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
a {
 | 
			
		||||
    color: #0077be;
 | 
			
		||||
    text-decoration: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
a:hover {
 | 
			
		||||
    text-decoration: underline;
 | 
			
		||||
}
 | 
			
		||||
@@ -3,11 +3,14 @@
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <title>SiteName - {{ template "pageTitle" }}</title>
 | 
			
		||||
    <link rel="stylesheet" href="/static/css/style.css">
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
{{ template "content" . }}
 | 
			
		||||
</body>
 | 
			
		||||
<div class="footer-container">
 | 
			
		||||
    <footer>
 | 
			
		||||
    <p>SiteName - Powered by Go!</p>
 | 
			
		||||
        <p>SiteName - Powered by GoWeb!</p>
 | 
			
		||||
    </footer>
 | 
			
		||||
</div>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -1,6 +1,8 @@
 | 
			
		||||
{{ define "pageTitle" }}Login{{ end }}
 | 
			
		||||
 | 
			
		||||
{{ define "content" }}
 | 
			
		||||
<h1>Login</h1>
 | 
			
		||||
<div class="container">
 | 
			
		||||
    <form action="/login-handle" method="post">
 | 
			
		||||
        <input name="csrf_token" type="hidden" value="{{ .CsrfToken }}">
 | 
			
		||||
 | 
			
		||||
@@ -10,4 +12,5 @@
 | 
			
		||||
        <input id="password" name="password" type="password"><br><br>
 | 
			
		||||
        <input type="submit" value="Submit">
 | 
			
		||||
    </form>
 | 
			
		||||
</div>
 | 
			
		||||
{{ end }}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,8 @@
 | 
			
		||||
{{ define "pageTitle" }}Register{{ end }}
 | 
			
		||||
 | 
			
		||||
{{ define "content" }}
 | 
			
		||||
<h1>Register</h1>
 | 
			
		||||
<div class="container">
 | 
			
		||||
    <form action="/register-handle" method="post">
 | 
			
		||||
        <input name="csrf_token" type="hidden" value="{{ .CsrfToken }}">
 | 
			
		||||
 | 
			
		||||
@@ -10,4 +12,5 @@
 | 
			
		||||
        <input id="password" name="password" type="password"><br><br>
 | 
			
		||||
        <input type="submit" value="Submit">
 | 
			
		||||
    </form>
 | 
			
		||||
</div>
 | 
			
		||||
{{ end }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user