File size: 2,896 Bytes
a1f924b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84782e7
 
 
 
a1f924b
 
 
84782e7
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
    <title>Fashion Library</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <style>
        body { text-align: center; margin: 60px auto; font-family: Arial; }
        h1 { font-size: 36px; margin-bottom: 20px; }
        form { margin-bottom: 20px; }
        input[type="text"] {
            padding: 10px;
            width: 300px;
            font-size: 16px;
            border-radius: 6px;
            border: 1px solid #ccc;
        }
        button {
            padding: 10px 20px;
            font-size: 16px;
            border: none;
            background-color: black;
            color: white;
            border-radius: 6px;
            cursor: pointer;
            margin-left: 10px;
        }
        .suggestions { margin-top: 20px; }
        .suggestions p { font-size: 18px; }
        .suggestions ul { list-style: none; padding: 0; }
        .suggestions li { margin: 5px 0; }
    </style>
</head>
<body>
    <h1>Fashion Library</h1>
    <p style="font-style: italic; color: #666;">1,749 Designers | 25,876 Collections | 934,735 Images</p>
    <form method="GET">
        <input type="text" name="designer" placeholder="Search for a designer..." value="{{ query }}">
        <button type="submit">Search</button>
    </form>

    {% if suggestions %}
        <div class="suggestions">
            <p>No exact match. Did you mean:</p>
            <ul>
                {% for name in suggestions %}
                    <li><a href="/{{ name | replace(' ', '-') }}">{{ name }}</a></li>
                {% endfor %}
            </ul>
        </div>
    {% endif %}


    <div class="button-row">
        <a href="/all-designers" class="nav-button">All Designers</a>
        <a href="/random-designers" class="nav-button">Explore Random Designers</a>
        <a href="/random-shows" class="nav-button">Explore Random Shows</a>
    </div>



    <div class="grid" style="padding: 0 20px; margin-bottom: 40px;">
        {% for d in designer_cards %}
            <div class="card" onclick="window.location.href='/{{ d.slug }}'" style="cursor:pointer; text-align:center;">
                <img src="{{ d.image_url }}" style="width:100%; border-radius:8px;">
                <div style="margin-top: 8px; font-weight: 500;">{{ d.name }}</div>
            </div>
        {% endfor %}
    </div>

    <div class="grid" style="padding: 0 20px;">
        {% for show in show_cards %}
            <div class="card" onclick="window.location.href='{{ show.link }}'" style="cursor:pointer; text-align:center;">
                <img src="{{ show.image_url }}" style="width:100%; border-radius:8px;">
                <div style="margin-top: 8px; font-weight: 500;">{{ show.designer }}<br><span style="font-weight: 400;">{{ show.show }}</span></div>
            </div>
        {% endfor %}
    </div>


    
</body>
</html>