Rename project and add handling for images and assets.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
let body = document.getElementsByTagName('h1');
|
||||
console.log(body);
|
||||
alert("time to rock");
|
||||
console.log("hello");
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
body {
|
||||
color: white;
|
||||
background: purple;
|
||||
max-width: 95%;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Toolshed</title>
|
||||
<link rel="stylesheet" href="/assets/style.css">
|
||||
<script src="/assets/main.js" defer></script>
|
||||
<link rel="stylesheet" href="/assets/style.css" />
|
||||
<script src="/assets/main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>This is my toolshed. This web server is built using Rust :)</h1>
|
||||
<img src="/images/6.jpg"/>
|
||||
<img src="/images/6.jpg" alt="some image" />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user