Files
Portfolio-Esteban/styles/primary_css.css
T

316 lines
5.6 KiB
CSS

/* ---- LE CSS EST SOIT GÉNÉRÉ PAR INTEL ARTI SOIT RÉUTILISÉ D'UN AUTRE PROJET ---- */
/* ---- En général ---- */
/* Background de page */
body {
background-color: #0d0d0d;
margin: 0;
font-family: Arial, sans-serif;
color: white;
}
/* ---- Header de la page ---- */
/* header */
header {
background-color: #111111;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 40px;
}
/* Titre de la page ou même le Logo */
.titre-de-page {
font-weight: bold;
font-size: 20px;
text-decoration: none;
color: white;
}
/* Barre de navigation */
nav a {
color: #aaaaaa;
text-decoration: none;
margin-left: 10px;
padding: 8px 15px;
border-radius: 8px;
}
nav a:hover {
background-color: #1a1a24;
color: white;
}
/* ---- PAGE LOGIN ---- */
/* Centre la carte au milieu de la page */
.login-container {
display: flex;
justify-content: center;
align-items: center;
height: 80vh;
}
/* La carte blanche/grise */
.login-card {
background-color: #1a1a2e;
border-radius: 16px;
padding: 40px;
width: 340px;
text-align: center;
}
/* Titre dans la carte */
.login-card .logo-blanc {
color: white;
font-size: 26px;
font-weight: bold;
}
.login-card .logo-violet {
color: #6c63ff;
font-size: 26px;
font-weight: bold;
}
/* Sous-titre */
.login-card p {
color: #aaaaaa;
margin-bottom: 25px;
}
/* Labels */
.login-card label {
display: block;
text-align: left;
color: white;
margin-bottom: 6px;
}
/* Champs de texte */
.login-card input[type="text"],
.login-card input[type="password"] {
width: 100%;
background-color: #2a2a3e;
border: 1px solid #3a3a5e;
border-radius: 8px;
color: white;
padding: 12px;
margin-bottom: 20px;
box-sizing: border-box;
}
/* Bouton connexion */
.login-card input[type="submit"] {
width: 100%;
background-color: #6c63ff;
color: white;
border: none;
border-radius: 8px;
padding: 14px;
font-size: 16px;
cursor: pointer;
}
.login-card input[type="submit"]:hover {
background-color: #5a52e0;
}
/* ---- PAGE AJOUT PROJET ---- */
.project-container {
display: flex;
justify-content: center;
padding: 10px 20px;
}
.project-form-card {
background-color: #111116; /* Fond très sombre comme sur l'image */
border: 1px dashed #3a3a5e; /* Bordure pointillée */
border-radius: 12px;
padding: 30px;
width: 800px;
max-width: 100%;
}
.project-header h2 {
margin-top: 0;
margin-bottom: 20px;
font-size: 20px;
display: flex;
align-items: center;
}
.badge-admin {
color: #6c63ff; /* Ton violet */
font-size: 14px;
margin-left: 10px;
font-weight: normal;
}
.form-row {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.half-width {
flex: 1;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
color: #aaaaaa;
margin-bottom: 8px;
font-size: 14px;
}
/* Inputs reprenant ton style login */
.project-form-card input[type="text"],
.project-form-card input[type="url"],
.project-form-card textarea {
width: 100%;
background-color: #1a1a24;
border: 1px solid #2a2a3e;
border-radius: 6px;
color: white;
padding: 12px;
margin-bottom: 16px;
box-sizing: border-box;
}
/* Correction ici : project-form-card au lieu de project-card */
.project-form-card textarea {
min-height: 100px;
resize: vertical;
}
/* Zone pour l'URL (qui remplace l'upload de fichier) */
.url-input-zone {
border: 1px dashed #3a3a5e;
border-radius: 6px;
padding: 40px 20px;
text-align: center;
background-color: #15151c;
}
.url-input-zone input {
width: 80%;
margin-top: 15px;
}
/* Bouton violet */
.btn-submit {
background-color: #6c63ff;
color: white;
border: none;
border-radius: 8px;
padding: 12px 24px;
font-size: 15px;
font-weight: bold;
cursor: pointer;
}
.btn-submit:hover {
background-color: #5a52e0;
}
.projects-title {
color: white;
font-size: 22px;
font-weight: bold;
margin: 0;
padding: 0 40px 20px 40px;
}
.projects-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
padding: 0 40px 40px 40px;
}
.projects-list .project-card {
background-color: #111116;
border: 1px solid #2a2a3e;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.projects-list .project-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.project-banner img {
width: 100%;
height: 220px;
object-fit: cover;
display: block;
}
.project-content {
padding: 20px;
}
.project-content h2 {
margin: 0 0 12px;
font-size: 22px;
color: white;
}
.project-content p {
margin: 0;
color: #b8b8c7;
line-height: 1.6;
}
.project-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 16px;
}
.tag {
background-color: rgba(108, 99, 255, 0.15);
color: #8f88ff;
border: 1px solid rgba(108, 99, 255, 0.35);
padding: 6px 12px;
border-radius: 999px;
font-size: 13px;
font-weight: bold;
}
/* ---- Panel admin ---- */
.admin-actions {
display: flex;
gap: 12px;
margin-top: 20px;
flex-wrap: wrap;
}
.admin-actions .btn-submit {
display: inline-block;
text-decoration: none;
}
.btn-edit {
background-color: #6c63ff;
}
.btn-delete {
background-color: #a12c2f;
}
.btn-delete:hover {
background-color: #7e2023;
}