Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprint 1 #75

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
initial commit, before handlebars (see point 6 in project work sprint 1)
  • Loading branch information
SquareRootOf64 committed Jul 21, 2024
commit 08e179acf3a5fc4b4b65f2ef0e39b95213cafbd5
30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.scss">
<title>Login form</title>
</head>
<body>
<div class="container">
<div class="login">
<h1>Welcome to the Club!</h1>
<h2>Sign in</h2>

<form>
<label for="login">Login</label>
<input id="login" type="text" name="login" class="login-input">

<label for="password">Password</label>
<input id="password" type="password" name="password" class="pass-input">

<button class="enter-button">
<a href="src/chats/chats.html" class="enter-button">Enter</a> <!--todo remove <a> when routing is ready-->
</button>

<a href="src/register/register.html">Sign up</a>
</form>
</div>
</div>
</body>
</html>
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "middle.messenger.praktikum.yandex",
"version": "0.0.1",
"description": "...",
"main": "index.html",
"scripts": {
"dev": "vite serve --force -d --open",
"build": "vite build",
"preview": "vite preview",
"tscb": "tsc --build"
},
"author": "....",
"license": "ISC",
"devDependencies": {
"typescript": "^4.7.4",
"vite": "^4.3.9"
},
"engines": {
"node": ">14"
},
"dependencies": {
"express": "^4.18.2",
"handlebars": "^4.7.7"
}
}
82 changes: 82 additions & 0 deletions styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Arial";
}

.container {
width: 100%;
height: 100vh;
background-position: center;
background-color: rgba(211, 211, 211, 0.05);
}

.login {
width: 300px;
height: 450px;
background-color: white;
border: 1px solid lightgrey;
border-radius: 15px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 80px 30px;
}

h1, h2 {
text-align: center;
color: rgba(115, 7, 110, 0.73);
font-size: 24px;
font-weight: 500;
margin-bottom: 16px;
}

.login input {
width: 100%;
border: none;
border-bottom: 1px solid #FF8DFA6B;
margin-bottom: 16px;
outline: none;
background: transparent;
height: 30px;
color: #995596;
font-size: 15px;
}

.login label {
color: #FF8DFA6B;
}

.enter-button {
font-size: 20px;
vertical-align: center;
border: none;
outline: none;
height: 40px;
width: 100%;
border-radius: 25px;
background-color: #FF8DFA6B;
margin-top: 10px;
margin-bottom: 30px;
color: white;
background: linear-gradient(90deg, #FF8DFA 0%, #C26CBF 51.15%, #995596 100%);
}

.enter-button:hover {
background: #FF8DFA;
cursor: pointer;
transition: 0.5s;
}
a {
width: 100%;
text-align: center;
text-decoration: none;
display: block;
}