diff --git a/app.js b/app.js index e69de29..a11f4b1 100644 --- a/app.js +++ b/app.js @@ -0,0 +1,30 @@ +const express = require('express'); +const path = require('path'); + +const app = express(); +const PORT = process.env.PORT || 3000; + +// Serve static files from the public directory +app.use(express.static(path.join(__dirname, 'public'))); + +// Define routes for each page +app.get('/', (req, res) => { + res.sendFile(path.join(__dirname, 'views', 'Home.html')); +}); + +app.get('/about', (req, res) => { + res.sendFile(path.join(__dirname, 'views', 'About.html')); +}); + +app.get('/works', (req, res) => { + res.sendFile(path.join(__dirname, 'views', 'Works.html')); +}); + +app.get('/gallery', (req, res) => { + res.sendFile(path.join(__dirname, 'views', 'PhotoGallery.html')); +}); + +// Start the server +app.listen(PORT, () => { + console.log(`Server is running on port ${PORT}`); +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..a54d916 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "lab-express-basic", + "version": "1.0.0", + "description": "", + "main": "app.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "express": "^4.18.2" + } +} diff --git a/views/About.html b/views/About.html new file mode 100644 index 0000000..df20515 --- /dev/null +++ b/views/About.html @@ -0,0 +1,47 @@ + + + + + Document + + + + + + +
+ + +
+ +
+
+
+

About

+

+ Continuously delivering thumping beats and hypnotic records, 23-year old Norwegian DJ and Producer Alan Walker is truly a force to be reckoned with. With over 115 million followers across his social platforms, 8.7 billion YouTube views, and a staggering 50 billion audio and video streams, the young artist from Bergen, Norway is nowhere near kicking his feet up anytime soon. Alan Walker arrived on the music scene in late 2015 with his debut hit single Faded, garnering over a 1,3 billion Spotify streams and a massive 2,9 billion YouTube video views. Being the 19th most-watched music video on YouTube, the single also left him with a BRIT awards nomination for Song of the Year, as well as a Norwegian Grammy win in the same category. After building a massive social-following and releasing a string of successful singles like Alone and Darkside, collaborating with artists like Ava Max, Noah Cyrus, Sia, Bruno Mars and Coldplay, the chart-topping debut album Different World arrived in late 2018, amassing over 3,2 billion streams on Spotify. While holding a pristine track record, Alan has played over 600 headlining shows and festivals to date, including Coachella and Tomorrowland, in addition to selling out his worldwide arena tours Aviation Tour. In 2021 Alan is upping the ante with astonishing new music and visuals, so buckle up, + cause he’s just getting started. + + +

+ + +
+ +
+ +
+
+ +
+ + + \ No newline at end of file diff --git a/views/Home.html b/views/Home.html new file mode 100644 index 0000000..c8278db --- /dev/null +++ b/views/Home.html @@ -0,0 +1,38 @@ + + + + + + + About Alan Walker + + + + + +
+ + +
+
+

Alan Olav Walker is a British-Norwegian DJ and record producer. He is best known for his single "Faded", which received platinum certifications in over 10 different countries.

+

Walker was born in Northampton, England, but moved to Bergen, + Norway, with his Norwegian mother and British father at the age of two. + He grew up in the digital era, and began producing music on his laptop at age 14. +

+ ban1 + +
+ + + + diff --git a/views/PhotoGallary.html b/views/PhotoGallary.html new file mode 100644 index 0000000..314a474 --- /dev/null +++ b/views/PhotoGallary.html @@ -0,0 +1,34 @@ + + + + + Document + + + +
+ + +
+
+
+

Hello To The World!

+ +

Stuff From Tommorrow Land

+ +

Stuff From UAE

+ + +
+
+ + + \ No newline at end of file diff --git a/views/Works.html b/views/Works.html new file mode 100644 index 0000000..bb29129 --- /dev/null +++ b/views/Works.html @@ -0,0 +1,86 @@ + + + + + Document + + + + +
+ + +
+
+
+ + +
+
+

Faded

+ + +

ON MY WAY

+ + +
+ + + + +
+ + +
+
1 / 3
+ +
Caption Text
+
+ +
+
2 / 3
+ +
Caption Two
+
+ +
+
3 / 3
+ +
Caption Three
+
+ + + + +
+
+ + +
+ + + +
+ + + + + +
+ + + \ No newline at end of file diff --git a/views/public/About.css b/views/public/About.css new file mode 100644 index 0000000..b0afa17 --- /dev/null +++ b/views/public/About.css @@ -0,0 +1,51 @@ +body{ + background-image: url(""); + background-color: rgb(13, 12, 49); +} + + +main p { + font-family:fantasy; + font-weight: 500; + font-size: 25px; + float: left; + color:rgb(137, 126, 142) +} + +main h2{ + font-family:fantasy; + font-size: xx-large; + font-weight: 700; + color: blanchedalmond; + +} + +.right{ + + float: right; + padding-right: 40px ; + + +} + +.right img{ + width: 500px; + border-radius: 20px; + margin-top: 70px; +} + +.left{ + float:left; + padding-left:30px; + max-width: 600px; + line-height: 150%; + +} + +.container{ + display: -ms-grid; + display: grid;-ms-grid-columns: (1fr)[4]; + grid-template-columns: repeat(4, 1fr); + grid-auto-flow: row; + gap: 40px; +} \ No newline at end of file diff --git a/views/public/Home.css b/views/public/Home.css new file mode 100644 index 0000000..e69de29 diff --git a/views/public/Works.css b/views/public/Works.css new file mode 100644 index 0000000..9d7c91a --- /dev/null +++ b/views/public/Works.css @@ -0,0 +1,87 @@ +* {box-sizing:border-box} + +/* Slideshow container */ +.slideshow-container { + max-width: 1000px; + position: relative; + margin: auto; +} + +/* Hide the images by default */ +.mySlides { + display: none; +} + +/* Next & previous buttons */ +.prev, .next { + cursor: pointer; + position: absolute; + top: 50%; + width: auto; + margin-top: -22px; + padding: 16px; + color: white; + font-weight: bold; + font-size: 18px; + transition: 0.6s ease; + border-radius: 0 3px 3px 0; + user-select: none; +} + +/* Position the "next button" to the right */ +.next { + right: 0; + border-radius: 3px 0 0 3px; +} + +/* On hover, add a black background color with a little bit see-through */ +.prev:hover, .next:hover { + background-color: rgba(0,0,0,0.8); +} + +/* Caption text */ +.text { + color: #f2f2f2; + font-size: 15px; + padding: 8px 12px; + position: absolute; + bottom: 8px; + width: 100%; + text-align: center; +} + +/* Number text (1/3 etc) */ +.numbertext { + color: #f2f2f2; + font-size: 12px; + padding: 8px 12px; + position: absolute; + top: 0; +} + +/* The dots/bullets/indicators */ +.dot { + cursor: pointer; + height: 15px; + width: 15px; + margin: 0 2px; + background-color: #bbb; + border-radius: 50%; + display: inline-block; + transition: background-color 0.6s ease; +} + +.active, .dot:hover { + background-color: #717171; +} + +/* Fading animation */ +.fade { + animation-name: fade; + animation-duration: 1.5s; +} + +@keyframes fade { + from {opacity: .4} + to {opacity: 1} +} \ No newline at end of file diff --git a/views/public/alan-walker-dj-night-3d-919x517.jpg b/views/public/alan-walker-dj-night-3d-919x517.jpg new file mode 100644 index 0000000..cda7dc8 Binary files /dev/null and b/views/public/alan-walker-dj-night-3d-919x517.jpg differ diff --git a/views/public/alan-walker-famous-dj-c8.jpg b/views/public/alan-walker-famous-dj-c8.jpg new file mode 100644 index 0000000..3d558e7 Binary files /dev/null and b/views/public/alan-walker-famous-dj-c8.jpg differ diff --git a/views/public/alanwalkerlogo.png b/views/public/alanwalkerlogo.png new file mode 100644 index 0000000..43952c6 Binary files /dev/null and b/views/public/alanwalkerlogo.png differ diff --git a/views/public/style.css b/views/public/style.css new file mode 100644 index 0000000..39ae831 --- /dev/null +++ b/views/public/style.css @@ -0,0 +1,74 @@ +body { + margin: 0; + padding: 0; + background-image: url('/alan-walker-drone.jpg'); /* Set the background image */ + background-size: cover; /* Cover the entire viewport */ + background-position: center; /* Center the background image */ +} +header { + padding: 60px; + text-align: center; + background-color: rgb(19, 30, 31); + + background-image: url('./public/alanwalkerlogo.png'); /* Add a semi-transparent black background for better readability */ +} + + + + + +main { + padding: 20px; + + text-align: center; + + +} + +main p{ + color: #020318; + font-family:Arial, Helvetica, sans-serif; +} + +nav{ + background-color: rgb(55, 61, 61); + display:flex; + border-radius: 5px; + +} + +ul{ + list-style-type:none; + margin:0; + padding:0; + overflow:hidden; + border: 1px solid transparent; + display:flex; + +} +li{ + float:left; + + +} + + +li a{ + text-decoration: none; + padding: 14px 16px; + display:block; + color:azure; + + +} + +li a.Active{ + color:rgb(239, 86, 16); + background-color:rgb(8, 40, 21); + +} + +li a:hover:not(.Active) { + background-color: #56615f; + } + \ No newline at end of file