anilist integrated to my list

This commit is contained in:
2025-12-06 17:18:03 +01:00
parent e5ec8aa7e5
commit 822a9f83cf
13 changed files with 774 additions and 257 deletions

View File

@@ -23,7 +23,6 @@ body {
padding-top: var(--nav-height);
}
/* Navbar Styles */
.navbar {
width: 100%;
height: var(--nav-height);
@@ -127,14 +126,12 @@ body {
color: var(--text-secondary);
}
/* Container */
.container {
max-width: 1600px;
margin: 0 auto;
padding: 3rem;
}
/* Header Section */
.header-section {
margin-bottom: 3rem;
}
@@ -157,18 +154,19 @@ body {
.stat-card {
background: var(--bg-surface);
border: 1px solid rgba(255,255,255,0.05);
border-radius: var(--radius-md);
border: 1px solid rgba(255,255,255,0.1);
border-radius: var(--radius-lg);
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
transition: transform 0.3s, border-color 0.3s;
transition: transform 0.3s, box-shadow 0.3s;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.stat-card:hover {
transform: translateY(-4px);
border-color: var(--accent);
transform: translateY(-5px);
box-shadow: 0 10px 40px var(--accent-glow);
}
.stat-value {
@@ -183,7 +181,6 @@ body {
font-weight: 600;
}
/* Filters Section */
.filters-section {
display: flex;
gap: 1rem;
@@ -261,7 +258,6 @@ body {
color: white;
}
/* Loading State */
.loading-state {
display: flex;
flex-direction: column;
@@ -284,7 +280,6 @@ body {
to { transform: rotate(360deg); }
}
/* Empty State */
.empty-state {
display: flex;
flex-direction: column;
@@ -304,10 +299,10 @@ body {
color: var(--text-primary);
}
/* List Grid View */
.list-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1.5rem;
}
@@ -317,25 +312,33 @@ body {
.list-item {
background: var(--bg-surface);
border: 1px solid rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
border-radius: var(--radius-md);
overflow: hidden;
cursor: pointer;
transition: transform 0.3s, border-color 0.3s;
transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
display: flex;
flex-direction: column;
position: relative;
}
.list-item:hover {
transform: translateY(-8px);
transform: translateY(-5px);
border-color: var(--accent);
box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.list-grid.list-view .list-item {
display: flex;
flex-direction: row;
}
.list-grid.list-view .list-item:hover {
transform: translateX(8px);
transform: translateX(5px);
}
.item-poster-link {
display: block;
cursor: pointer;
}
.item-poster {
@@ -353,12 +356,12 @@ body {
.item-content {
padding: 1rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.list-grid.list-view .item-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
@@ -389,24 +392,31 @@ body {
border-radius: 6px;
font-weight: 600;
white-space: nowrap;
text-transform: uppercase;
}
.status-pill {
background: rgba(34, 197, 94, 0.2);
color: var(--success);
border: 1px solid rgba(34, 197, 94, 0.3);
}
.type-pill {
background: rgba(139, 92, 246, 0.15);
color: var(--accent);
border: 1px solid rgba(139, 92, 246, 0.3);
}
.source-pill {
background: rgba(168, 85, 247, 0.15);
color: #a855f7;
border: 1px solid rgba(168, 85, 247, 0.3);
background: rgba(255, 255, 255, 0.1);
color: var(--text-primary);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.progress-bar-container {
background: rgba(255,255,255,0.05);
border-radius: 999px;
height: 6px;
height: 8px;
overflow: hidden;
margin-bottom: 0.5rem;
}
@@ -419,10 +429,11 @@ body {
}
.progress-text {
font-size: 0.8rem;
font-size: 0.9rem;
color: var(--text-secondary);
display: flex;
justify-content: space-between;
align-items: center;
}
.score-badge {
@@ -433,7 +444,22 @@ body {
color: var(--success);
}
/* Modal */
.edit-btn-card {
background: var(--accent);
color: white;
padding: 0.5rem 1rem;
border-radius: 999px;
font-weight: 700;
border: none;
cursor: pointer;
transition: transform 0.2s, background 0.2s;
margin-top: 1rem;
}
.edit-btn-card:hover {
background: #7c3aed;
transform: scale(1.03);
}
.modal-overlay {
position: fixed;
inset: 0;
@@ -577,7 +603,16 @@ body {
opacity: 0.9;
}
/* Responsive */
.modal-overlay {
display: none;
opacity: 0;
}
.modal-overlay.active {
display: flex;
opacity: 1;
}
@media (max-width: 768px) {
.navbar {
padding: 0 1.5rem;
@@ -600,36 +635,49 @@ body {
}
.list-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1.5rem;
}
}
.meta-pill {
padding: 0.3rem 0.6rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
white-space: nowrap;
.edit-icon-btn {
position: absolute;
top: 1rem;
right: 1rem;
z-index: 50;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s, background 0.2s;
}
/* Estilo para la píldora de tipo (opcional, para diferenciar) */
.type-pill {
background: rgba(255, 165, 0, 0.2); /* Naranja suave */
color: #ffb74d;
border: 1px solid rgba(255, 165, 0, 0.3);
.list-item:hover .edit-icon-btn {
opacity: 1;
}
/* Si usas la convención de colores de tu proyecto (e.g., violeta para extensión), puedes usar eso: */
.source-pill {
background: rgba(139, 92, 246, 0.2);
color: #a78bfa;
border: 1px solid rgba(139, 92, 246, 0.3);
.edit-icon-btn:hover {
background: var(--accent);
border-color: var(--accent);
}
/* Ejemplo de color para la píldora de estado si no lo tienes */
.status-pill {
background: rgba(34, 197, 94, 0.2); /* Verde de ejemplo */
color: #4ade80;
border: 1px solid rgba(34, 197, 94, 0.3);
.edit-btn-card {
display: none;
}
.item-poster-link {
z-index: 1;
}