All files / src/views NotFoundPage.vue

100% Statements 8/8
100% Branches 2/2
100% Functions 2/2
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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  4x 1x     1x     1x   5x       4x                       4x                                                                                                                                                                                                                      
<template>
  <div class="not-found-page">
    <div class="content">
      <div class="error-code">404</div>
      <h1>{{ t('notFound.title') }}</h1>
      <p class="message">
        {{ t('notFound.message') }}
      </p>
      <div class="actions">
        <router-link to="/" class="btn btn-primary">
          <font-awesome-icon icon="home" />
          {{ t('common.backToHome') }}
        </router-link>
        <router-link to="/login" class="btn btn-outline">
          <font-awesome-icon icon="right-to-bracket" />
          {{ t('auth.signIn') }}
        </router-link>
      </div>
    </div>
  </div>
</template>
 
<script setup lang="ts">
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { useUILanguage } from '@/composables/useUILanguage'
 
const { t } = useUILanguage()
</script>
 
<style scoped>
.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #bee476 0%, #689909 100%);
  padding: 2rem;
}
 
.content {
  text-align: center;
  color: white;
  max-width: 600px;
}
 
.error-code {
  font-size: 8rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
 
h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
 
.message {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}
 
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
 
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
 
.btn-primary {
  background: white;
  color: #689909;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
 
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
 
.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}
 
.btn-outline:hover {
  background: white;
  color: #689909;
  transform: translateY(-2px);
}
 
@media (max-width: 768px) {
  .error-code {
    font-size: 5rem;
  }
 
  h1 {
    font-size: 2rem;
  }
 
  .message {
    font-size: 1rem;
  }
 
  .actions {
    flex-direction: column;
    width: 100%;
  }
 
  .btn {
    width: 100%;
    justify-content: center;
  }
}
</style>