Spaces:
Sleeping
Sleeping
File size: 4,911 Bytes
37b5223 2a72aeb 37b5223 | 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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | <template>
<div class="not-found-view">
<div class="nf-content">
<div class="nf-flag" aria-hidden="true">
<span class="stripe black" />
<span class="stripe fimbriation" />
<span class="stripe red" />
<span class="stripe fimbriation" />
<span class="stripe green" />
</div>
<h1 class="nf-code">404</h1>
<h2 class="nf-title">This page is missing</h2>
<p class="nf-body">
The page you're looking for doesn't exist on Ukweli — or it
was moved, archived, or never published. Every audit report,
however, is in the catalogue. Maybe try a search?
</p>
<div class="nf-actions">
<n-input
v-model:value="search"
placeholder="Search audit reports..."
size="large"
@keyup.enter="goSearch"
>
<template #prefix>
<n-icon><search-outline /></n-icon>
</template>
</n-input>
<div class="nf-buttons">
<n-button type="primary" size="large" @click="goSearch">
Search
</n-button>
<n-button quaternary size="large" @click="router.push('/')">
Back to home
</n-button>
</div>
</div>
<div class="nf-suggestions">
<p class="suggestions-label">Or jump to:</p>
<div class="suggestion-list">
<router-link to="/chat" class="suggestion-chip">
<n-icon size="14"><chatbubbles-outline /></n-icon>
Ask the auditor
</router-link>
<router-link to="/explore" class="suggestion-chip">
<n-icon size="14"><compass-outline /></n-icon>
Explore reports
</router-link>
<router-link to="/graph" class="suggestion-chip">
<n-icon size="14"><share-social-outline /></n-icon>
Knowledge graph
</router-link>
<router-link to="/about" class="suggestion-chip">
<n-icon size="14"><information-circle-outline /></n-icon>
About
</router-link>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import {
SearchOutline,
ChatbubblesOutline,
CompassOutline,
ShareSocialOutline,
InformationCircleOutline,
} from '@vicons/ionicons5'
const router = useRouter()
const search = ref('')
function goSearch() {
if (!search.value.trim()) return
router.push({ path: '/', query: { q: search.value } })
}
</script>
<style scoped lang="scss">
.not-found-view {
min-height: calc(100vh - 200px);
display: flex;
align-items: center;
justify-content: center;
padding: 40px 16px;
}
.nf-content {
max-width: 560px;
text-align: center;
}
.nf-flag {
display: flex;
width: 140px;
height: 10px;
margin: 0 auto 32px;
border-radius: 4px;
overflow: hidden;
box-shadow: var(--shadow-sm);
.stripe { flex: 1; }
.stripe.black { background: var(--ke-black); flex: 1.4; }
.stripe.fimbriation { background: var(--ke-white); flex: 0.15; }
.stripe.red { background: var(--ke-red); flex: 1.2; }
.stripe.green { background: var(--ke-green); flex: 1.4; }
}
.nf-code {
font-family: var(--font-display);
font-size: 128px;
line-height: 1;
font-weight: 800;
margin: 0;
background: linear-gradient(135deg, var(--ke-black) 0%, var(--ke-red) 50%, var(--ke-green) 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
letter-spacing: -0.04em;
}
.nf-title {
font-family: var(--font-display);
font-size: 28px;
margin: 0 0 12px;
color: var(--text-primary);
}
.nf-body {
font-size: 15px;
color: var(--text-secondary);
line-height: 1.6;
max-width: 480px;
margin: 0 auto 28px;
}
.nf-actions {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 32px;
}
.nf-buttons {
display: flex;
gap: 8px;
justify-content: center;
}
.nf-suggestions {
padding-top: 24px;
border-top: 1px solid var(--border);
}
.suggestions-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--text-muted);
margin-bottom: 12px;
}
.suggestion-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
}
.suggestion-chip {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 999px;
padding: 8px 14px;
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
text-decoration: none;
transition: all 0.2s var(--ease-out);
&:hover {
border-color: var(--primary);
background: var(--primary-soft);
color: var(--primary);
}
}
@media (max-width: 768px) {
.nf-code { font-size: 96px; }
.nf-title { font-size: 22px; }
.nf-buttons { flex-direction: column; }
}
</style>
|