finished gallery section
This commit is contained in:
@@ -1,145 +1,270 @@
|
||||
/* Placeholder para la altura del navbar fijo */
|
||||
.gallery-hero-placeholder {
|
||||
height: var(--nav-height);
|
||||
width: 100%;
|
||||
:root {
|
||||
--accent: #8b5cf6;
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: #a1a1aa;
|
||||
--radius-lg: 24px;
|
||||
--radius-full: 9999px;
|
||||
--glass-border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
--glass-bg: rgba(20, 20, 23, 0.7);
|
||||
--nav-height: 80px;
|
||||
}
|
||||
|
||||
.item-content {
|
||||
.gallery-hero-placeholder { height: var(--nav-height); width: 100%; }
|
||||
|
||||
.item-content-flex-wrapper {
|
||||
display: flex;
|
||||
gap: 3rem;
|
||||
padding-top: 2rem;
|
||||
padding: 2rem 0 4rem;
|
||||
min-height: 80vh;
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.image-col {
|
||||
flex: 2;
|
||||
max-width: 65%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
position: relative;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.item-image {
|
||||
max-width: 100%;
|
||||
max-height: 85vh;
|
||||
height: auto;
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
|
||||
border-radius: var(--radius-lg, 16px);
|
||||
box-shadow: 0 20px 50px rgba(0,0,0,0.6);
|
||||
object-fit: contain;
|
||||
opacity: 0; /* Inicialmente oculto para fade-in */
|
||||
transition: opacity 0.5s ease;
|
||||
transition: all 0.4s ease;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
|
||||
.item-image.loaded {
|
||||
opacity: 1;
|
||||
.item-image:hover {
|
||||
transform: scale(1.02);
|
||||
box-shadow: 0 30px 70px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
.info-col {
|
||||
flex: 1;
|
||||
max-width: 35%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
gap: 2rem;
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
.info-header h1 {
|
||||
font-size: 2.2rem;
|
||||
margin: 0 0 0.5rem 0;
|
||||
font-size: 2.4rem;
|
||||
margin: 0 0 0.8rem 0;
|
||||
line-height: 1.2;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.info-header .provider-name {
|
||||
.provider-name {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
display: block;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.tags-section {
|
||||
border-top: 1px solid rgba(255,255,255,0.1);
|
||||
padding-top: 1.5rem;
|
||||
.actions-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
padding: 1rem 1.5rem;
|
||||
border-radius: 99px;
|
||||
font-size: 1.05rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.fav-action {
|
||||
background: rgba(255,255,255,0.08);
|
||||
border: 2px solid rgba(255,255,255,0.2);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.fav-action:hover { background: rgba(255,255,255,0.15); }
|
||||
.fav-action.favorited {
|
||||
background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
|
||||
border-color: #ff6b6b;
|
||||
color: white;
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
.fav-action i { font-size: 1.4rem; }
|
||||
.fav-action.favorited i { animation: heartbeat 1.4s ease infinite; }
|
||||
|
||||
@keyframes heartbeat {
|
||||
0%,100% { transform: scale(1); }
|
||||
50% { transform: scale(1.25); }
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% { box-shadow: 0 0 0 0 rgba(255,107,107,0.4); }
|
||||
70% { box-shadow: 0 0 0 12px rgba(255,107,107,0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); }
|
||||
}
|
||||
|
||||
.download-btn {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.download-btn:hover {
|
||||
background: #7c4dff;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 30px rgba(139,92,246,0.4);
|
||||
}
|
||||
|
||||
.copy-link-btn {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: 2px solid rgba(255,255,255,0.2);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.copy-link-btn:hover { background: rgba(255,255,255,0.18); }
|
||||
|
||||
.tags-section h3 {
|
||||
margin: 0 0 1rem 0;
|
||||
font-size: 1.2rem;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.tag-item {
|
||||
background: rgba(139, 92, 246, 0.2);
|
||||
background: rgba(139,92,246,0.2);
|
||||
color: var(--accent);
|
||||
padding: 0.4rem 0.8rem;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 99px;
|
||||
font-size: 0.9rem;
|
||||
font-size: 0.95rem;
|
||||
text-decoration: none;
|
||||
transition: background 0.2s;
|
||||
transition: all 0.2s;
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.tag-item:hover {
|
||||
background: rgba(139, 92, 246, 0.4);
|
||||
background: rgba(139,92,246,0.4);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.download-btn {
|
||||
padding: 1rem 2rem;
|
||||
background: var(--accent);
|
||||
color: var(--text-primary);
|
||||
border: none;
|
||||
border-radius: var(--radius-md);
|
||||
font-size: 1.1rem;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
transition: background 0.2s, box-shadow 0.2s;
|
||||
margin-top: 1rem; /* Espacio después de las etiquetas */
|
||||
}
|
||||
|
||||
.download-btn:hover {
|
||||
background: #7c4dff;
|
||||
box-shadow: 0 5px 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
|
||||
/* --- Skeleton Styles --- */
|
||||
.item-skeleton {
|
||||
display: flex;
|
||||
gap: 3rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.image-col-skeleton {
|
||||
flex: 2;
|
||||
max-width: 65%;
|
||||
aspect-ratio: 16/9;
|
||||
height: 500px;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--bg-surface);
|
||||
}
|
||||
|
||||
.info-col .provider-skeleton { width: 30%; height: 18px; margin-bottom: 1rem; }
|
||||
.info-col .title-skeleton { width: 90%; height: 36px; margin-bottom: 3rem; }
|
||||
.info-col .tag-label-skeleton { width: 40%; height: 20px; margin-bottom: 1rem; }
|
||||
.info-col .tags-skeleton { width: 80%; height: 50px; margin-bottom: 3rem; }
|
||||
.info-col .download-skeleton { width: 100%; height: 50px; }
|
||||
|
||||
|
||||
/* Media Queries */
|
||||
@media (max-width: 900px) {
|
||||
.item-content, .item-skeleton {
|
||||
flex-direction: column;
|
||||
.item-content-flex-wrapper { flex-direction: column; align-items: center; gap: 2rem; }
|
||||
.info-col { width: 100%; max-width: 600px; }
|
||||
.item-image { max-height: 70vh; }
|
||||
.actions-row { flex-direction: row; }
|
||||
.action-btn { flex: 1; }
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
.actions-row { flex-direction: column; }
|
||||
.action-btn { padding: 0.9rem; font-size: 1rem; }
|
||||
}
|
||||
|
||||
.similar-section {
|
||||
margin-top: 4rem;
|
||||
padding: 2rem 0;
|
||||
border-top: 1px solid rgba(255,255,255,0.1);
|
||||
max-width: 1400px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.similar-section h3 {
|
||||
margin: 0 0 1.5rem 0;
|
||||
font-size: 1.6rem;
|
||||
color: var(--text-primary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.similar-grid {
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
.similar-card {
|
||||
|
||||
height: 180px;
|
||||
border-radius: var(--radius-lg, 16px);
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
box-shadow: 0 8px 25px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.similar-card:hover {
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
.similar-card img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.similar-card:hover img {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.similar-card::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(transparent 60%, rgba(0,0,0,0.7));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.similar-overlay {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 1rem;
|
||||
color: white;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
text-shadow: 0 1px 3px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
position: fixed;
|
||||
top: 5rem; left: 2rem; z-index: 100;
|
||||
display: flex; align-items: center; gap: 0.5rem;
|
||||
padding: 0.8rem 1.5rem;
|
||||
background: var(--glass-bg); backdrop-filter: blur(12px);
|
||||
border: var(--glass-border); border-radius: var(--radius-full);
|
||||
color: white; text-decoration: none; font-weight: 600;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.back-btn:hover { background: rgba(255, 255, 255, 0.15); transform: translateX(-5px); }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.similar-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
padding: 1rem;
|
||||
}
|
||||
.image-col, .info-col, .image-col-skeleton {
|
||||
max-width: 100%;
|
||||
}
|
||||
.item-image {
|
||||
max-height: 80vh; /* Ajustar en móviles */
|
||||
.similar-card { height: 140px; }
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
.similar-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user