200 lines
3.3 KiB
CSS
200 lines
3.3 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
|
Ubuntu, Cantarell, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
color: white;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 300;
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.control-btn {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
color: white;
|
|
border-radius: 50%;
|
|
width: 60px;
|
|
height: 60px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.control-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: scale(1.1);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.control-btn.active {
|
|
background: rgba(16, 172, 132, 0.8);
|
|
border-color: #10ac84;
|
|
box-shadow: 0 4px 15px rgba(16, 172, 132, 0.4);
|
|
}
|
|
|
|
.photo-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 20px;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.photo-card {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border-radius: 15px;
|
|
overflow: hidden;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
transition: all 0.3s ease;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.photo-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.photo-container {
|
|
position: relative;
|
|
height: 200px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.photo-container img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.photo-container:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.photo-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(
|
|
45deg,
|
|
rgba(102, 126, 234, 0.8),
|
|
rgba(118, 75, 162, 0.8)
|
|
);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.photo-container:hover .photo-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.photo-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 8px 16px;
|
|
border: 2px solid white;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
border-radius: 20px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
transition: all 0.2s ease;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
background: white;
|
|
color: #667eea;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.delete-btn {
|
|
border-color: #ff6b6b;
|
|
background: rgba(255, 107, 107, 0.3);
|
|
}
|
|
|
|
.delete-btn:hover {
|
|
background: #ff6b6b;
|
|
color: white;
|
|
}
|
|
|
|
.photo-info {
|
|
padding: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.photo-date {
|
|
color: #2c3e50;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.empty-state {
|
|
grid-column: 1 / -1;
|
|
text-align: center;
|
|
color: white;
|
|
padding: 60px 20px;
|
|
}
|
|
|
|
.empty-state h2 {
|
|
font-size: 1.8rem;
|
|
margin-bottom: 10px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.empty-state p {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.photo-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.header {
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
}
|