assets index.html loop
This commit is contained in:
parent
d74107252b
commit
148b240bb7
33
assets/index.html
Normal file
33
assets/index.html
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<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>LOOP</title>
|
||||||
|
<base href="./">
|
||||||
|
<script src="https://kit.fontawesome.com/96dcb489df.js" crossorigin="anonymous"></script>
|
||||||
|
<link rel="stylesheet" href="styles.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<header>
|
||||||
|
<a href="file:///C:/Users/elyko/Desktop/loop/index.html"><img src="images/logo.png" class="logo"></a>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<h1>Let your favorite songs play on LOOP.</h1>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="login-container">
|
||||||
|
<input type="text" placeholder="Username" required>
|
||||||
|
<input type="password" placeholder="Password" required>
|
||||||
|
<button>Log In</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Don't have an account ?<a href="" class="orange"> Sign up now.</a> </span></h2>
|
||||||
|
|
||||||
|
<script src="script.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
1
assets/script.js
Normal file
1
assets/script.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
console.log( 'hello')
|
||||||
104
assets/styles.css
Normal file
104
assets/styles.css
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
|
||||||
|
*{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) { /* Écran plus large (tablette, PC) */
|
||||||
|
.container {
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Par défaut, style mobile */
|
||||||
|
body {
|
||||||
|
font-size: 16px;
|
||||||
|
background: linear-gradient(to bottom, #ffa600, #dd3000);
|
||||||
|
display: grid;
|
||||||
|
place-items: center; /* Centre horizontalement et verticalement */
|
||||||
|
height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Quand l'écran est large (ex : tablette ou ordinateur) */
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
body {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.logo{
|
||||||
|
margin-top: 40px;
|
||||||
|
max-width: 180px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orange {
|
||||||
|
color: #ffa600;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orange:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-container {
|
||||||
|
background: white;
|
||||||
|
padding: 20px;
|
||||||
|
border-radius: 30px;
|
||||||
|
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
|
||||||
|
width: 300px;
|
||||||
|
height: 400px;
|
||||||
|
text-align: center
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Champs de texte */
|
||||||
|
.login-container input {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px;
|
||||||
|
margin: 10px 0;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 50px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bouton */
|
||||||
|
.login-container button {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px;
|
||||||
|
background-color:#ffa600;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 50px;
|
||||||
|
font-size: 18px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-container button:hover {
|
||||||
|
background-color: #dd3000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -15,7 +15,8 @@ app.use(express.static('assets'))
|
|||||||
|
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
// res.send('Hello World!')
|
// res.send('Hello World!')
|
||||||
res.render('index', { title: 'Hey', message: 'Hello there PUG!' })
|
// res.render('index', { title: 'Hey', message: 'Hello there PUG!' })
|
||||||
|
res.sendFile('index.html');
|
||||||
})
|
})
|
||||||
|
|
||||||
io.on('connection', (socket) => {
|
io.on('connection', (socket) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user