aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2024-03-13 00:17:32 +0000
committerLeonardo Bishop <me@leonardobishop.com>2024-03-13 00:17:32 +0000
commit543aa0cd4a461285298d33a90ab3f11a9f084ca5 (patch)
treeffbaec5f495b2cf8b891690642df161464ac6e95 /pages
parenta072c91cc0dc26e417c51f666e8547e08ef40942 (diff)
Add home page
Diffstat (limited to 'pages')
-rw-r--r--pages/editor/category/[id].vue (renamed from pages/category/[id].vue)0
-rw-r--r--pages/editor/config.vue (renamed from pages/config.vue)0
-rw-r--r--pages/editor/index.vue25
-rw-r--r--pages/editor/item/[id].vue (renamed from pages/item/[id].vue)0
-rw-r--r--pages/editor/quest/[id].vue (renamed from pages/quest/[id].vue)0
-rw-r--r--pages/index.vue70
6 files changed, 90 insertions, 5 deletions
diff --git a/pages/category/[id].vue b/pages/editor/category/[id].vue
index 3189d2a..3189d2a 100644
--- a/pages/category/[id].vue
+++ b/pages/editor/category/[id].vue
diff --git a/pages/config.vue b/pages/editor/config.vue
index 4dfc679..4dfc679 100644
--- a/pages/config.vue
+++ b/pages/editor/config.vue
diff --git a/pages/editor/index.vue b/pages/editor/index.vue
new file mode 100644
index 0000000..4e9815a
--- /dev/null
+++ b/pages/editor/index.vue
@@ -0,0 +1,25 @@
+<script setup lang="ts">
+definePageMeta({
+ layout: 'editor'
+})
+</script>
+
+<template>
+ <div id="title">
+ <b>Select a quest or category to continue</b>
+ </div>
+</template>
+
+<style lang="scss" scoped>
+#title {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 90%;
+
+ b {
+ font-weight: bolder;
+ font-size: 1.5rem;
+ }
+}
+</style> \ No newline at end of file
diff --git a/pages/item/[id].vue b/pages/editor/item/[id].vue
index c2456be..c2456be 100644
--- a/pages/item/[id].vue
+++ b/pages/editor/item/[id].vue
diff --git a/pages/quest/[id].vue b/pages/editor/quest/[id].vue
index bc480d9..bc480d9 100644
--- a/pages/quest/[id].vue
+++ b/pages/editor/quest/[id].vue
diff --git a/pages/index.vue b/pages/index.vue
index dd46b31..a64706a 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,17 +1,77 @@
<script setup lang="ts">
definePageMeta({
- layout: 'editor'
+ layout: 'default'
})
</script>
<template>
- <div id="title">
- <h1>Select a quest or category to continue</h1>
+ <div id="welcome-container">
+ <div id="welcome">
+ <img id="welcome-image" src="@/assets/quests-logo.png" alt="Quests logo" />
+ <b id="title">Welcome to the Quests Web Editor</b>
+ <p>This is a work in progress build of the web editor for <a href="https://github.com/LMBishop/Quests">Quests</a>.
+ It is <b>not</b> ready for use.
+ </p>
+ <p>If you would like to try this out, use the buttons in the top right corner to start a session.</p>
+ <b id="subtitle">Cannot import from filesystem</b>
+ <p>
+ If you cannot import from filesystem, then that means you are using a browser which does not implement the
+ <a href="https://wicg.github.io/file-system-access/">File System Access API</a>. At the time of writing,
+ only Chromium based browsers (Google Chrome, Microsoft Edge, Brave, etc.) implement this. This means if you
+ use Firefox or Safari, you must switch browser to use this feature.
+ </p>
+ <p>
+ You can instead load the test data instead by clicking the "Demo" button.
+ </p>
+ <b id="subtitle">Light / dark theme</b>
+ <p>
+ Note that the light theme of this website is a work in progress. Please use the dark theme. The colour scheme
+ will automatically adjust based on your browsers preferences.
+ </p>
+ <b id="subtitle">Source code</b>
+ <p>
+ Just like Quests itself, the source code is <a href="https://github.com/LMBishop/quests-web-editor">available
+ on GitHub</a>.
+ Due to the volatile state of this project, if you would like to get involved please get in touch with me first.
+ </p>
+ </div>
</div>
</template>
<style lang="scss" scoped>
-#title {
- text-align: center;
+#welcome-container {
+ display: flex;
+ justify-content: center;
+ width: 100%;
+ height: 100%;
+}
+
+#welcome {
+ display: flex;
+ flex-direction: column;
+ margin: 3rem 0;
+ gap: 1.5rem;
+ align-items: flex-start;
+ justify-content: flex-start;
+ max-width: 800px;
+
+ #title {
+ font-weight: bold;
+ font-size: 1.5rem;
+ }
+
+ #subtitle {
+ font-weight: bold;
+ font-size: 1.1rem;
+ }
+
+ #welcome-image {
+ max-width: 8rem;
+ align-self: center;
+ }
+
+ b {
+ font-weight: bold;
+ }
}
</style> \ No newline at end of file