Update 7 files

- /html/src/css/style.css
- /html/about.php
- /html/admin.php
- /html/compte.php
- /html/editpage.php
- /html/index.php
- /include/functions.php
This commit is contained in:
Jan BELLON 2024-03-08 17:38:23 +00:00
parent f0eecc2f09
commit 2a9eabd310
7 changed files with 27 additions and 5 deletions

View File

@ -12,7 +12,7 @@ require "../include/functions.php";
<link rel="icon" href="src/img/favicon.ico"> <link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title> <title><?=$title?></title>
</head> </head>
<body> <body class='<?=$_SESSION['colormode']?>'>
<header> <header>
<div class="pancontent"> <div class="pancontent">
<div class="athena-container"> <div class="athena-container">

View File

@ -18,7 +18,7 @@ if($_SESSION['role'] < 3) {
<link rel="icon" href="src/img/favicon.ico"> <link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title> <title><?=$title?></title>
</head> </head>
<body> <body class='<?=$_SESSION['colormode']?>'>
<header> <header>
<div class="pancontent"> <div class="pancontent">
<div class="athena-container"> <div class="athena-container">

View File

@ -31,7 +31,7 @@ if(isset($_POST['delete_account'])) {
<link rel="icon" href="src/img/favicon.ico"> <link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title> <title><?=$title?></title>
</head> </head>
<body> <body class='<?=$_SESSION['colormode']?>'>
<header> <header>
<div class="pancontent"> <div class="pancontent">
<div class="athena-container"> <div class="athena-container">

View File

@ -70,7 +70,7 @@ if(isset($fichier)) {
} }
</style> </style>
</head> </head>
<body> <body class='<?=$_SESSION['colormode']?>'>
<header> <header>
<div class="pancontent"> <div class="pancontent">
<div class="athena-container"> <div class="athena-container">

View File

@ -12,7 +12,7 @@ require "../include/functions.php";
<link rel="icon" href="src/img/favicon.ico"> <link rel="icon" href="src/img/favicon.ico">
<title><?=$title?></title> <title><?=$title?></title>
</head> </head>
<body> <body class='<?=$_SESSION['colormode']?>'>
<header> <header>
<div class="pancontent"> <div class="pancontent">
<div class="athena-container"> <div class="athena-container">

View File

@ -1,4 +1,13 @@
:root { :root {
--text: #000000;
--background: hsl(0, 0%, 100%);
--dark-background: hsl(0, 0%, 100%);
--darker-background: hsl(0, 0%, 100%);
--article-background: hsl(0, 0%, 100%);
--article-text: hsl(0, 0%, 0%);
}
.light {
--text: #373737; --text: #373737;
--background: hsl(0, 0%, 100%); --background: hsl(0, 0%, 100%);
--dark-background: hsl(0, 0%, 100%); --dark-background: hsl(0, 0%, 100%);
@ -7,6 +16,15 @@
--article-text: hsl(0, 0%, 0%); --article-text: hsl(0, 0%, 0%);
} }
.dark {
--text: #b3b3b3;
--background: hsl(0, 0%, 15%);
--dark-background: hsl(0, 0%, 10%);
--darker-background: hsl(0, 0%, 5%);
--article-background: hsl(0, 0%, 15%);
--article-text: hsl(0, 0%, 100%);
}
@font-face { @font-face {
font-family: crfont; /* Nom de la police */ font-family: crfont; /* Nom de la police */
src: url('/src/fonts/bahnschrift.ttf') format('truetype'); /* Chemin vers votre fichier TTF */ src: url('/src/fonts/bahnschrift.ttf') format('truetype'); /* Chemin vers votre fichier TTF */

View File

@ -9,6 +9,10 @@ if(!isset($_SESSION['role'])) {
$_SESSION['role'] = 0; $_SESSION['role'] = 0;
} }
if(!isset($_SESSION['colormode'])) {
$_SESSION['colormode'] = "dark";
}
function nav($nav) { function nav($nav) {
foreach($nav as $name => $url) { foreach($nav as $name => $url) {
echo "<a href='$url'><div class='navitem'>$name</div></a>"; echo "<a href='$url'><div class='navitem'>$name</div></a>";