forked from cal-cs184/proj-webpage-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (69 loc) · 2.25 KB
/
index.html
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CS184/284A Project Webpages</title>
<style>
body {
font-family: Arial, sans-serif;
background: url('https://static.vecteezy.com/system/resources/previews/022/774/538/non_2x/high-tech-futuristic-computer-graphics-background-illustration-ai-generative-free-photo.jpg') no-repeat center center fixed;
background-size: cover;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
color: #333;
}
.container {
background: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 400px;
width: 100%;
}
h3 {
margin-bottom: 20px;
}
a {
display: block;
margin: 10px 0;
padding: 10px;
text-decoration: none;
color: #007bff;
border: 1px solid #007bff;
border-radius: 4px;
transition: background-color 0.3s, color 0.3s;
}
a:hover {
background-color: #007bff;
color: white;
}
</style>
</head>
<body>
<div class="container">
<h2>CS184/284A Project Webpages</h2>
<h3>Shrihan Agarwal & Suhrid Saha</h3>
<a href="/proj1/index.html">Project 1</a>
<a href="/proj2/index.html">Project 2</a>
<a href="/proj3-1/index.html">Project 3-1</a>
<a href="/proj3-2/index.html">Project 3-2</a>
<a href="/proj4/index.html">Project 4</a>
</div>
<script>
var links = document.body.getElementsByTagName("a");
var a = window.location.href.indexOf(".io");
var repo_name = window.location.href.substring(a+3);
for(var i = 0; i < links.length; i++){
var link = links[i];
var actual_name = link.href.substring(link.href.indexOf(".io")+4);
link.href = repo_name + actual_name;
}
</script>
</body>
</html>