1- < div class ="hero_section ">
1+ < div class ="featured_playlists_section ">
22 {{/*
33 < h1 > {{ .Title }}</ h1 >
44 */}}
5- < div class ="hero -cards ">
5+ < div class ="featured_playlists -cards ">
66 {{ range where .Site.RegularPages "Type" "playlists" }} {{ partial
7- "hero_card .html" . }} {{ end }}
7+ "featured_playlists_card .html" . }} {{ end }}
88 {{/* {{ range where (where .Site.RegularPages "Type" "playlists") "Params.featured_playlist" true }}
9- {{ partial "hero_card .html" . }} */}}
9+ {{ partial "featured_playlists_card .html" . }} */}}
1010 {{/* {{ range where .Site.RegularPages "Params.featured_playlist" true }}
11- {{ partial "hero_card .html" . }}
11+ {{ partial "featured_playlists_card .html" . }}
1212{{ end }} */}}
1313
1414 </ div >
1515</ div >
1616
1717< style >
18- .hero_section {
18+ .featured_playlists_section {
1919 background-color : # f0f0f0 ; /* Example background color */
2020 text-align : center;
2121 padding : 0px ;
2222 }
2323
24- .hero_section h1 {
24+ .featured_playlists_section h1 {
2525 font-size : 2.5rem ;
2626 margin-bottom : 10px ;
2727 }
2828
29- .hero -cards {
29+ .featured_playlists -cards {
3030 display : flex; /* Makes the cards line up horizontally */
3131 overflow-x : scroll; /* Enables horizontal scrolling */
3232 flex-wrap : nowrap; /* Prevents wrapping to the next line */
@@ -39,43 +39,43 @@ <h1>{{ .Title }}</h1>
3939 }
4040
4141 /* For WebKit browsers (Chrome, Safari) */
42- .hero -cards ::-webkit-scrollbar {
42+ .featured_playlists -cards ::-webkit-scrollbar {
4343 height : 10px ;
4444 }
4545
46- .hero -cards ::-webkit-scrollbar-track {
46+ .featured_playlists -cards ::-webkit-scrollbar-track {
4747 background : # f1f1f1 ;
4848 border-radius : 10px ;
4949 }
5050
51- .hero -cards ::-webkit-scrollbar-thumb {
51+ .featured_playlists -cards ::-webkit-scrollbar-thumb {
5252 background : # ffffff ;
5353 border-radius : 10px ;
5454 }
5555
56- .hero -cards ::-webkit-scrollbar-thumb : hover {
56+ .featured_playlists -cards ::-webkit-scrollbar-thumb : hover {
5757 background : # ffffff ;
5858 }
5959
6060 /* For WebKit browsers (Chrome, Safari) */
61- .hero -cards ::-webkit-scrollbar {
61+ .featured_playlists -cards ::-webkit-scrollbar {
6262 display : none; /* Hides the scrollbar */
6363 width : 0 ; /* Hides the scrollbar */
6464 height : 0 ; /* Hides the scrollbar */
6565 scrollbar-width : none; /* For Firefox */
6666 }
6767
68- .hero -card {
68+ .featured_playlists -card {
6969 flex-shrink : 0 ; /* Prevents the card from shrinking */
7070 width : 300px ; /* Gives the card a fixed width */
7171 height : 100% ;
7272 }
7373 /*
74- The hero_card .html partial would need its own styling to define
74+ The featured_playlists_card .html partial would need its own styling to define
7575 the card's appearance (e.g., width, padding, box-shadow, etc.).
7676 For example:
7777
78- .hero_card {
78+ .featured_playlists_card {
7979 flex-shrink: 0; // Prevents cards from shrinking
8080 width: 300px;
8181 background-color: white;
@@ -90,19 +90,19 @@ <h1>{{ .Title }}</h1>
9090 /* -------------------- */
9191
9292 @media (max-width : 768px ) {
93- .hero -cards {
93+ .featured_playlists -cards {
9494 padding-left : 16px ;
9595 padding-top : 20px ;
9696 }
97- .hero -card {
97+ .featured_playlists -card {
9898 aspect-ratio : 4 / 3 ;
9999 }
100100 }
101101</ style >
102102
103103< script >
104104 // Get the container for the cards
105- const cardContainer = document . querySelector ( ".hero -cards" ) ;
105+ const cardContainer = document . querySelector ( ".featured_playlists -cards" ) ;
106106
107107 // Get the width of a single card plus the gap
108108 const cardWidth = 300 ;
0 commit comments