forked from SymfonyCasts/symfony6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
assets-copy-in-browse-template.diff
67 lines (66 loc) · 2.63 KB
/
assets-copy-in-browse-template.diff
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
diff --git a/src/Controller/VinylController.php b/src/Controller/VinylController.php
index 04a4634..bf69489 100644
--- a/src/Controller/VinylController.php
+++ b/src/Controller/VinylController.php
@@ -36,8 +36,6 @@ class VinylController extends AbstractController
$title = 'All Genres';
}
- return new Response($title);
-
- //return new Response('Breakup vinyl? Angsty 90s rock? Browse the collection!');
+ return $this->render('vinyl/browse.html.twig');
}
}
diff --git a/templates/vinyl/browse.html.twig b/templates/vinyl/browse.html.twig
new file mode 100644
index 0000000..1a79e24
--- /dev/null
+++ b/templates/vinyl/browse.html.twig
@@ -0,0 +1,47 @@
+{% extends 'base.html.twig' %}
+
+{% block body %}
+<div class="container">
+ <h1>Browse Vinyl Mixes</h1>
+
+ <h2 class="mt-5 mb-4">Filter by Genre</h2>
+ <ul class="genre-list ps-0 mt-2 mb-3">
+ <li class="d-inline">
+ <a class="btn btn-primary btn-sm" href="#">Pop</a>
+ </li>
+ <li class="d-inline">
+ <a class="btn btn-primary btn-sm" href="#">Rock</a>
+ </li>
+ <li class="d-inline">
+ <a class="btn btn-primary btn-sm" href="#">Heavy Metal</a>
+ </li>
+ </ul>
+
+ <div>
+ <h2 class="mt-5">Mixes</h2>
+ <div class="row">
+ <div class="col col-md-4">
+ <div class="mixed-vinyl-container p-3 text-center">
+ <img src="https://via.placeholder.com/300" data-src="https://via.placeholder.com/300" alt="Square placeholder img">
+ <p class="mt-2"><strong>PB & Jams</strong></p>
+ <span>14 Tracks</span> | <span>Rock</span>
+ </div>
+ </div>
+ <div class="col col-md-4">
+ <div class="mixed-vinyl-container p-3 text-center">
+ <img src="https://via.placeholder.com/300" data-src="https://via.placeholder.com/300" alt="Square placeholder img">
+ <p class="mt-2"><strong>Put a Hex on your Ex</strong></p>
+ <span>8 Tracks</span> | <span>Heavy Metal</span>
+ </div>
+ </div>
+ <div class="col col-md-4">
+ <div class="mixed-vinyl-container p-3 text-center">
+ <img src="https://via.placeholder.com/300" data-src="https://via.placeholder.com/300" alt="Square placeholder img">
+ <p class="mt-2"><strong>Spice Grills - Summer Tunes</strong></p>
+ <span>10 Tracks</span> | <span>Pop</span>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+{% endblock %}