This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| section { | |
| padding: .5rem 2rem; | |
| margin: 1rem auto; | |
| color: #272727; | |
| } | |
| section h3 { | |
| padding: 2rem 0 0.5rem; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .hero { | |
| background: url('../assets/images/ext.jpeg'); | |
| background-size: cover; | |
| background-position: center center; | |
| height: 20rem; | |
| } | |
| .overlay { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| padding: 0; | |
| margin: 0; | |
| } | |
| body { | |
| font-family: Arial, Helvetica, sans-serif; | |
| background: #f3f3f3; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <header> | |
| <div class="hero"> | |
| <div class="overlay"> | |
| <h2>Learn new sticky tricks</h2> | |
| </div> | |
| </div> | |
| </header> | |
| <nav> | |
| <ul> | |
| <li class="logo"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| … | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <script src="main.js"></script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express') | |
| const bodyParser = require('body-parser') | |
| const mongoose = require('mongoose') | |
| const cors = require('cors') | |
| require('dotenv').config() | |
| // import routes | |
| const default = require('./routes/welcome') | |
| const app = express() | |
| const port = process.env.PORT || 5000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express') | |
| const router = express.Router() | |
| // create a route for default endpoint | |
| router.get('/', (req, res) => { | |
| res.json({ | |
| message: 'Welcome to the server-side' | |
| }) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express') | |
| const bodyParser = require('body-parser') | |
| const mongoose = require('mongoose') | |
| const cors = require('cors') | |
| require('dotenv').config() | |
| const app = express() | |
| const port = process.env.PORT || 5000 | |
| // Connect to the database |