refactor: remove TextBlock component in favor of simpler section element
This commit is contained in:
parent
bd4b36f8ae
commit
d296e61362
7 changed files with 30 additions and 42 deletions
|
@ -1,17 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="textblock">
|
|
||||||
<slot></slot>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
.textblock {
|
|
||||||
max-width: var(--textblock-max-width);
|
|
||||||
margin: auto;
|
|
||||||
padding: var(--textblock-padding);
|
|
||||||
|
|
||||||
p {
|
|
||||||
text-align: justify;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -36,6 +36,16 @@ main {
|
||||||
transition: 0.4s;
|
transition: 0.4s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
|
max-width: var(--textblock-max-width);
|
||||||
|
margin: auto;
|
||||||
|
padding: var(--textblock-padding);
|
||||||
|
|
||||||
|
p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import RefImage from "@/components/RefImage.vue";
|
import RefImage from "@/components/RefImage.vue";
|
||||||
import ColorTable from "@/components/ColorTable.vue";
|
import ColorTable from "@/components/ColorTable.vue";
|
||||||
import TextBlock from "@/components/TextBlock.vue";
|
|
||||||
|
|
||||||
const colors = [
|
const colors = [
|
||||||
{ name: "Front", value: "#e7c7b1" },
|
{ name: "Front", value: "#e7c7b1" },
|
||||||
|
@ -16,9 +15,9 @@ const colors = [
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<TextBlock>
|
<section>
|
||||||
<h1>{{ $route.meta.title }}</h1>
|
<h1>{{ $route.meta.title }}</h1>
|
||||||
</TextBlock>
|
</section>
|
||||||
|
|
||||||
<RefImage>
|
<RefImage>
|
||||||
<source
|
<source
|
||||||
|
@ -45,7 +44,7 @@ const colors = [
|
||||||
|
|
||||||
<ColorTable :colors="colors"></ColorTable>
|
<ColorTable :colors="colors"></ColorTable>
|
||||||
|
|
||||||
<TextBlock>
|
<section>
|
||||||
<p>
|
<p>
|
||||||
Viktor is a bipedal plantigrade Ankylosaurus. His skin is mostly
|
Viktor is a bipedal plantigrade Ankylosaurus. His skin is mostly
|
||||||
bicolored, with several shades of brown.
|
bicolored, with several shades of brown.
|
||||||
|
@ -63,7 +62,7 @@ const colors = [
|
||||||
strip of deep dark cedar brown. Arms and legs are distinguished by a light
|
strip of deep dark cedar brown. Arms and legs are distinguished by a light
|
||||||
earthy brown.
|
earthy brown.
|
||||||
</p>
|
</p>
|
||||||
</TextBlock>
|
</section>
|
||||||
|
|
||||||
<RefImage>
|
<RefImage>
|
||||||
<source
|
<source
|
||||||
|
@ -87,7 +86,7 @@ const colors = [
|
||||||
</template>
|
</template>
|
||||||
</RefImage>
|
</RefImage>
|
||||||
|
|
||||||
<TextBlock>
|
<section>
|
||||||
<p>
|
<p>
|
||||||
His entire body is speckled with scattered aquamarine spots, which come in
|
His entire body is speckled with scattered aquamarine spots, which come in
|
||||||
pairs of one large and one small spot. The only exceptions are the spots
|
pairs of one large and one small spot. The only exceptions are the spots
|
||||||
|
@ -107,5 +106,5 @@ const colors = [
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>He owes his strong, stocky physique to years of hard physical labor.</p>
|
<p>He owes his strong, stocky physique to years of hard physical labor.</p>
|
||||||
</TextBlock>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import TextBlock from "@/components/TextBlock.vue";
|
|
||||||
import AttributionTable from "@/components/AttributionTable.vue";
|
import AttributionTable from "@/components/AttributionTable.vue";
|
||||||
|
|
||||||
import ViktorRefAlpha from "@/assets/viktor-ref-SFW-alpha.png?w=400&webp&quality=100&imagetools";
|
import ViktorRefAlpha from "@/assets/viktor-ref-SFW-alpha.png?w=400&webp&quality=100&imagetools";
|
||||||
|
@ -26,7 +25,7 @@ const attributions = [
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<TextBlock>
|
<section>
|
||||||
<h1>{{ $route.meta.title }}</h1>
|
<h1>{{ $route.meta.title }}</h1>
|
||||||
<h2>Artwork</h2>
|
<h2>Artwork</h2>
|
||||||
<AttributionTable :attributions="attributions" />
|
<AttributionTable :attributions="attributions" />
|
||||||
|
@ -45,7 +44,7 @@ const attributions = [
|
||||||
<a href="https://antonkoovit.com/typefaces/arvo">Arvo</a> by
|
<a href="https://antonkoovit.com/typefaces/arvo">Arvo</a> by
|
||||||
<a href="https://antonkoovit.com/">Anton Koovit</a>
|
<a href="https://antonkoovit.com/">Anton Koovit</a>
|
||||||
</p>
|
</p>
|
||||||
</TextBlock>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss"></style>
|
<style lang="scss"></style>
|
||||||
|
|
|
@ -6,17 +6,16 @@ import TreeIcon from "@/assets/icons/TreeIcon.vue";
|
||||||
import CarIcon from "@/assets/icons/CarIcon.vue";
|
import CarIcon from "@/assets/icons/CarIcon.vue";
|
||||||
import HelmetSafetyIcon from "@/assets/icons/HelmetSafetyIcon.vue";
|
import HelmetSafetyIcon from "@/assets/icons/HelmetSafetyIcon.vue";
|
||||||
import BoxesIcon from "@/assets/icons/BoxesIcon.vue";
|
import BoxesIcon from "@/assets/icons/BoxesIcon.vue";
|
||||||
import TextBlock from "@/components/TextBlock.vue";
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<TextBlock>
|
<section>
|
||||||
<h1>{{ $route.meta.title }}</h1>
|
<h1>{{ $route.meta.title }}</h1>
|
||||||
<p>
|
<p>
|
||||||
Viktor's had many different jobs in the past, some of which where very
|
Viktor's had many different jobs in the past, some of which where very
|
||||||
formative, other's just paid the bills.
|
formative, other's just paid the bills.
|
||||||
</p>
|
</p>
|
||||||
</TextBlock>
|
</section>
|
||||||
|
|
||||||
<TimelineList>
|
<TimelineList>
|
||||||
<TimelineItem>
|
<TimelineItem>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import DataTable from "@/components/DataTable.vue";
|
import DataTable from "@/components/DataTable.vue";
|
||||||
import TextBlock from "@/components/TextBlock.vue";
|
|
||||||
|
|
||||||
const dob = new Date("1987-12-08");
|
const dob = new Date("1987-12-08");
|
||||||
const locale = "en-US";
|
const locale = "en-US";
|
||||||
|
@ -49,13 +48,13 @@ const sexData = [
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<TextBlock>
|
<section>
|
||||||
<h1>{{ $route.meta.title }}</h1>
|
<h1>{{ $route.meta.title }}</h1>
|
||||||
</TextBlock>
|
</section>
|
||||||
|
|
||||||
<DataTable :headings="heads" :data="data"></DataTable>
|
<DataTable :headings="heads" :data="data"></DataTable>
|
||||||
|
|
||||||
<TextBlock>
|
<section>
|
||||||
<h2>Personality</h2>
|
<h2>Personality</h2>
|
||||||
<p>
|
<p>
|
||||||
Viktor is not a man of many words, his manner of expression is simple and
|
Viktor is not a man of many words, his manner of expression is simple and
|
||||||
|
@ -82,15 +81,15 @@ const sexData = [
|
||||||
high-tech. He does have a smartphone, but he hates using it as much as he
|
high-tech. He does have a smartphone, but he hates using it as much as he
|
||||||
dislikes the fact he's dependent on owning one.
|
dislikes the fact he's dependent on owning one.
|
||||||
</p>
|
</p>
|
||||||
</TextBlock>
|
</section>
|
||||||
|
|
||||||
<TextBlock>
|
<section>
|
||||||
<h2>Sexuality</h2>
|
<h2>Sexuality</h2>
|
||||||
</TextBlock>
|
</section>
|
||||||
|
|
||||||
<DataTable :headings="sexHeads" :data="sexData"></DataTable>
|
<DataTable :headings="sexHeads" :data="sexData"></DataTable>
|
||||||
|
|
||||||
<TextBlock>
|
<section>
|
||||||
<p>
|
<p>
|
||||||
As a teenager, Viktor noticed that he felt a bit differently about the
|
As a teenager, Viktor noticed that he felt a bit differently about the
|
||||||
boys in his class. Especially in gym class, his eyes tended to linger
|
boys in his class. Especially in gym class, his eyes tended to linger
|
||||||
|
@ -117,5 +116,5 @@ const sexData = [
|
||||||
wouldn't remember much of the party, but what he didn't forget how good it
|
wouldn't remember much of the party, but what he didn't forget how good it
|
||||||
felt to give himself to another man.
|
felt to give himself to another man.
|
||||||
</p>
|
</p>
|
||||||
</TextBlock>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import TextBlock from "@/components/TextBlock.vue";
|
|
||||||
import WelcomeHeader from "@/components/WelcomeHeader.vue";</script>
|
import WelcomeHeader from "@/components/WelcomeHeader.vue";</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -8,10 +7,10 @@ import WelcomeHeader from "@/components/WelcomeHeader.vue";</script>
|
||||||
<template #sub>Character Reference Page</template>
|
<template #sub>Character Reference Page</template>
|
||||||
</WelcomeHeader>
|
</WelcomeHeader>
|
||||||
|
|
||||||
<TextBlock>
|
<section>
|
||||||
<h3>Welcome to Viktor's Ref Page</h3>
|
<h3>Welcome to Viktor's Ref Page</h3>
|
||||||
|
|
||||||
<p>Here you can learn all about the ankylosaurus named Viktor.</p>
|
<p>Here you can learn all about the ankylosaurus named Viktor.</p>
|
||||||
<p>Pick an item from the navigation to dive in!</p>
|
<p>Pick an item from the navigation to dive in!</p>
|
||||||
</TextBlock>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue