Spaces:
Running
Running
File size: 1,524 Bytes
a1f924b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
<!DOCTYPE html>
<html>
<head>
<title>Random Designers</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<style>
body { font-family: Arial, sans-serif; margin: 60px auto; }
h1 { text-align: center; margin-bottom: 30px; }
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
padding: 0 20px;
}
.card {
text-align: center;
cursor: pointer;
}
.card img {
width: 100%;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card span {
display: block;
margin-top: 8px;
font-weight: 500;
font-size: 14px;
}
.home-btn {
position: fixed;
top: 20px;
left: 20px;
background: black;
color: white;
padding: 8px 14px;
border-radius: 6px;
text-decoration: none;
font-weight: bold;
z-index: 1000;
}
</style>
</head>
<body>
<a class="home-btn" href="/">Home</a>
<h1>Random Designers</h1>
<div class="grid">
{% for d in designer_cards %}
<div class="card" onclick="window.location.href='/{{ d.slug }}'">
<img src="{{ d.image_url }}">
<span>{{ d.name }}</span>
</div>
{% endfor %}
</div>
</body>
</html>
|