can anyone tell my why in this nodejs file ,the images and the CSS does not display ?   the CSS are in [main folder] ---[assets] --[CSS]---css files  the images are in [main folder] ---[images] ---image files  I DONT KNOW WHY THIS IMages ane CSS are not display in the webpage

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

can anyone tell my why in this nodejs file ,the images and the CSS does not display ?

 

the CSS are in [main folder] ---[assets] --[CSS]---css files 

the images are in [main folder] ---[images] ---image files 

I DONT KNOW WHY THIS IMages ane CSS are not display in the webpage 

views > - landing.hbs > e html > e body > O header > e h4
bg
<! DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF -8">
<meta name=" viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA -Compatible" content="ie-edge">
<link rel="stylesheet" href="/css/style.css">
<title>landing page : {{title}}</title>
<script type="application/javascript">
function validate() {
const data = new URLSearchParams ();
data.append('n ame', document.getElementById("name").value):
data.append("password", document.getElementById("passwor d"). value);
var params = { name: document.getElementById("name").value, password: document.getElementById("password").value };
var request = new XMLHttpRequest ();
request.open ("POST", "/api/login");
request.setRequestHeader ("Content-type", "application/x-wlwlw - form-urlencoded");
request.onload = function () {
var result = JSON.parse(request.response):
if (result.status === "y") {
window.location.href = "/index";
} else {
alert (result.meg);
}
};
request.send(data.tostring());
</script>
</head>
<body>
<header>
(a href="/"> <img src="/images/logo.jpg"></a>
<nav>
Transcribed Image Text:views > - landing.hbs > e html > e body > O header > e h4 bg <! DOCTYPE html> <html lang="en"> <head> <meta charset="UTF -8"> <meta name=" viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA -Compatible" content="ie-edge"> <link rel="stylesheet" href="/css/style.css"> <title>landing page : {{title}}</title> <script type="application/javascript"> function validate() { const data = new URLSearchParams (); data.append('n ame', document.getElementById("name").value): data.append("password", document.getElementById("passwor d"). value); var params = { name: document.getElementById("name").value, password: document.getElementById("password").value }; var request = new XMLHttpRequest (); request.open ("POST", "/api/login"); request.setRequestHeader ("Content-type", "application/x-wlwlw - form-urlencoded"); request.onload = function () { var result = JSON.parse(request.response): if (result.status === "y") { window.location.href = "/index"; } else { alert (result.meg); } }; request.send(data.tostring()); </script> </head> <body> <header> (a href="/"> <img src="/images/logo.jpg"></a> <nav>
assets
{
V CSS
padding: 0;
margin: 0;
2
# 1.css
# style.css
4
img
body 1
display: flex;
v images
1.jpg
flex-direction: column;
O bg.jpg
O logo.jpg
> node_modules
> public
justify-content: flex-start;
height: 190vh;
background-image: url('../images/bg.jpg');
background-repeat: no-repeat;
background-size: cover;
font-family: 'Merriweather', serif;
9
10
11
12
13
views
14
** error.hbs
15
-index.hbs
16
- landing.hbs
17
Transcribed Image Text:assets { V CSS padding: 0; margin: 0; 2 # 1.css # style.css 4 img body 1 display: flex; v images 1.jpg flex-direction: column; O bg.jpg O logo.jpg > node_modules > public justify-content: flex-start; height: 190vh; background-image: url('../images/bg.jpg'); background-repeat: no-repeat; background-size: cover; font-family: 'Merriweather', serif; 9 10 11 12 13 views 14 ** error.hbs 15 -index.hbs 16 - landing.hbs 17
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY