Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #29 #41

Merged
merged 5 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cypress/e2e/about.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe("About page", () => {
it("displays information after navigating to tab", () => {
cy.visit("/");

cy.contains("About").click();
cy.contains("About").click({ force: true });

cy.contains("Upstate / Greenville SC Open Data Map Layers Demo");
});
Expand Down
6 changes: 6 additions & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createRouter, createWebHistory } from "vue-router";
import MapView from "../views/MapView.vue";
import NotFoundView from "../views/NotFoundView.vue";

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
Expand All @@ -17,6 +18,11 @@ const router = createRouter({
// which is lazy-loaded when the route is visited.
component: () => import("../views/AboutView.vue"),
},
{
path: "/:pathMatch(.*)",
name: "404",
component: NotFoundView,
},
],
});

Expand Down
68 changes: 68 additions & 0 deletions src/views/NotFoundView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<template>
<div class="star star1"></div>
<div class="star star2"></div>
<div class="star star3"></div>
<div class="star star4"></div>
<div class="star star5"></div>

<div class="error grid justify-items-center h-full place-content-center">
<div class="text-white text-[10em]">404</div>
<div class="text-white text-[2em]">Page Not Found</div>
</div>
</template>

<style>
html,
body {
margin: 0px;
background: linear-gradient(
90deg,
rgba(47, 54, 64, 1) 23%,
rgba(24, 27, 32, 1) 100%
);
}

.star {
background: rgb(230, 230, 90);
position: absolute;
width: 5px;
height: 5px;
content: "";
border-radius: 100%;
transform: rotate(250deg);
opacity: 0.4;
animation-name: shimmer;
animation-duration: 1.5s;
animation-iteration-count: infinite;
animation-direction: alternate;
}

.star1 {
top: 40%;
left: 75%;
animation-delay: 1s;
}

.star2 {
top: 60%;
left: 90%;
animation-delay: 3s;
}

.star3 {
top: 10%;
left: 70%;
animation-delay: 2s;
}

.star4 {
top: 90%;
left: 40%;
}

.star5 {
top: 20%;
left: 30%;
animation-delay: 0.5s;
}
</style>