Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ITPDP2019
Gain.fam
web-server
Commits
bb204f88
Commit
bb204f88
authored
May 29, 2019
by
Magnus Holm Brunbjerg
Browse files
Login page
parent
6dd65c55
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/public/style/login.css
0 → 100644
View file @
bb204f88
.content
{
height
:
100vh
;
display
:
flex
;
justify-content
:
center
;
background-color
:
var
(
--main-color
)
}
.login-area
{
width
:
275px
;
margin
:
auto
;
text-align
:
center
;
}
.login-form
{
display
:
flex
;
flex-direction
:
column
;
margin-top
:
25px
;
}
.form-input
{
height
:
50px
;
margin
:
5px
;
padding
:
5px
;
font-size
:
20px
;
color
:
#000000
;
text-align
:
center
;
border
:
none
;
border-radius
:
10px
;
background-color
:
#ffffff
;
}
.form-submit
{
width
:
175px
;
align-self
:
center
;
}
.form-submit
:hover
{
background-color
:
var
(
--secondary-color
);
color
:
#ffffff
}
\ No newline at end of file
src/views/layouts/main.hbs
View file @
bb204f88
...
...
@@ -2,14 +2,19 @@
<html>
<head>
<meta
charset=
"UTF-8"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"/style/main.css"
>
{{#
unless
meta
.
noNav
}}
<link
rel=
"stylesheet"
href=
"/style/nav.css"
>
{{/
unless
}}
{{! Only generate nav bar where needed}}
{{#
each
meta
.
style
}}
<link
rel=
"stylesheet"
href=
"/style/
{{
this
}}
.css"
>
{{/
each
}}
{{! Allow for extra stylesheets}}
<title>
{{
meta
.
title
}}
</title>
</head>
<body>
<div
class=
"main"
>
<div
class=
"nav"
>
{{>
nav
}}
</div>
{{#
unless
meta
.
noNav
}}
<div
class=
"nav"
>
{{>
nav
}}
</div>
{{/
unless
}}
<div
class=
"content"
>
{{{
body
}}}
</div>
...
...
src/views/login.hbs
0 → 100644
View file @
bb204f88
<div
class=
"login-area"
>
<img
src=
"/images/logo/logo.png"
alt=
"Logo"
width=
"175px"
>
<form
method=
"POST"
action=
"/login"
class=
"login-form"
>
<input
type=
"text"
name=
"username"
id=
"username"
placeholder=
"Brugernavn"
class=
"form-input"
>
<input
type=
"password"
name=
"password"
id=
"password"
placeholder=
"Kodeord"
class=
"form-input"
>
<button
type=
"submit"
class=
"form-input form-submit"
>
Log ind
</button>
</form>
</div>
\ No newline at end of file
src/views/partials/nav.hbs
View file @
bb204f88
<nav
class=
"nav-content"
>
<a
href=
"/"
class=
"nav-item"
><img
src=
"/images/logo/logo.png"
alt=
"Logo"
width=
"1
00
px"
></a>
<a
href=
"/"
class=
"nav-item"
><img
src=
"/images/logo/logo.png"
alt=
"Logo"
width=
"1
95
px"
></a>
<a
href=
"/"
class=
"nav-item"
>
Forside
</a>
<a
href=
"/experiments"
class=
"nav-item"
>
Eksperimenter
</a>
<a
href=
"/compare"
class=
"nav-item"
>
Sammenlign
</a>
<a
href=
"/logout"
class=
"nav-item"
>
Log ud
</a>
</nav>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment