make generic panel css class

This commit is contained in:
2023-03-29 22:45:30 +02:00
parent 1a3a493df4
commit 359abd3ab4
5 changed files with 152 additions and 77 deletions
-22
View File
@@ -1,22 +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: 25rem;
background-color: rgba(87, 50, 20, 0.45);
background-image: url("/img/background/panels/wood.png");
background-blend-mode: darken;
background-repeat: repeat;
}
#app {
width: 100%;
}
+52
View File
@@ -0,0 +1,52 @@
: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/panels/wood.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;
}
}
}
}
+18 -1
View File
@@ -1,7 +1,14 @@
<template> <template>
<div class="changelog"> <div class="changelog panel pinned-paper">
<div class="nail top-left">
<img src="/img/quests/overlays/nail.png" alt="" draggable="false"/>
</div>
<div class="nail top-right">
<img src="/img/quests/overlays/nail.png" alt="" draggable="false"/>
</div>
<h1>Changelog</h1> <h1>Changelog</h1>
<div class="changelog-entry" v-for="release in releases"> <div class="changelog-entry" v-for="release in releases">
<hr>
<h2>Version {{ release.name }}</h2> <h2>Version {{ release.name }}</h2>
<pre>{{ release.body }}</pre> <pre>{{ release.body }}</pre>
</div> </div>
@@ -54,17 +61,27 @@ export default defineComponent({
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
max-width: 45rem; max-width: 45rem;
width: 100%;
h1 { h1 {
font-size: 3rem; font-size: 3rem;
line-height: 1; line-height: 1;
margin: 0; margin: 0;
text-align: center; text-align: center;
} }
.changelog-entry { .changelog-entry {
width: 100%; width: 100%;
h2 { h2 {
margin: 0; margin: 0;
} }
hr {
border: 0;
border-bottom: 1px solid black;
}
pre { pre {
line-height: 1.2; line-height: 1.2;
margin: 0; margin: 0;
+1 -1
View File
@@ -2,7 +2,7 @@ import { createApp } from 'vue'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import './assets/main.css' import './assets/main.scss'
const app = createApp(App) const app = createApp(App)
+34 -6
View File
@@ -1,15 +1,29 @@
<template> <template>
<section class="technical-view"> <section class="technical-view">
<div class="socials panel pinned-paper">
<div class="nail top-left small">
<img src="/img/quests/overlays/nail.png" alt="" draggable="false"/>
</div>
<div class="nail top-right small">
<img src="/img/quests/overlays/nail.png" alt="" draggable="false"/>
</div>
<h1>Socials</h1> <h1>Socials</h1>
<div class="socials"> <div class="links">
<a class="link" href="https://discord.gg/j8KK5dGBps"><img class="icon" src="/img/icons/discord.svg" alt="Discord" />Discord</a> <a class="link" href="https://discord.gg/j8KK5dGBps">
<a class="link" href="https://github.com/YouHaveTrouble/GuildMaster"><img class="icon" src="/img/icons/github.svg" alt="GitHub" />GitHub</a> <img class="icon" src="/img/icons/discord.svg" alt="Discord"/>
Discord
</a>
<a class="link" href="https://github.com/YouHaveTrouble/GuildMaster">
<img class="icon" src="/img/icons/github.svg" alt="GitHub"/>
GitHub
</a>
</div>
</div> </div>
<ChangelogComponent/> <ChangelogComponent/>
</section> </section>
</template> </template>
<script lang="ts"> <script lang="ts">
@@ -31,18 +45,28 @@ export default defineComponent({
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
padding-block: 1rem; padding-block: 1rem;
h1 { h1 {
font-size: 3rem; font-size: 3rem;
line-height: 1; line-height: 1;
margin: 0; margin: 0;
} }
.socials { .socials {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1rem;
padding: 1rem;
.links {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
}
.link { .link {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@@ -55,6 +79,10 @@ export default defineComponent({
color: #000; color: #000;
font-weight: bold; font-weight: bold;
} }
}
}
.icon { .icon {
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;