Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -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}`);
});
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "lab-express-basic",
"version": "1.0.0",
"description": "<img src=\"https://imgur.com/XOS1Vdh.png\" width=\"150px\" height=\"150px\">",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.18.2"
}
}
47 changes: 47 additions & 0 deletions views/About.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel= "stylesheet" href="../Home.css" />
<link rel= "stylesheet" href="./public/style.css" />
<link rel="stylesheet" href="./public/About.css" />

</head>
<body>
<header>
<nav>
<ul>
<li><a href="./Home.html">Home</a></li>
<li><a href="./About.html" class="Active">About</a></li>
<li><a href="./PhotoGallary.html">Photo Galary</a></li>
<li><a href="./Works.html">Works</a></li>
</ul>

</nav>

</header>

<main>
<div>
<div class="left">
<h2>About</h2>
<p>
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.


</p>


</div>

<div class="right">
<img src="https://alanwalker.com/wp-content/themes/alanwalker/assets/images/about.png" alt="">
</div>
</div>

</main>

</body>
</html>
38 changes: 38 additions & 0 deletions views/Home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!-- about.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Alan Walker</title>
<link rel="stylesheet" href="./public/Home.css"/>
<link rel= "stylesheet" href="./public/style.css" />

</head>
<body>
<header>

<nav>

<ul>
<li><a class="Active" href="/">Home</a></li>
<li><a href="./About.html">About</a></li>

<li><a href="./Works.html">Works</a></li>
<li><a href="./PhotoGallary.html">Photo Gallery</a></li>
</ul>
</nav>
</header>
<main>
<p>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.</p>
<p>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.
</p>
<img src="./public/alan-walker-dj-night-3d-919x517.jpg" alt="ban1"/>

</main>
</body>
</html>

<!-- Similar content for home.html, works.html, and gallery.html -->
34 changes: 34 additions & 0 deletions views/PhotoGallary.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel= "stylesheet" href="./public/style.css" />
</head>
<body>
<header>

<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="./About.html">About</a></li>
<li><a href="./Works.html">Works</a></li>
<li><a class="Active" href="./PhotoGallary.html">Photo Gallery</a></li>
</ul>
</nav>
</header>
<main>
<div>
<h1>Hello To The World!</h1>
<img src="https://media.gettyimages.com/id/871338404/photo/new-york-ny-dj-and-record-producer-alan-walker-visits-siriusxm-studios-on-november-7-2017-in.jpg?s=612x612&w=0&k=20&c=qyq3MsMZd2kIZgzfXT-3_BYwfSRkvko_yzf81L-FmuM=" alt=""/>
<h1>Stuff From Tommorrow Land</h1>
<img src="https://media.gettyimages.com/id/949293402/photo/indio-ca-alan-walker-performs-onstage-during-the-2018-coachella-valley-music-and-arts-festival.
jpg?s=612x612&w=0&k=20&c=jg0-XtYY4xBtFdCCzqo8A45fcw65hda1AXnc_amcHHI=" alt=""/>
<h1>Stuff From UAE</h1>
<img src="https://media.gettyimages.com/id/1404063996/photo/fredrikstad-norwayalan-walker-performs-at-idyll-festival-at-isegran-on-june-18-2022-in.jpg?s=612x612&w=0&k=20&c=aioVXwP_wuO8l2LxP_h0FOeC3wtUiF_5j2gpU2khPtY=" alt=""/>

</div>
</main>

</body>
</html>
86 changes: 86 additions & 0 deletions views/Works.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel= "stylesheet" href="./public/style.css" />
<link rel="stylesheet" href="./public/Works.css" />
</head>
<body>
<header>

<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="./About.html">About</a></li>
<li><a class="Active" href="./Works.html">Works</a></li>
<li><a href="./PhotoGallary.html">Photo Gallery</a></li>
</ul>
</nav>
</header>
<main>
<div class="yt-aw">
<iframe id="yt-player" src="https://www.youtube.com/embed/5JRs76bOy2w"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" style="width:60vw;min-width:400px;aspect-ratio:16 / 9;"></iframe>

</div>
<div>
<h1>Faded</h1>
<iframe id="yt-player" src="https://www.youtube.com/embed/60ItHLz5WEA"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media;
gyroscope; picture-in-picture" allowfullscreen="" style="width:60vw;min-width:400px;aspect-ratio:16 / 9;">
</iframe>

<h1>ON MY WAY</h1>
<iframe id="yt-player" src="https://www.youtube.com/embed/u7JMhVI7taQ"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media;
gyroscope; picture-in-picture" allowfullscreen="" style="width:60vw;min-width:400px;aspect-ratio:16 / 9;">
</iframe>

</div>




<div class="slideshow-container">

<!-- Full-width images with number and caption text -->
<div class="mySlides fade">
<div class="numbertext">1 / 3</div>
<img src="img1.jpg" style="width:100%">
<div class="text">Caption Text</div>
</div>

<div class="mySlides fade">
<div class="numbertext">2 / 3</div>
<img src="img2.jpg" style="width:100%">
<div class="text">Caption Two</div>
</div>

<div class="mySlides fade">
<div class="numbertext">3 / 3</div>
<img src="img3.jpg" style="width:100%">
<div class="text">Caption Three</div>
</div>

<!-- Next and previous buttons -->
<a class="prev" onclick="plusSlides(-1)">&#10094;</a>
<a class="next" onclick="plusSlides(1)">&#10095;</a>
</div>
<br>

<!-- The dots/circles -->
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</div>





</main>

</body>
</html>
51 changes: 51 additions & 0 deletions views/public/About.css
Original file line number Diff line number Diff line change
@@ -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;
}
Empty file added views/public/Home.css
Empty file.
Loading