Update to file structure. Every element is now in a navigation-bar folder

This commit is contained in:
Lucas Patenaude
2024-04-05 00:00:07 -06:00
parent bf50d86d82
commit 58d09a0040
11 changed files with 14 additions and 13 deletions

View File

@@ -82,10 +82,10 @@ app.use(express.static(path.join(__dirname, 'resources')));
Header Scoreboard Routes
*************************/
const fetchMatchesData = require('./resources/js/scoreboard-header/current-match-routes');
const fetchMatchesData = require('./resources/js/navigation-bar/scoreboard-header/current-match-routes');
app.use(fetchMatchesData);
const convert_time = require('./resources/js/scoreboard-header/convert-time');
const convert_time = require('./resources/js/navigation-bar/scoreboard-header/convert-time');
app.use(convert_time);

View File

@@ -8,9 +8,9 @@
margin-left: 5px;
min-width: 150px;
color: white;
background-color: rgb(67, 66, 66);
border: 2px solid rgb(52, 52, 52);
color: rgb(0, 0, 0);
background-color: rgb(255, 255, 255);
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 */

View File

@@ -1,13 +1,14 @@
.scoreboard-container {
overflow-x: auto; /* Enable horizontal scrolling */
white-space: nowrap; /* Prevent cards from wrapping to the next line */
border: 1px solid rgb(202, 2, 2);
background-color: rgb(98, 97, 97);
background-color: rgb(255, 255, 255);
/* Inner box shadow */
box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
box-shadow: inset 0px 0px 15px rgba(77, 76, 76, 0.3);
}
.league-container {
display: inline-block; /* Change display property to inline-block to prevent stretching */
display: inline-block; /* Change display property to inline-block to prevent stretching */
}

View File

@@ -6,10 +6,10 @@
</head>
<body>
<!-- Render the scoreboard header on every page -->
{{> scoreboard-header/scoreboard-header}}
{{> navigation-bar/scoreboard-header/scoreboard-header}}
<!-- Add your navigation -->
{{> nav}}
{{> navigation-bar/nav}}
<!-- Render the main content of each page -->
{{{body}}}

View File

@@ -7,8 +7,8 @@
<link rel="stylesheet" type="text/css" href="css/home-screen.css">
<!-- Scoreboard Header Stylesheets -->
<link rel="stylesheet" type="text/css" href="css/scoreboard-header/scoreboard.css">
<link rel="stylesheet" type="text/css" href="css/scoreboard-header/game-card.css">
<link rel="stylesheet" type="text/css" href="css/navigation-bar/scoreboard-header/scoreboard.css">
<link rel="stylesheet" type="text/css" href="css/navigation-bar/scoreboard-header/game-card.css">
<title>Group 6 Final Project</title>

View File

@@ -3,7 +3,7 @@
<!-- Iterate over matches and insert a game card for each -->
{{#each matches}}
{{> scoreboard-header/game-card}}
{{> navigation-bar/scoreboard-header/game-card}}
{{/each}}
</div>