More changes to layout and code implementation on club page template and its CSS. All cards and their child container are now implemented with a corresponding class to their purpose. This make styling consistenly much easier and consistent

This commit is contained in:
Lucas Patenaude
2024-04-16 13:41:40 -06:00
parent 2f0b12663a
commit c5336b6bae
3 changed files with 39 additions and 36 deletions

View File

@@ -31,7 +31,7 @@
*/ */
/* Adds Red Diagonal Strip at the end of the #club-information-container */ /* Adds Red Diagonal Strip at the end of the #club-information-container */
#club-information-container::after { #club-header-container::after {
content: ''; content: '';
position: absolute; position: absolute;
top: 0; top: 0;
@@ -76,7 +76,7 @@
} }
/* Styling for Standings and Top Scorers Cards */ /* Styling for Standings and Top Scorers Cards */
#club-information-table-container, #club-competitions-table-container, #club-stats-and-players-container .card-container
{ {
/* --- POSITION CONTAINER --- */ /* --- POSITION CONTAINER --- */
margin: 0 10px; margin: 0 10px;

View File

@@ -7,20 +7,20 @@
<img id="club-flag" src="{{club.area.club_flag}}" alt="{{club.name}} Flag"> <img id="club-flag" src="{{club.area.club_flag}}" alt="{{club.name}} Flag">
</div> </div>
<div id="club-page-contents-container" class="information-container"> <div id="club-page-contents-container" class="page-content-container">
<!-- Container on Left Side containing Club Information --> <!-- Container on Left Side containing Club Information -->
<div id="club-information-container" class="information-container"> <div id="club-information-container" class="page-content-container">
<!-- Container for Club History Information --> <!-- Container for Club History Information -->
<div id="club-history-container" class="information-container"> <div id="club-history-container" class="content-container">
<div id="club-information-table-header"> <div id="club-information-table-header">
<h2>Information</h2> <h2>Information</h2>
</div> </div>
<!-- Club Information --> <!-- Club Information -->
<div id="club-information-table-container" class="information-container"> <div id="club-information-table-container" class="card-container">
<table id="club-information-table"> <table id="club-information-table">
<tbody> <tbody>
<!-- Club Address Container --> <!-- Club Address Container -->
@@ -56,13 +56,13 @@
</div> <!-- End of Club History Container --> </div> <!-- End of Club History Container -->
<!-- Container to Display Club's Current Competitions --> <!-- Container to Display Club's Current Competitions -->
<div id="club-current-competitions-container"> <div id="club-competitions-container" class="content-container">
<div id="club-players-table-header"> <div id="club-competitions-table-header">
<h2>Competitions</h2> <h2>Competitions</h2>
</div> </div>
<div id="club-competitions-table-container"> <div id="club-competitions-table-container" class="card-container">
<table id="club-competitions-table"> <table id="club-competitions-table">
<thead> <thead>
<tr> <tr>
@@ -83,13 +83,16 @@
</div> <!-- End of Club Information Container (Left 20%) --> </div> <!-- End of Club Information Container (Left 20%) -->
<!-- Container on Right Side containing Club Stats --> <!-- Container on Right Side containing Club Stats -->
<div id="club-stats-and-players-container" class="stats-container"> <div id="club-stats-and-players-container" class="page-section-container">
<!-- Club Player Container --> <!-- Club Player Container -->
<div id="club-players-container" class="stats-container"> <div id="club-players-container" class="content-container">
<div id="club-players-table-header" class="content-container">
<h2>Players</h2> <h2>Players</h2>
</div>
<div id="club-players-table-container" class="card-container">
<table id="club-players-table"> <table id="club-players-table">
<thead> <thead>
<tr> <tr>
@@ -110,8 +113,8 @@
{{/each}} {{/each}}
</tbody> </tbody>
</table> </table>
</div> <!-- End of Club Players Table Container -->
</div> <!-- End of Club Player Table Container --> </div> <!-- End of Club Players Container -->
</div> <!-- End of Club Stats Container --> </div> <!-- End of Club Stats Container -->

View File

@@ -1,6 +1,6 @@
<div class="container mt-5" id="page-container"> <div class="container mt-5" id="page-container">
<h1 class="mb-4 underlined-header" id="leagues-header">Leagues</h1> <h1 class="mb-4 underlined-header" id="leagues-header">Leagues</h1>
<div class="card-container"> <div id="league-cards-container" class="page-section-container">
<div class="row g-3" id="card-row"> <div class="row g-3" id="card-row">
<!-- 🇬🇧 Premier League --> <!-- 🇬🇧 Premier League -->
<a href="#" onclick="redirectToLeaguePage('2021')" class="card-link" id="league-card"> <a href="#" onclick="redirectToLeaguePage('2021')" class="card-link" id="league-card">