diff --git a/public/img/background/paper/small_tile_paper.png b/public/img/background/paper/small_tile_paper.png new file mode 100644 index 0000000..f1d5776 Binary files /dev/null and b/public/img/background/paper/small_tile_paper.png differ diff --git a/public/img/background/wood/cut_wood_background.png b/public/img/background/wood/cut_wood_background.png new file mode 100644 index 0000000..a3e4b85 Binary files /dev/null and b/public/img/background/wood/cut_wood_background.png differ diff --git a/public/img/borders/metal_corner.png b/public/img/borders/metal_corner.png new file mode 100644 index 0000000..cba6bb0 Binary files /dev/null and b/public/img/borders/metal_corner.png differ diff --git a/public/img/borders/metal_strip.png b/public/img/borders/metal_strip.png new file mode 100644 index 0000000..f8e1ecd Binary files /dev/null and b/public/img/borders/metal_strip.png differ diff --git a/public/img/quests/overlays/compass_rose.png b/public/img/quests/overlays/compass_rose.png new file mode 100644 index 0000000..f0cc485 Binary files /dev/null and b/public/img/quests/overlays/compass_rose.png differ diff --git a/public/img/quests/overlays/flower.png b/public/img/quests/overlays/flower.png new file mode 100644 index 0000000..5840633 Binary files /dev/null and b/public/img/quests/overlays/flower.png differ diff --git a/public/img/quests/overlays/outdoor_scene.png b/public/img/quests/overlays/outdoor_scene.png new file mode 100644 index 0000000..c920fe9 Binary files /dev/null and b/public/img/quests/overlays/outdoor_scene.png differ diff --git a/public/img/quests/overlays/potion.png b/public/img/quests/overlays/potion.png new file mode 100644 index 0000000..1bbb530 Binary files /dev/null and b/public/img/quests/overlays/potion.png differ diff --git a/src/assets/main.css b/src/assets/main.css deleted file mode 100644 index a5ef358..0000000 --- a/src/assets/main.css +++ /dev/null @@ -1,20 +0,0 @@ - -:root { - -} - -body { - margin: 0; - padding: 0 0 10rem; - min-height: calc(100vh - 10rem); - font-family: 'EB Garamond', serif; - overflow-y: scroll; - user-select: none; - background-size: 30%; - background: rgba(87, 50, 20, 0.75) url("/img/background/panels/plaster.png") repeat; - background-blend-mode: darken; -} - -#app { - width: 100%; -} \ No newline at end of file diff --git a/src/assets/main.scss b/src/assets/main.scss new file mode 100644 index 0000000..be85da0 --- /dev/null +++ b/src/assets/main.scss @@ -0,0 +1,64 @@ + +:root { + +} + +body { + margin: 0; + padding: 0 0 10rem; + min-height: calc(100vh - 10rem); + font-family: 'EB Garamond', serif; + overflow-y: scroll; + user-select: none; + background-size: 25rem; + background-color: rgba(87, 50, 20, 0.45); + background-image: url("/img/background/wood/cut_wood_background.png"); + background-blend-mode: darken; + background-repeat: repeat; +} + +#app { + width: 100%; +} + +.panel { + &.pinned-paper { + background-image: url("/img/quests/backgrounds/paper.png"); + position: relative; + filter: drop-shadow(-0.15rem 0.2rem 0.1rem rgba(0, 0, 0, 0.25)); + + .nail { + position: absolute; + width: 2rem; + height: 2rem; + filter: drop-shadow(-0.15rem 0.2rem 0.1rem rgba(0, 0, 0, 0.5)); + + &.small { + width: 1rem; + height: 1rem; + } + + img { + width: 100%; + height: 100%; + } + + &.top-left { + top: 1rem; + left: 1rem; + } + + &.top-right { + top: 1rem; + right: 1rem; + } + } + } + + &.note-paper { + background-image: url("/img/background/paper/small_tile_paper.png"); + position: relative; + filter: drop-shadow(-0.15rem 0.2rem 0.1rem rgba(0, 0, 0, 0.25)); + border-image: url("/img/borders/metal_corner.png") 30 round; + } +} \ No newline at end of file diff --git a/src/components/AdventurerList.vue b/src/components/AdventurerList.vue index 48b4fa8..67c308a 100644 --- a/src/components/AdventurerList.vue +++ b/src/components/AdventurerList.vue @@ -18,14 +18,15 @@ export default defineComponent({ name: "AdventurerList", components: {AdventurerMiniComponent}, data: () => ({ - currentAdventurer: null as Adventurer|null + currentAdventurer: null as Adventurer | null }), props: { adventurers: { - type: Object as PropType<{[key: string]: Adventurer}>, + type: Object as PropType<{ [key: string]: Adventurer }>, default() { - return {} as {[key: string]: Adventurer}; + return {} as { [key: string]: Adventurer }; }, + required: true, }, }, @@ -39,12 +40,13 @@ export default defineComponent({ flex-wrap: wrap; justify-content: center; align-items: center; + .slot { padding: 0; width: 5rem; height: 5rem; border: 2px solid #000; - background-color: rgba(0,0,0, 0.2); + background-color: rgba(0, 0, 0, 0.2); cursor: pointer; border-radius: 0.2rem; } diff --git a/src/components/AdventurerMiniComponent.vue b/src/components/AdventurerMiniComponent.vue index 234b9ac..758911b 100644 --- a/src/components/AdventurerMiniComponent.vue +++ b/src/components/AdventurerMiniComponent.vue @@ -65,12 +65,10 @@ export default defineComponent({ default() { return {} as {[key: string]: Adventurer}; }, + required: true, }, }, methods: { - print(a:string) { - console.log(a); - }, closeSelect() { this.selection = false; } diff --git a/src/components/AdventurerTile.vue b/src/components/AdventurerTile.vue index baf33c3..2413876 100644 --- a/src/components/AdventurerTile.vue +++ b/src/components/AdventurerTile.vue @@ -4,7 +4,8 @@ :title="adventurer.name + (adventurer.busy ? ' (busy)' : '')" > -
{{adventurer.level}}
+
{{ adventurer.level }}
@@ -12,7 +13,7 @@