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

update ui of error display #131

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
91 changes: 81 additions & 10 deletions zimui/src/components/ErrorDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,96 @@ const errimage = ref(errimageData)
</script>

<template>
<div class="error-container">
<img :src="errimage" class="error-image" />
<p class="error-text">{{ main.errorMessage }}</p>
<p class="error-text">{{ main.errorDetails }}</p>
<div class="error-page">
<nav class="nav-header">
<div class="logo">Kolibri</div>
yugalkaushik marked this conversation as resolved.
Show resolved Hide resolved
</nav>

<div class="error-container">
<div class="error-content">
<p class="error-text">{{ main.errorMessage }}</p>
<p class="error-text">{{ main.errorDetails }}</p>
</div>
<div class="error-image-container">
<img :src="errimage" class="error-image" alt="error image" />
</div>
</div>
</div>
</template>

<style scoped>
.error-container {
body {
benoit74 marked this conversation as resolved.
Show resolved Hide resolved
margin: 0;
background-color: #f0f4f8;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
benoit74 marked this conversation as resolved.
Show resolved Hide resolved
}

.error-page {
max-width: 1200px;
margin: 0 auto;
padding: 40px;
text-align: center;
padding: 20px;
}

.error-image {
width: 300px;
margin-bottom: 20px;
.nav-header {
margin-bottom: 40px;
}

.logo {
font-weight: bold;
font-size: 28px;
color: #333;
}

.error-container {
display: flex;
justify-content: space-between;
align-items: center;
gap: 40px;
margin: 60px 0;
background: white;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
padding: 40px;
}

.error-content {
flex: 1;
text-align: left;
}

.error-text {
font-size: 16px;
color: #222;
margin: 10px 0;
max-width: 500px;
line-height: 1.6;
font-size: 18px;
}

.error-image-container {
flex: 1;
display: flex;
justify-content: center;
}

.error-image {
width: 400px;
height: auto;
}

@media (max-width: 768px) {
.error-container {
flex-direction: column;
text-align: center;
}

.error-text {
margin: 20px auto;
font-size: 16px;
}

.error-image {
width: 300px;
}
}
</style>