Styling added to game cards in live scoreboard
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
/* Styling for text at top of the page */
|
/* Styling for text at top of the page */
|
||||||
#leagues-header {
|
#leagues-header {
|
||||||
font-family: 'Golos Text';
|
font-family: 'Scottsdale-Italic';
|
||||||
display: inline-block; /* Ensure the width is based on content */
|
display: inline-block; /* Ensure the width is based on content */
|
||||||
border-bottom: 1.5px solid #999696; /* Adjust the color and thickness as needed */
|
border-bottom: 1.5px solid #999696; /* Adjust the color and thickness as needed */
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/* Add logo font face */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Scottsdale-Italic';
|
||||||
|
src: url('../fonts/Scottsdale-Italic.ttf') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
#navigation-bar-container {
|
#navigation-bar-container {
|
||||||
background-color: hsl(0, 98%, 40%);
|
background-color: hsl(0, 98%, 40%);
|
||||||
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
|
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
|
||||||
@@ -13,11 +19,6 @@
|
|||||||
z-index: 1000; /* Adjust as needed */
|
z-index: 1000; /* Adjust as needed */
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Scottsdale-Italic';
|
|
||||||
src: url('../fonts/Scottsdale-Italic.ttf') format('truetype');
|
|
||||||
}
|
|
||||||
|
|
||||||
#logo {
|
#logo {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|||||||
@@ -1,21 +1,25 @@
|
|||||||
|
.scoreboard-league-container {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#game-card {
|
#game-card {
|
||||||
|
|
||||||
display: inline-block; /* Display cards as inline-block to allow them to sit next to each other */
|
display: inline-block; /* Display cards as inline-block to allow them to sit next to each other */
|
||||||
border: 1px solid #ccc;
|
margin: 0px;
|
||||||
border-radius: 4px;
|
height: 100%;
|
||||||
padding: 6px;
|
background: linear-gradient(to right, white, rgb(245, 245, 245), rgb(227, 227, 227)); /* Gradient from white to gray */
|
||||||
margin: 6px 0px; /* Distance between cards and container */
|
padding: 10px; /* Adjust padding as needed */
|
||||||
margin-left: 5px;
|
position: relative; /* Needed for absolute positioning */
|
||||||
min-width: 150px;
|
overflow: hidden; /* Hide the overflowing skewed content */
|
||||||
|
transform: skewX(-20deg); /* Skew the banner to create a triangular side */
|
||||||
color: rgb(0, 0, 0);
|
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition for smooth transformation and box-shadow */
|
||||||
background-color: rgb(255, 255, 255);
|
cursor: pointer; /* Change cursor to pointer on hover */
|
||||||
border: 1px solid rgb(160, 159, 159);
|
|
||||||
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
|
|
||||||
transition: transform 0.4s ease; /* Add transition for smooth effect */
|
transition: transform 0.4s ease; /* Add transition for smooth effect */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#game-card:hover {
|
#game-card:hover {
|
||||||
transform: scale(1.05); /* Scale up by 10% on hover */
|
transform: scale(1.05); /* Scale up by 10% on hover */
|
||||||
}
|
}
|
||||||
@@ -24,8 +28,9 @@
|
|||||||
.score-card-body {
|
.score-card-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
justify-content: center;
|
justify-content: flex-end
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
transform: skewX(20deg); /* Counter-skew the content to maintain its appearance */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Left Side of Container (Scores) */
|
/* Left Side of Container (Scores) */
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const fetchMatchesData = async (req, res, next) => {
|
|||||||
const today = moment().format('YYYY-MM-DD'); // Get today's date in YYYY-MM-DD format
|
const today = moment().format('YYYY-MM-DD'); // Get today's date in YYYY-MM-DD format
|
||||||
|
|
||||||
// Subtract one day to get yesterday's date
|
// Subtract one day to get yesterday's date
|
||||||
const yesterdayUnformatted = moment().subtract(1, 'days');
|
const yesterdayUnformatted = moment().subtract(3, 'days');
|
||||||
|
|
||||||
// Format yesterday's date as YYYY-MM-DD
|
// Format yesterday's date as YYYY-MM-DD
|
||||||
const yesterday = yesterdayUnformatted.format('YYYY-MM-DD');
|
const yesterday = yesterdayUnformatted.format('YYYY-MM-DD');
|
||||||
|
|||||||
@@ -44,13 +44,6 @@
|
|||||||
<div id="user" class="d-sm-flex">
|
<div id="user" class="d-sm-flex">
|
||||||
<img src="img/navigation-bar/user.png" alt="Your Image" class="img-fluid" style="width: 30px;">
|
<img src="img/navigation-bar/user.png" alt="Your Image" class="img-fluid" style="width: 30px;">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
|
||||||
/* CSS to hide the user icon when navbar toggler is expanded */
|
|
||||||
.navbar-toggler:(.collapsed) + .collapse #user {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="card" id="game-card">
|
<div class="game-card" id="game-card">
|
||||||
<div class="score-card-body">
|
<div class="score-card-body">
|
||||||
|
|
||||||
<!-- Left side (70%) -->
|
<!-- Left side (70%) -->
|
||||||
|
|||||||
Reference in New Issue
Block a user