Merge branch 'master' of git.inpt.fr:tocard-inc/enseeiht/projet-web

This commit is contained in:
gdamms 2022-05-20 15:12:24 +02:00
commit d1b048ffea
12 changed files with 114 additions and 127 deletions

View file

@ -5,9 +5,9 @@ CREATE TABLE Pixel (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE = InnoDB; ) ENGINE = InnoDB;
INSERT INTO Pixel(id, price, color) INSERT INTO Pixel(id, price, color)
VALUES (1, 1, "ffffff"), VALUES (1, 1, "000000"),
(2, 1, "ffffff"), (2, 1, "000000"),
(3, 1, "ffffff"), (3, 1, "000000"),
(4, 1, "ffffff"), (4, 1, "ffffff"),
(5, 1, "ffffff"), (5, 1, "ffffff"),
(6, 1, "ffffff"), (6, 1, "ffffff"),
@ -17,27 +17,27 @@ VALUES (1, 1, "ffffff"),
(10, 1, "ffffff"), (10, 1, "ffffff"),
(11, 1, "ffffff"), (11, 1, "ffffff"),
(12, 1, "ffffff"), (12, 1, "ffffff"),
(13, 1, "ffffff"), (13, 1, "000000"),
(14, 1, "ffffff"), (14, 1, "000000"),
(15, 1, "ffffff"), (15, 1, "ffffff"),
(16, 1, "ffffff"), (16, 1, "ffffff"),
(17, 1, "ffffff"), (17, 1, "ffffff"),
(18, 1, "ffffff"), (18, 1, "ffffff"),
(19, 1, "ffffff"), (19, 1, "ffffff"),
(20, 1, "ffffff"), (20, 1, "ffffff"),
(21, 1, "ffffff"), (21, 1, "000000"),
(22, 1, "ffffff"), (22, 1, "000000"),
(23, 1, "ffffff"), (23, 1, "000000"),
(24, 1, "ffffff"), (24, 1, "000000"),
(25, 1, "ffffff"), (25, 1, "ffffff"),
(26, 1, "ffffff"), (26, 1, "ffffff"),
(27, 1, "ffffff"), (27, 1, "ffffff"),
(28, 1, "ffffff"), (28, 1, "ffffff"),
(29, 1, "ffffff"), (29, 1, "ffffff"),
(30, 1, "ffffff"), (30, 1, "ffffff"),
(31, 1, "ffffff"), (31, 1, "000000"),
(32, 1, "ffffff"), (32, 1, "000000"),
(33, 1, "ffffff"), (33, 1, "000000"),
(34, 1, "ffffff"), (34, 1, "ffffff"),
(35, 1, "ffffff"), (35, 1, "ffffff"),
(36, 1, "ffffff"), (36, 1, "ffffff"),
@ -45,9 +45,9 @@ VALUES (1, 1, "ffffff"),
(38, 1, "ffffff"), (38, 1, "ffffff"),
(39, 1, "ffffff"), (39, 1, "ffffff"),
(40, 1, "ffffff"), (40, 1, "ffffff"),
(41, 1, "ffffff"), (41, 1, "000000"),
(42, 1, "ffffff"), (42, 1, "ffffff"),
(43, 1, "ffffff"), (43, 1, "000000"),
(44, 1, "ffffff"), (44, 1, "ffffff"),
(45, 1, "ffffff"), (45, 1, "ffffff"),
(46, 1, "ffffff"), (46, 1, "ffffff"),

View file

@ -1,101 +0,0 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Popup Login Form Design | CodingNepal</title>
<link rel="stylesheet" href="utils.css">
<link rel="stylesheet" href="title-bar.css">
<link rel="stylesheet" href="login-signup.css">
<link rel="stylesheet" href="pixels.css">
<script>
function toggleLoginSignup(l, s) {
document.getElementById("show-login").checked = l;
document.getElementById("show-signup").checked = s;
}
</script>
<script type="text/javascript" src="pixels.js"></script>
</head>
<body>
<div class="title-bar">
<div class="title">
<img src="logo.png" /> Pixels
</div>
<div class="profil">
<input type="checkbox" id="show-login" class="show">
<div onclick="toggleLoginSignup(true, false)" class="login-btn">Login</div>
<input type="checkbox" id="show-signup" class="show">
<div onclick="toggleLoginSignup(false, true)" class="signup-btn">Signup</div>
<div class="login-container">
<div onclick="toggleLoginSignup(false, false)" class="close-btn" title="close">X</div>
<div class="text">
Login
</div>
<form action="#">
<div class="data">
<label>Nickname</label>
<input type="text" required>
</div>
<div class="data">
<label>Password</label>
<input type="password" required>
</div>
<div class="forgot-pass">
<a href="#">Forgot Password?</a>
</div>
<div class="btn">
<button type="submit">login</button>
</div>
<div class="signup-login-link">
Not a member?
<div class="href" onclick="toggleLoginSignup(false, true)">Signup now</div>
</div>
</form>
</div>
<div class="signup-container">
<div onclick="toggleLoginSignup(false, false)" class="close-btn" title="close">X</div>
<div class="text">
Signup
</div>
<form action="#">
<div class="data">
<label>Nickname</label>
<input type="text" required>
</div>
<div class="data">
<label>Password</label>
<input type="password" required>
</div>
<div class="btn">
<button type="submit">signup</button>
</div>
<div class="signup-login-link">
Already a member?
<div class="href" onclick="toggleLoginSignup(true, false)">Login now</div>
</div>
</form>
</div>
</div>
</div>
<div class="pixel-container">
<table id="pixelTable">
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
</table>
</div>
</body>
</html>

View file

@ -1,13 +1,101 @@
<html> <!DOCTYPE html>
<html lang="en" dir="ltr">
<head> <head>
<title>Web Demo</title> <meta charset="utf-8">
<title>Popup Login Form Design | CodingNepal</title>
<link rel="stylesheet" href="utils.css">
<link rel="stylesheet" href="title-bar.css">
<link rel="stylesheet" href="login-signup.css">
<link rel="stylesheet" href="pixels.css">
<script>
function toggleLoginSignup(l, s) {
document.getElementById("show-login").checked = l;
document.getElementById("show-signup").checked = s;
}
</script>
<script type="text/javascript" src="pixels.js"></script>
</head> </head>
<body> <body>
<p>Say <a href="hello">Hello</a></p>
<form method="post" action="hello"> <div class="title-bar">
<h2>Name:</h2> <div class="title">
<input type="text" id="say-hello-text-input" name="name" /> <img src="logo.png" /> Pixels
<input type="submit" id="say-hello-button" value="Say Hello" /> </div>
<div class="profil">
<input type="checkbox" id="show-login" class="show">
<div onclick="toggleLoginSignup(true, false)" class="login-btn">Login</div>
<input type="checkbox" id="show-signup" class="show">
<div onclick="toggleLoginSignup(false, true)" class="signup-btn">Signup</div>
<div class="login-container">
<div onclick="toggleLoginSignup(false, false)" class="close-btn" title="close">X</div>
<div class="text">
Login
</div>
<form action="#">
<div class="data">
<label>Nickname</label>
<input type="text" required>
</div>
<div class="data">
<label>Password</label>
<input type="password" required>
</div>
<div class="forgot-pass">
<a href="#">Forgot Password?</a>
</div>
<div class="btn">
<button type="submit">login</button>
</div>
<div class="signup-login-link">
Not a member?
<div class="href" onclick="toggleLoginSignup(false, true)">Signup now</div>
</div>
</form> </form>
</div>
<div class="signup-container">
<div onclick="toggleLoginSignup(false, false)" class="close-btn" title="close">X</div>
<div class="text">
Signup
</div>
<form action="#">
<div class="data">
<label>Nickname</label>
<input type="text" required>
</div>
<div class="data">
<label>Password</label>
<input type="password" required>
</div>
<div class="btn">
<button type="submit">signup</button>
</div>
<div class="signup-login-link">
Already a member?
<div class="href" onclick="toggleLoginSignup(true, false)">Login now</div>
</div>
</form>
</div>
</div>
</div>
<div class="pixel-container">
<table id="pixelTable">
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
</table>
</div>
</body> </body>
</html> </html>

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB