Skip to content
Snippets Groups Projects
Commit a1f23f1e authored by Noé Le Cam's avatar Noé Le Cam
Browse files

Scrollbar tweaks

parent e8eda3be
Branches
No related merge requests found
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
left: 1rem; left: 1rem;
display: flex; display: flex;
gap: 1rem; gap: 1rem;
transform: scale(0.8);
transform-origin: bottom left;
} }
/* #cookies::after { /* #cookies::after {
......
...@@ -26,7 +26,6 @@ main { ...@@ -26,7 +26,6 @@ main {
background: rgba(0, 0, 0, 0.9); background: rgba(0, 0, 0, 0.9);
position: fixed; position: fixed;
padding-bottom: 7rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -35,6 +34,12 @@ main { ...@@ -35,6 +34,12 @@ main {
gap: 1rem; gap: 1rem;
} }
@media screen and (min-width: 550px) {
main {
padding-bottom: 20px;
}
}
h2 { h2 {
text-align: center; text-align: center;
margin-top: 0rem; margin-top: 0rem;
...@@ -66,13 +71,17 @@ section { ...@@ -66,13 +71,17 @@ section {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: 0.5rem;
overflow: hidden;
overflow-y: scroll; overflow-y: scroll;
height: 100%; height: 100%;
max-width: 100vw; max-width: 100vw;
box-sizing: border-box; box-sizing: border-box;
margin-left: 10px; margin-left: 10px;
margin-right: 10px; margin-right: -10px;
border-radius: 10px;
scrollbar-width: thin;
padding-right: 2px;
scrollbar-color: rgb(255, 255, 255) rgba(0, 0, 0, 0);
} }
header > p { header > p {
...@@ -84,12 +93,10 @@ header > p { ...@@ -84,12 +93,10 @@ header > p {
@media screen and (min-width: 550px) { @media screen and (min-width: 550px) {
main { main {
padding-top: 2rem; /* padding-top: 2rem; */
justify-content: center; justify-content: center;
} }
header { header {
max-width: 500px; max-width: 500px;
} }
...@@ -102,7 +109,7 @@ header > p { ...@@ -102,7 +109,7 @@ header > p {
} }
header > h1 { header > h1 {
font-size: 4rem; font-size: 4rem;
text-indent: 0.45em; text-indent: 0.45em;
letter-spacing: 0.5em; letter-spacing: 0.5em;
...@@ -110,7 +117,7 @@ header > p { ...@@ -110,7 +117,7 @@ header > p {
section { section {
margin: 0; margin: 0;
width: 600px; width: max-content;
max-width: 700px; max-width: 700px;
} }
} }
...@@ -153,4 +160,4 @@ button:hover { ...@@ -153,4 +160,4 @@ button:hover {
button:disabled { button:disabled {
filter: saturate(0.2); filter: saturate(0.2);
} }
\ No newline at end of file
<?php
try {
$db_path = $_SERVER['DOCUMENT_ROOT'] . '/assets/database.sqlite';
$pdo = new PDO('sqlite:' . $db_path);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo->prepare("CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE NOT NULL,
password TEXT NOT NULL)")->execute();
// If table empty add default admin user
if ($pdo->query("SELECT count(*) FROM users")->fetchColumn() == 0) {
$statement = $pdo->prepare(
"INSERT INTO users(username, password)
VALUES ('admin', :password)"
)->execute(['password' => password_hash('admin', PASSWORD_BCRYPT)]);
};
} catch (PDOException $err) {
echo $err->getMessage();
exit;
}
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment