This commit is contained in:
James BOUTARIC 2024-06-17 22:08:57 +02:00
parent 02cc61a468
commit be60d3bb47
6 changed files with 71 additions and 59 deletions

View File

@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own. | a PHP script and you can easily do that on your own.
| |
*/ */
$config['base_url'] = '/~brigitte/SAEWEB2.2/ci/'; $config['base_url'] = '/~boutaric/SAEWEB2.2/ci/';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -1,4 +1,4 @@
<section class="container"> <section class="albums">
<?php <?php
foreach ($AlbumsOfArtists as $AlbumsOfArtist) { foreach ($AlbumsOfArtists as $AlbumsOfArtist) {

View File

@ -1,4 +1,4 @@
<title>SpotiFly</title>
<section class="list"> <section class="list">
<?php <?php
$i = 0; $i = 0;

View File

@ -1,5 +1,4 @@
/* Style pour les boutons */ /* Style pour les boutons */
button[type='submit'].create-button,
button[type='submit'].delete-button { button[type='submit'].delete-button {
background-color: #1ed860; background-color: #1ed860;
color: white; color: white;
@ -11,32 +10,17 @@ button[type='submit'].delete-button {
transition: background-color 0.3s, color 0.3s; transition: background-color 0.3s, color 0.3s;
} }
button.upload-image-button { label.playlist-label{
background-color: transparent;
color: green;
border: 1px solid green;
padding: 8px 12px;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
transition: background-color 0.3s, color 0.3s;
}
button.upload-image-button:hover {
background-color: rgb(0, 255, 0);
color: white; color: white;
} }
/* Style pour le conteneur de la playlist */
div.playlist-container { div.playlist-container {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px; gap: 20px;
padding-top: 20px; /* Ajouter un padding pour éviter que le contenu ne soit caché par la barre de navigation */ justify-content: center;
justify-content: center; /* Centrer les éléments */ padding-top: 20px;
} }
/* Style pour chaque élément de la playlist */
div.playlist-item { div.playlist-item {
padding: 12px; padding: 12px;
border: 1px solid #ccc; border: 1px solid #ccc;
@ -46,7 +30,6 @@ div.playlist-item {
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
} }
div.playlist-item img { div.playlist-item img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;

View File

@ -16,18 +16,19 @@
background-color: #f9f9f9; background-color: #f9f9f9;
} }
.song-header { .short-text {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.song-name { .short-text form {
font-size: 18px; display: flex;
font-weight: bold; justify-content: space-between;
align-items: center;
} }
.add-to-playlist { .delete-button, .add-to-playlist {
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
background-color: #4CAF50; background-color: #4CAF50;
@ -37,6 +38,10 @@
border-radius: 5px; border-radius: 5px;
} }
.add-to-playlist:hover { .delete-button:hover, .add-to-playlist:hover {
background-color: #45a049; background-color: #45a049;
} }
.short-text select {
margin-right: 10px;
}

View File

@ -1,24 +1,29 @@
body {
* {
margin: 0;
padding: 0;
box-sizing: border-box; box-sizing: border-box;
}
.content {
max-width: 100%;
margin: 0;
padding: 100px;
}
body {
background-color: white; background-color: white;
font-size: 16px; font-size: 16px;
height: 80%; height: 80%;
padding-top: 100px; padding-top: 100px;
margin-right: 5px;
}
.content {
max-width: 1200px;
margin: 80px auto 0;
padding: 0px
} }
.navbar a { .navbar a {
color: white; color: white;
text-decoration: none; text-decoration: none;
margin: 0 5px; margin: 0 5px;
} }
.navbar { .navbar {
background-color: black; background-color: black;
padding: 20px; padding: 20px;
@ -36,6 +41,7 @@ body {
color: #FFF; color: #FFF;
text-decoration: none; text-decoration: none;
} }
.bouton { .bouton {
display: flex; display: flex;
text-decoration: none; text-decoration: none;
@ -46,6 +52,7 @@ body {
border: 2px; border: 2px;
margin: 0 40px; margin: 0 40px;
} }
.user { .user {
margin-right: 50px; margin-right: 50px;
padding-left: center; padding-left: center;
@ -55,10 +62,12 @@ body {
font-weight: bold; font-weight: bold;
justify-content: space-between; justify-content: space-between;
} }
.menu { .menu {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.menu ul { .menu ul {
list-style: none; list-style: none;
display: flex; display: flex;
@ -78,36 +87,41 @@ body {
font-family: Open Sans, 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; font-family: Open Sans, 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-size: 1.2rem; font-size: 1.2rem;
} }
#Page { #Page {
text-align: center; text-align: center;
padding: 50px 0; padding: 50px 0;
background: url(../img/fond.jpeg); background: url(../img/fond.jpeg);
} }
.text-page { .text-page {
border-top: 2px solid #1ed860; border-top: 2px solid #1ed860;
margin-top: 100px; margin-top: 100px;
color: white; color: white;
} }
.text-page h2{
margin-top: 50px;
color: white;
}
#header { #header {
background-color: #1ed860; background-color: #1ed860;
padding: 2px 0; padding: 2px 0;
} }
.mention_legale h2 { .mention_legale h2 {
color: #1ed860; color: #1ed860;
font-size: 2em; font-size: 2em;
margin-left: 400px; margin-left: 400px;
} }
.mention_legale { .mention_legale {
background-color: white; background-color: white;
border-radius: 20px; border-radius: 20px;
margin: 60px auto 0; margin: 60px auto 0;
padding: 40px; padding: 40px;
} }
.box { .box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -115,6 +129,7 @@ body {
padding: 20px; padding: 20px;
margin: 20px 0; margin: 20px 0;
} }
.box-img { .box-img {
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
@ -123,6 +138,7 @@ body {
height: auto; height: auto;
max-width: 100%; max-width: 100%;
} }
.box .box-img img { .box .box-img img {
width: 250px; width: 250px;
height: 150px; height: 150px;
@ -131,20 +147,24 @@ body {
margin-left: 100px; margin-left: 100px;
object-fit: initial; object-fit: initial;
} }
.box-content { .box-content {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }
.text-content { .text-content {
flex: 1; flex: 1;
} }
.box p { .box p {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-size: 1.2em; font-size: 1.2em;
margin-bottom: 10px; margin-bottom: 10px;
text-align: center; text-align: center;
} }
.box h2 { .box h2 {
color: #1ed860; color: #1ed860;
font-weight: bold; font-weight: bold;
@ -152,15 +172,18 @@ body {
font-size: 3.5em; font-size: 3.5em;
margin-bottom: 10px; margin-bottom: 10px;
} }
.box h3 { .box h3 {
color: #1ed860; color: #1ed860;
font-weight: bold; font-weight: bold;
font-size: 2em; font-size: 2em;
margin-bottom: 10px; margin-bottom: 10px;
} }
.box p { .box p {
text-align: justify; text-align: justify;
} }
.box img { .box img {
width: 200px; width: 200px;
height: 200px; height: 200px;
@ -169,6 +192,7 @@ body {
margin-right: 50px; margin-right: 50px;
margin-left: 40px; margin-left: 40px;
} }
.content-section h2 { .content-section h2 {
color: #1ed860; color: #1ed860;
} }
@ -179,12 +203,12 @@ body {
height: 80px; height: 80px;
margin-right: auto; margin-right: auto;
} }
img { img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
} }
.footer { .footer {
background-color: black; background-color: black;
color: white; color: white;
@ -194,11 +218,13 @@ img {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
.footer-content { .footer-content {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
flex-wrap: wrap; flex-wrap: wrap;
} }
.footer-section { .footer-section {
text-align: center; text-align: center;
margin: 10px; margin: 10px;
@ -234,6 +260,7 @@ img {
height: 30px; height: 30px;
margin-right: 5px; margin-right: 5px;
} }
#scrollTopBtn { #scrollTopBtn {
display: none; display: none;
position: fixed; position: fixed;
@ -246,6 +273,3 @@ img {
padding: 10px; padding: 10px;
cursor: pointer; cursor: pointer;
} }