first commit

This commit is contained in:
Henrik Bygren 2022-08-29 14:00:21 +02:00
commit 95469a7bbb
6 changed files with 375 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.DS_Store

307
css/style.css Normal file
View File

@ -0,0 +1,307 @@
@charset "UTF-8";
* {
margin:0;
padding:0;
font-family:Verdana, Geneva, sans-serif;
box-sizing: border-box;
}
@font-face {
font-family: saker;
src: url(SakerSansMedium.ttf);
}
@font-face {
font-family: saker;
src: url(SakerSansBold.ttf);
font-weight: bold;
}
html,body{
font-size: 62.5%;
height:100%;
background-color: #e8e8e8;
}
hr {
width:100%;
border-top: 1px solid #8c8b8b;
margin-bottom:2px;
}
br.clear{
clear:both;
font-size: 0px;
}
p {
font-size: 1.2rem;
margin-bottom: 10px;
margin-top: 5px;
margin-right: 10px;
text-align: justify;
}
textarea {
font-family: inherit;
font-size: 1.2rem;
width: 100%;
border:0;
}
/* Wrapper */
#wrapper {
min-height:100%;
position:relative;
}
/* End wrapper */
/* Header */
header {
width: 100%;
font-size: 1.2rem;
text-align:left;
height: 60px;
background-image: url("../images/bgImg.png");
background-repeat:repeat;
color: white;
position: relative;
}
header h1{
display:inline-block;
font-family: saker, Arial;
letter-spacing: 3px;
font-size: 2.4rem;
margin-top: 1.8rem;
margin-left: 2.5rem;
}
header img{
float:left;
margin-top: 10px;
margin-left: 50px;
}
header input[type="text"],header input[type="password"]{
margin-top: 0.5em;
margin-left: 1.5em;
font-size: 1.1rem;
}
header input[type="submit"]{
margin-top: 0.1em;
border: 0;
background: rgba(0, 0, 0, 0.1);
border-radius: 4px;
color: white;
-webkit-appearance: none;
padding: 2px;
font-size: 1.1rem;
}
input.fontSize{
font-size: 1.2rem;
padding:0;
}
header form{
display:inline;
margin-bottom: 0.7rem;
}
header nav{
position: relative;
display:inline;
margin-left: 2rem;
}
header nav ul {
list-style-type:none;
display:inline;
}
header nav li{
margin-left: 1rem;
display:inline;
}
header a{
display:inline-block;
padding: 2px;
border-radius: 4px;
font-size: 1.2rem;
text-decoration: none;
color: white;
background-color:black;
}
header a:hover, header input[type="submit"]:hover{
background-color: gray;
color: #ffffff;
}
header #loggOutButton{
border: 1px solid white;
position:absolute;
right:8px;
top:8px;
}
/* End header */
/* Main */
main {
width:810px;
margin: 0 auto;
padding: 4px 4px 35px 4px;
}
main h1{
font-family: Arial, Helvetica, sans-serif;
font-size: 1.8rem;
}
main h2{
margin-top: 0.5rem;
font-family: saker, Arial, sans-serif;
font-size: 1.4rem;
letter-spacing: 2px;
}
main h3{
margin-top:4px;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2rem;
}
main input[type="submit"]{
font-size: 1.2rem;
}
main .box{
display:block;
width: 400px;
border: 1px solid gray;
border-radius: 5px;
padding: 4px;
background-color: white;
margin-top: 3px;
margin-bottom:3px;
}
main .box input[type="submit"]{
background:black;
border:0;
color: white;
-webkit-appearance: none;
padding: 3px 6px;
float: right;
font-size: 1.2rem;
margin-top: 1px;
margin-right: 2px;
}
main .box input[type="text"]{
width: 92%;
font-size: 1.1rem;
padding: 3px;
}
main article.comment {
padding:2px;
background-color: #e8e8e8;
margin-top: 5px;
}
.time{
text-align:right;
font-size: 1rem;
}
main h3{
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2rem;
}
main img.login {
float:left;
}
main section.login{
display: inline-block;
vertical-align: top;
}
/* End content */
/* Footer */
footer {
width: 100%;
position:absolute;
bottom:0;
left:0;
height: 30px;
background-image: url("../images/bgImg.png");
color: white;
font-size: 1.2rem;
}
footer #footerRight{
float:right;
padding: 5px;
}
footer #footerLeft{
float:left;
padding: 5px;
}
/* End footer */
@media only screen and (max-width: 768px) {
header {
height: 80px;
}
header h1{
margin-top: 1rem;
}
header img#logga{
margin-left: 15px;
}
header input[type="text"]{
width: 10rem;
margin-left: 0;
}
header input[type="password"]{
width: 10rem;
margin-left: 1rem;
}
header form#loggInForm{
position: absolute;
display: block;
bottom: 8px;
margin-left: 15px;
margin-bottom: 0;
}
header form#searchForm{
margin-left: 0.7rem;
}
header nav{
position: absolute;
display:block;
bottom: 5px;
margin-left: 5px;
}
header nav li{
margin-left: 0.4em;
display:inline;
}
main {
width:100%;
margin-left:2px;
padding-bottom: 35px;
}
main .box{
width:99%
}
main img.login {
display:none;
}
}

BIN
images/bgImg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
images/loggo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
images/mobile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

67
index.html Normal file
View File

@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EGY Talk</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrapper">
<header>
<img src="images/loggo.png" alt="loggo" id="logga">
<h1>EGY Talk</h1>
<form id="searchForm">
<input type="text" name = "searchUsr" placeholder="Sök vänner" size="30">
<input type="submit" value="🔍" class="fontSize">
</form>
<nav>
<ul>
<li><a href="/">No Name</a></li>
<li><a href="/flow">Flöde</a></li>
<li><a href="/friends">Vänner</a></li>
<li><a href="/prefernces">Inställningar</a></li>
</ul>
</nav>
<a href = 'api/logout' id='loggOutButton'>Logga ut</a>
</header>
<!-- END HEADER -->
<main>
<section>
<aside style ="display: inline-block; margin-right: 10px;">
<img class="login" src="images/mobile.png" alt="Mobiltelefon" width="180">
</aside>
<section class="login">
<h2>Skapa konto på EGY Talk</h2>
<form action="api/post/user" method="post">
<p>
<label>Förnamn</label><br>
<input type="text" name="firstName">
</p>
<p>
<label>Efternamn</label><br>
<input type="text" name="surName">
</p>
<p>
<label>Användarnamn</label><br>
<input type="text" name="userName">
</p>
<p>
<label>Lösenord</label><br>
<input type="password" name="pwd">
</p>
<input type="submit" value="Skapa konto">
</form>
</section>
</section>
</main>
<!-- END MAIN -->
<footer>
<p id="footerRight">&#xa9; EGY Talk</p>
</footer>
<!-- END FOOTER -->
</div>
</body>
</html>