HELP : Upload d'image
Posté : 08 janv. 2020, 16:06
Bonjour !
Etant débutant en programmation, je vous demande de l'aide pour m'aiguiller sur mon problème.
Dans le cadre de mes études, je dois rendre un site internet codé en html, css et php. J'ai choisi de créer un site d'hébergement d'image. En gros, la personne upload l'image et celle-ci s'affiche dans la page d'accueil de mon site internet.
La partie html et css du site a été créée mais désormais je bloque sur la partie php, je ne sais pas comment m'y prendre, malgré le fait que j'ai regardé beaucoup de tutos mais ceci ne m'a pas aidé.
Je vous remercie d'avance pour vos réponses !
Code html :
Code css :
Etant débutant en programmation, je vous demande de l'aide pour m'aiguiller sur mon problème.
Dans le cadre de mes études, je dois rendre un site internet codé en html, css et php. J'ai choisi de créer un site d'hébergement d'image. En gros, la personne upload l'image et celle-ci s'affiche dans la page d'accueil de mon site internet.
La partie html et css du site a été créée mais désormais je bloque sur la partie php, je ne sais pas comment m'y prendre, malgré le fait que j'ai regardé beaucoup de tutos mais ceci ne m'a pas aidé.
Je vous remercie d'avance pour vos réponses !
Code html :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Ma galerie photo</title>
<!--FONTS-->
<link href="https://fons.googleapis.com/css?family=Amaranth" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#">Accueil</a></li>
<li><a href="#">Upload une photo</a></li>
<li><a href="#">A propos</a></li>
</ul>
</nav>
</header>
<div class="mygallery">
<div class="column">
<img src="images/skate1.jpg">
<img src="images/skate4.jpg">
<img src="images/skate7.jpg">
<img src="images/skate10.jpg">
<img src="images/skate13.jpg">
<img src="images/skate16.jpg">
<img src="images/skate19.jpg">
<img src="images/skate22.jpg">
<img src="images/skate25.jpg">
<img src="images/skate28.jpg">
</div>
<div class="column">
<img src="images/skate2.jpg">
<img src="images/skate5.jpg">
<img src="images/skate8.jpg">
<img src="images/skate11.jpg">
<img src="images/skate14.jpg">
<img src="images/skate17.jpg">
<img src="images/skate20.jpg">
<img src="images/skate23.jpg">
<img src="images/skate26.jpg">
<img src="images/skate29.jpg">
</div>
<div class="column">
<img src="images/skate3.jpg">
<img src="images/skate6.jpg">
<img src="images/skate9.jpg">
<img src="images/skate12.jpg">
<img src="images/skate15.jpg">
<img src="images/skate18.jpg">
<img src="images/skate21.jpg">
<img src="images/skate24.jpg">
<img src="images/skate27.jpg">
<img src="images/skate30.jpg">
</div>
</div>
</body>
</html>
Code css :
html, body{
font-family: Verdana, Calibri, sans-serif;
margin: 0;
padding: 0px;
}
header{
width: 100%;
height: 60px;
color: #fff;
padding-top: 15px;
background-color: #34ace0;
font-size: 30px;
text-align: center;
font-family: 'Amaranth', sans-serif;
position: fixed;
top: 0;
z-index: 100000;
}
*{
margin: 0px;
padding: 0px;
font-family: Avenir, sans-serif;
}
nav{
width: 100%;
margin: 0px auto 40px auto;
background-color: white;
position: sticky;
top: 0px;
}
nav ul{
list-style-type: none;
}
nav li{
float: left;
width: 33.33%;
text-align: center;
}
nav ul::after{
content: "";
display: table;
clear: both;
}
nav a{
display: block;
text-decoration: none;
color: black;
border-bottom: 2px solid transparent;
padding: 10px 0px;/*Agrandit le menu et espace la bordure du texte*/
}
nav a:hover{
color: orange;
border-bottom: 2px solid gold;
}
.conteneur{
margin: 0px 20px;
height: 1500px;
}
.mygallery{
position: absolute;
top: 75px;
display: flex;
display: -ms-flexbox;
-ms-flex-wrap : wrap;
flex-wrap: wrap;
background-color: #34ace0
}
.column{
flex : 31.5%;
-ms-flex : 31.5;
max-width: 31.5%;
padding: 0 10px;
margin-top: 10px;
}
.column img{
width: 100%;
margin-top: 8px;
vertical-align: middle;
}
.column img:hover{
cursor: pointer;
-webkit-box-shadow: 0px 0px 5px 2px rgba(5,5,5,1);
-moz-box-shadow: 0px 0px 5px 2px rgba(5,5,5,1);
box-shadow: 0px 0px 5px 2px rgba(5,5,5,1);
}
@media screen and (max-width: 800px){
.column{
flex : 45%;
-ms-flex : 45%;
max-width: 45%;
padding: 0 10px;
}
}
@media screen and (max-width: 600px;){
.column{
flex : 100%;
-ms-flex : 100%;
max-width: 100%;
}
