-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (35 loc) · 1.41 KB
/
Copy pathindex.html
File metadata and controls
42 lines (35 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" ; charset=UTF-8" />
<title>My First Website</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css" rel="stylesheet">
<!-- <link rel="stylesheet" href="style.css"> -->
</head>
<body>
<div class="container mx-auto">
<nav class="flex bg-grey-lighter">
<a class="flex-1 text-grey-darker text-center bg-grey-light px-4 py-2 m-2" href="./index.html">Home</a>
<a class="flex-1 text-grey-darker text-center bg-grey-light px-4 py-2 m-2" href="./mycats.html">Meet my
cats!</a>
</nav>
<h1 id="h1" class="text-center mt-20">Hello World!</h1>
<p class="text-center mt-10">My name is Laura and I have just started my adventure at the Craft Academy
Bootcamp!</p>
<script>
var d = new Date();
var weekday = new Array(7);
weekday[0] = "Sunday";
weekday[1] = "Monday";
weekday[2] = "Tuesday";
weekday[3] = "Wednesday";
weekday[4] = "Thursday";
weekday[5] = "Friday";
weekday[6] = "Saturday";
var day = weekday[d.getDay()];
document.getElementById("h1").innerHTML = "Happy " + day + "!";
</script>
<img class="mt-10" src="./computer_cat.jpg" alt="computer&cat">
</div>
</body>
</html>