Framework for league container put down
This commit is contained in:
@@ -85,7 +85,7 @@ app.use(express.static(path.join(__dirname, 'resources')));
|
||||
Header Scoreboard Routes
|
||||
*************************/
|
||||
|
||||
const fetchMatchesData = require('./resources/routes/navigation-bar/current-match-routes');
|
||||
const fetchMatchesData = require('./resources/routes/navigation-bar/current-match-information');
|
||||
app.use(fetchMatchesData);
|
||||
|
||||
const convert_time = require('./resources/js/navigation-bar/scoreboard-header/convert-time');
|
||||
|
||||
@@ -11,7 +11,7 @@ module.exports = function generateLeagueRoutes(app) {
|
||||
const leagueName = req.params.leagueName;
|
||||
|
||||
// Render the league page template using Handlebars
|
||||
res.render('partials/league-page/league-page', { leagueName: leagueName });
|
||||
res.render('pages/league-page', { leagueName: leagueName });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
22
ProjectSourceCode/src/views/pages/league-page.hbs
Normal file
22
ProjectSourceCode/src/views/pages/league-page.hbs
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="container" id="league-page-body">
|
||||
|
||||
<!-- Container for all league information (logo, name, country, etc. ) <- top 100px -->
|
||||
<div class="container" id="league-information-container">
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Container to display all stats for league <- bottom rest of the container -->
|
||||
<div class="container" id="league-stats-container">
|
||||
|
||||
<!-- Container to display league table -->
|
||||
<div class="container" id="league-table-container">
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Container to display top scorers for league -->
|
||||
<div class="container" id="top-scorers-container">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1 +0,0 @@
|
||||
<h1>Hello</h1>
|
||||
Reference in New Issue
Block a user