New stylesheets added for club pages
This commit is contained in:
66
ProjectSourceCode/src/resources/css/club-pages/club-page.css
Normal file
66
ProjectSourceCode/src/resources/css/club-pages/club-page.css
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
#club-page-body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#club-information-container {
|
||||||
|
height: 100px;
|
||||||
|
width: fit-content;
|
||||||
|
margin: 20px;
|
||||||
|
background: linear-gradient(to right, white, rgb(245, 245, 245), rgb(227, 227, 227)); /* Gradient from white to gray */
|
||||||
|
padding: 10px 20px; /* Adjust padding as needed */
|
||||||
|
transform: skewX(-20deg); /* Skew the banner to create a triangular side */
|
||||||
|
cursor: pointer; /* Change cursor to pointer on hover */
|
||||||
|
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
|
||||||
|
|
||||||
|
display: flex; /* Use flexbox for layout */
|
||||||
|
align-items: center; /* Center content vertically */
|
||||||
|
|
||||||
|
/* Add any other styling you need for the club information container */
|
||||||
|
}
|
||||||
|
|
||||||
|
#club-information-container::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: 8px; /* Width of the red strip */
|
||||||
|
background-color: red; /* Red color */
|
||||||
|
}
|
||||||
|
|
||||||
|
#club-logo {
|
||||||
|
margin: 0px 30px;
|
||||||
|
transform: skewX(20deg); /* Skew the banner to create a triangular side */
|
||||||
|
}
|
||||||
|
|
||||||
|
#club-title {
|
||||||
|
transform: skewX(20deg); /* Skew the banner to create a triangular side */
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#club-flag {
|
||||||
|
|
||||||
|
transform: skewX(20deg); /* Skew the banner to create a triangular side */
|
||||||
|
height: 20px;
|
||||||
|
margin-right: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#club-stats-container {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#club-stats-container .container {
|
||||||
|
margin: 0 10px;
|
||||||
|
|
||||||
|
background-color: #eaeaea; /* Example background color */
|
||||||
|
|
||||||
|
border: 1px solid gray;
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
|
||||||
|
/* Add any other styling you need for the club table container */
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#club-top-scorers-container {
|
||||||
|
flex: 1;
|
||||||
|
background-color: #dcdcdc; /* Example background color */
|
||||||
|
width: 40%;
|
||||||
|
/* Add any other styling you need for the top scorers container */
|
||||||
|
}
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
width: 20px;
|
width: 20px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transform: skewX(0deg); /* Skew the banner to create a triangular side */
|
||||||
}
|
}
|
||||||
|
|
||||||
#club-name {
|
#club-name {
|
||||||
@@ -1,19 +1,21 @@
|
|||||||
<div class="container" id="league-page-body">
|
<div class="container" id="club-page-body">
|
||||||
|
|
||||||
<!-- Container for all league information (logo, name, country, etc. ) <- top 100px -->
|
<!-- Container for all club information (logo, name, country, etc. ) <- top 100px -->
|
||||||
<div class="container" id="league-information-container">
|
<div class="container" id="club-information-container">
|
||||||
|
<img id="club-logo" src="{{club.crest}}" alt="{{club.name}} Emblem">
|
||||||
|
<h1 id="club-title">{{club.name}}</h2>
|
||||||
|
<img id="club-flag" src="{{club.area.club_flag}}" alt="{{club.clubData.name}} Flag">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Container to display all stats for club <- bottom rest of the container -->
|
||||||
|
<div class="container" id="club-stats-container">
|
||||||
|
|
||||||
|
<!-- Container to display club table <- split 50% -->
|
||||||
|
<div class="container" id="club-players-container">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Container to display all stats for league <- bottom rest of the container -->
|
<!-- Container to display top scorers for club <- Split 50% -->
|
||||||
<div class="container" id="league-stats-container">
|
|
||||||
|
|
||||||
<!-- Container to display league table <- split 50% -->
|
|
||||||
<div class="container" id="league-table-container">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Container to display top scorers for league <- Split 50% -->
|
|
||||||
<div class="container" id="top-scorers-container">
|
<div class="container" id="top-scorers-container">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -22,9 +22,14 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="/css/homepage/homepage.css">
|
<link rel="stylesheet" type="text/css" href="/css/homepage/homepage.css">
|
||||||
|
|
||||||
<!-- League Page Stylesheets -->
|
<!-- League Page Stylesheets -->
|
||||||
<link rel="stylesheet" type="text/css" href="/css/league-page/league-page.css">
|
<link rel="stylesheet" type="text/css" href="/css/league-pages/league-page.css">
|
||||||
<link rel="stylesheet" type="text/css" href="/css/league-page/league-table.css">
|
<link rel="stylesheet" type="text/css" href="/css/league-pages/league-table.css">
|
||||||
<link rel="stylesheet" type="text/css" href="/css/league-page/top-scorers.css">
|
<link rel="stylesheet" type="text/css" href="/css/league-pages/top-scorers.css">
|
||||||
|
|
||||||
|
<!-- League Page Stylesheets -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/club-pages/club-page.css">
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/club-pages/players-table.css">
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/club-pages/club-top-scorers.css">
|
||||||
|
|
||||||
<title>Group 6 Final Project</title>
|
<title>Group 6 Final Project</title>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user