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

Combat Tracker Illustration on Tools page #298

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
Binary file removed public/linkedin.png
Binary file not shown.
Binary file added public/shieldmaiden-combat-tracker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {
},
twitterImage: {
name: "twitter:image",
content: "https://shieldmaiden.app/shieldmaiden_logo_full.png",
content: "https://shieldmaiden.app/shieldmaiden-combat-tracker.png",
},
twitterSite: {
name: "twitter:site",
Expand Down Expand Up @@ -151,7 +151,7 @@ export default {
},
ogImage: {
property: "og:image",
content: `https://shieldmaiden.app/linkedin.png`,
content: "https://shieldmaiden.app/shieldmaiden-combat-tracker.png",
},
ogImageType: {
property: "og:image:type",
Expand Down
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions src/components/ToolsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<h1>{{ title }} for D&D 5e</h1>
<slot name="action_btn" />
</div>
<div slot="image" class="card-image" :style="{ backgroundImage: `url(${img})` }">
D&D {{ title }}
</div>
<div slot="image" class="card-image" :style="{ backgroundImage: `url(${img})` }"></div>
<div class="card-body">
<SignedIn v-if="user && showSignedIn" />
<slot />
Expand Down
20 changes: 19 additions & 1 deletion src/views/Tools/CombatTracker.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ToolsPage title="Combat Tracker" bg_img="dragon-encounter-tool-header.jpg">
<ToolsPage title="Combat Tracker" bg_img="combat-tracker-header.webp">
<template v-slot:action_btn="{ btn_classes }">
<q-btn color="primary" :class="btn_classes" no-caps push to="/demo">Try Demo Encounter</q-btn>
</template>
Expand Down Expand Up @@ -104,6 +104,24 @@ export default {
share: live_initiative_texts,
};
},
meta() {
return {
meta: {
twitterImage: {
name: "twitter:image",
content: require(`assets/_img/meta/shieldmaiden-combat-tracker.png`),
},
ogImage: {
property: "og:image",
content: require(`assets/_img/meta/shieldmaiden-combat-tracker.png`),
},
ogImageAlt: {
property: "og:image:alt",
content: "Shieldmaiden Combat Tracker",
},
},
};
},
};
</script>

Expand Down
74 changes: 33 additions & 41 deletions src/views/Tools/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,8 @@
<h1><i aria-hidden="true" class="fas fa-tools mr-2" /> D&D 5e Tools</h1>
</div>
<div class="card-body">
<SignedIn v-if="user" />
<h2>
Online tools to enhance and simplify every aspect of your tabletop role-playing experience.
</h2>
<p>
Designed with the Dungeon Master in mind, our suite of tools is a comprehensive resource to
streamline and enrich every facet of your storytelling journey. From managing combat
encounters with our initiative tracker and creating unique monsters to seamlessly guiding
the narrative with a digital DM screen, our tools provide the essential support needed for
Dungeon Masters to create immersive and dynamic adventures. Dive into a realm where our
tools serve as your digital assistant, helping you master the art of storytelling and
deliver unparalleled experiences to your players.
</p>
<template v-for="(group, i) in tools">
<h2 :key="`title-${i}`" :class="{ 'mt-5': i > 0 }">{{ group.title }}</h2>
<h2 :key="`title-${i}`" :class="{ 'mt-3': i > 0 }">{{ group.title }}</h2>
<div class="row q-col-gutter-md" :key="i" :class="{ 'pb-2': i === 0 }">
<div v-for="(tool, key) in group.tools" class="col-12 col-sm-6 col-md-4" :key="key">
<router-link :to="tool.url">
Expand All @@ -30,42 +17,49 @@
tool.image
? {
backgroundImage: `url(${require(`src/assets/_img/atmosphere/medium/${tool.image}`)})`,
}
}
: '',
]"
>
<i :class="tool.icon" aria-hidden="true" />
</div>
<div slot="header" class="card-header">
{{ tool.title }}
</div>
></div>
<div class="card-body">
<div class="header">
<i :class="tool.icon" aria-hidden="true" class="mr-1" />
{{ tool.title }}
</div>
{{ tool.description }}
</div>
<div slot="footer" class="card-footer">
<div slot="footer" class="footer">
<div v-if="tool.under_development" class="red full-width text-center">
Under development
</div>
<button v-else class="btn btn-block">Use {{ tool.title }}</button>
<button v-else class="btn btn-sm">Use {{ tool.title }}</button>
</div>
</hk-card>
</router-link>
</div>
</div>
</template>
<h2 class="mt-3">
Online tools to enhance and simplify every aspect of your tabletop role-playing experience.
</h2>
<p>
Designed with the Dungeon Master in mind, our suite of tools is a comprehensive resource to
streamline and enrich every facet of your storytelling journey. From managing combat
encounters with our initiative tracker and creating unique monsters to seamlessly guiding
the narrative with a digital DM screen, our tools provide the essential support needed for
Dungeon Masters to create immersive and dynamic adventures. Dive into a realm where our
tools serve as your digital assistant, helping you master the art of storytelling and
deliver unparalleled experiences to your players.
</p>
</div>
</hk-card>
</template>

<script>
import { mapGetters } from "vuex";
import SignedIn from "src/components/userContent/SignedIn.vue";

export default {
name: "ToolsOverview",
components: {
SignedIn,
},
computed: {
...mapGetters(["user"]),
},
Expand All @@ -79,7 +73,7 @@ export default {
title: "Combat Tracker",
description:
"Track everything in your encounters and share initiative with your players.",
image: "dragon-encounter-medium.jpg",
image: "combat-tracker-medium.webp",
url: "/tools/combat-tracker",
icon: "fas fa-swords",
},
Expand Down Expand Up @@ -159,20 +153,26 @@ export default {
</script>

<style lang="scss" scoped>
h2 {
line-height: 25px;
}
a {
all: unset;
cursor: pointer;
}
.hk-card.tool {
transition: all 0.5s ease-in;
background-color: $neutral-7;

.card-header {
transition: all 0.5s ease-in;
min-height: 32px;
font-size: 21px;
.header {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
}
.footer {
padding: 0 20px 20px 20px;
}
.card-image {
filter: grayscale(50%);
transition: all 0.5s ease-in-out;
font-size: 95px;
width: inherit;
Expand All @@ -182,14 +182,6 @@ a {
}
&:hover {
background-color: $neutral-5;
border-color: $neutral-4;

.card-header {
background-color: $neutral-7;
}
.card-image {
filter: grayscale(0%);
}
}
}
</style>
Loading