Commit 72b3e9c1 authored by Corentin Bettiol's avatar Corentin Bettiol 💻

tentative d'url-rewriting

parent b5309953
......@@ -8,7 +8,7 @@ CSS
color: #1f1f2e;
}
body{
#page{
margin: 0;
padding: 0;
font-family: ubuntulight;
......@@ -16,7 +16,7 @@ body{
background-color: #e3e3e3;
}
header{
#header{
display: flex;
flex-direction: row;
justify-content: space-between;
......@@ -26,7 +26,7 @@ header{
padding: 2px;
}
header header img{
#logo, h1{
vertical-align: middle;
}
......@@ -44,6 +44,10 @@ h2{
font-weight: normal;
}
h3{
margin-top: 5px;
}
ul{
list-style-type: none;
font-size: 1.5em;
......@@ -112,14 +116,15 @@ Media Queries
@media all and (max-width: 1190px){
h1{
font-size: 1.2em;
font-size: 1.4em;
}
}
@media all and (max-width: 1075px){
header header img{
#logo{
width: 45px;
height: 45px;
margin-right: 5px;
}
h1{
margin-left: 2px;
......@@ -138,28 +143,23 @@ Media Queries
}
@media all and (max-width: 920px){
body{
#page{
font-size: 1.2em;
}
header{
#header{
flex-direction: column;
margin-top: 5px;
}
header header img{
width: auto;
height: auto;
}
header header h1{
h1{
font-size: 1.7em;
margin: 0;
}
}
@media all and (max-width: 700px){
header{
#header{
background-color: #e3e3e3;
}
nav{
......@@ -188,7 +188,7 @@ Media Queries
}
@media all and (max-width: 370px){
body{
#page{
font-size: 1em;
}
......
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="description" content="Site perso de Corentin Bettiol." />
<meta name="viewport" content="width=device-width" />
<title>l3m website -- Blog</title>
<link rel="stylesheet" href="css/design.css" />
<style>
*{
color: #1f1f2e;
}
li a{
background-color: #e3e3e3;
}
@media all and (max-width: 700px){
li a{
background-color: #f2f2f2;
}
}
</style>
</head>
<body>
<?php
// action par défaut
$namePage = "blog";
<div id="home"></div>
require_once("site/layout/layout.php");
<header>
<header>
<a href="#home" title="Retour en haut">
<img src="img/logo.png" alt="logo_morse" />
</a>
<h1>l3m website</h1>
</header>
<nav>
<ul>
<li><a href="#blog" title="Blog" class="selected">Blog</a></li>
<li><a href="#about" title="À propos">À propos</a></li>
<li><a href="#projects" title="Projets">Projets</a></li>
<li><a href="#contact" title="Contact">Contact</a></li>
<li><a href="#login" title="Connexion">Connexion</a></li>
</ul>
</nav>
</header>
echo "<pre>";
<h2>Blog</h2>
if(isset($_GET['about'])){
echo "truc";
}
<article>
<h3>Premier article</h3>
<p class="postInfos">
Corentin Bettiol, <time datetime="2018-09-20 14:32:49">Jeudi 20 septembre 2018 à 14h32</time>
</p>
<section>
<p>
Bonjour à tous et bienvenue sur cette nouvelle version du blog.
</p>
</section>
</article>
echo "</pre>";
</body>
</html>
\ No newline at end of file
?>
\ No newline at end of file
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="description" content="Site perso de Corentin Bettiol." />
<meta name="viewport" content="width=device-width" />
<title>l3m website -- <?php echo $namePage; ?></title>
<link rel="stylesheet" href="css/design.css" />
<style>
*{
color: #1f1f2e;
}
li a{
background-color: #e3e3e3;
}
@media all and (max-width: 700px){
li a{
background-color: #f2f2f2;
}
}
</style>
</head>
<body id="page">
<header id="header">
<header id="title">
<a href="/" title="Accueil - blog"><!--
--><img src="img/logo.png" alt="logo_morse" id="logo" /><!--
--></a><!--
--><h1>l3m website</h1>
</header>
<nav>
<ul>
<li><a href="/" title="Blog" class="selected">Blog</a></li>
<li><a href="about" title="À propos">À propos</a></li>
<li><a href="projects" title="Projets">Projets</a></li>
<li><a href="contact" title="Contact">Contact</a></li>
<li><a href="login" title="Connexion">Connexion</a></li>
</ul>
</nav>
</header>
<h2>Blog</h2>
<article>
<h3><a href="?article=1">Premier article</a></h3>
<p class="postInfos">
<a href="?profile=1">Corentin Bettiol</a>, <time datetime="2018-09-20 14:32:49">Jeudi 20 septembre 2018 à 14h32</time>, pas de commentaire
</p>
<section>
<p>
Bonjour à tous et bienvenue sur cette nouvelle version du blog.
</p>
</section>
</article>
</body>
</html>
\ No newline at end of file
Markdown is supported
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