-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
studio - page not found
- Loading branch information
1 parent
a8c567e
commit 0d834d2
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { vi, describe, it, beforeEach, expect } from "vitest"; | ||
import NotFoundView from "./NotFoundView.vue"; | ||
import { shallowMount } from "@vue/test-utils"; | ||
|
||
describe("NotFoundView", () => { | ||
beforeEach(() => { | ||
vi.clearAllMocks(); | ||
}); | ||
it("renders the not found view", () => { | ||
const wrapper = shallowMount(NotFoundView); | ||
expect(wrapper.text()).toContain("404"); | ||
expect(wrapper.text()).toContain("Page not found"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script lang="ts" setup></script> | ||
|
||
<template> | ||
<div class="not-found"> | ||
<h1>404</h1> | ||
<p>Page not found</p> | ||
</div> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
.not-found { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: calc(100vh - 10rem); | ||
min-height: 10rem; | ||
font-family: "Arial", sans-serif; | ||
h1 { | ||
font-size: 6rem; | ||
margin: 0; | ||
border-bottom: 2px solid var(--color-border); | ||
} | ||
p { | ||
font-size: 1.5rem; | ||
margin: 1rem; | ||
} | ||
} | ||
</style> |