-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.ejs
More file actions
92 lines (79 loc) · 3.72 KB
/
home.ejs
File metadata and controls
92 lines (79 loc) · 3.72 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CampQuest</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="/stylesheets/home.css"> -->
<style>
body {
height: 100vh;
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url("https://images.unsplash.com/photo-1559521783-1d1599583485?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80");
background-size: cover;
background-position: center;
text-shadow: 0 0.05rem 0.1rem rgba(0, 0, 0, 0.5);
box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.5);
}
.cover-container {
max-width: 60vw;
}
.nav-link {
padding: 0.25rem 0;
font-weight: 700;
color: rgba(255,255,255,0.5);
margin-left: 1rem;
border-bottom: 0.25rem solid transparent;
}
.nav-link:hover{
color: rgba(255,255,255,0.5);
border-bottom-color:rgba(255,255,255,0.5);
}
.nav-link.active {
color: white;
border-bottom-color:white;
}
.btn-secondary, .btn-secondary:hover{
color: #333;
text-shadow: none;
}
</style>
</head>
<body class="d-flex text-center text-white bg-dark">
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="mb-auto">
<div>
<h3 class="float-md-left mb-0">CampQuest</h3>
<nav class="nav nav-masthead justify-content-center float-md-right">
<a class="nav-link active" aria-current="page" href="#">Home</a>
<a class="nav-link" href="/campground">Campgrounds</a>
<% if(!currentUser) { %>
<a class="nav-link" href="/login">Login</a>
<a class="nav-link" href="/register">Register</a>
<% } else { %>
<a class="nav-link" href="/logout">Logout</a>
<% } %>
</nav>
</div>
</header>
<main class="px-3 m-10">
<h1>CampQuest</h1>
<p class="lead"> Welcome to CampQuest! <br> Jump right in and explore our many campgrounds. <br>
Feel free to share some of your own and comment on others!</p>
<a href="/campground" class="btn btn-lg btn-secondary font-weight-bold border-white bg-white">View
Campgrounds</a>
</main>
<footer class="mt-auto text-white-50">
<p>© 2024 </p>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
crossorigin="anonymous"></script>
</body>
</html>