build fixes

This commit is contained in:
genki_angel 2025-04-17 00:11:08 +01:00
parent e406047a60
commit 5ba7ce4e51
10 changed files with 202 additions and 25 deletions

View file

@ -1,14 +1,20 @@
<template> <template>
<div id="holder"> <div id="holder">
<div id="marquee"> <div id="marquee">
<img v-for="(item, path) in banners" :src="path" /> <img v-for="(item, path) in banners" :src="getBannerUrl(path)" />
<img v-for="(item, path) in banners" :src="path" /> <img v-for="(item, path) in banners" :src="getBannerUrl(path)" />
</div> </div>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
const banners = import.meta.glob("@/assets/images/banners/*") const banners = import.meta.glob("@/assets/images/banners/*")
function getBannerUrl(path: string) {
// return new URL(`${path}`, import.meta.url).href
const modules = import.meta.glob("/src/assets/images/banners/*", { eager: true });
const mod = modules[path] as { default: string };
return mod.default;
}
</script> </script>
<style lang="css" scoped> <style lang="css" scoped>

View file

@ -1,14 +1,20 @@
<template> <template>
<div id="holder"> <div id="holder">
<div id="marquee"> <div id="marquee">
<img v-for="(item, path) in blinkies" :src="path" /> <img v-for="(item, path) in blinkies" :src="getBlinkieUrl(path)" />
<img v-for="(item, path) in blinkies" :src="path" /> <img v-for="(item, path) in blinkies" :src="getBlinkieUrl(path)" />
</div> </div>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
const blinkies = import.meta.glob("@/assets/images/blinkies/*") const blinkies = import.meta.glob("@/assets/images/blinkies/*")
function getBlinkieUrl(path: string) {
// return new URL(`${path}`, import.meta.url).href
const modules = import.meta.glob("/src/assets/images/blinkies/*", { eager: true });
const mod = modules[path] as { default: string };
return mod.default;
}
</script> </script>
<style lang="css" scoped> <style lang="css" scoped>

109
src/components/link.vue Normal file
View file

@ -0,0 +1,109 @@
<template>
<a :href="props.url" target="_blank">
<div class="link highlight">
<div class="linkTitle">
<h3>{{ title }}</h3>
</div>
<div class="linkImage">
<img :src="getSocialUrl()">
</div>
<div class="linkDesc">
<p>{{ desc }}</p>
</div>
</div>
</a>
</template>
<script setup lang="ts">
const props = defineProps({
title: String,
url: String,
image: String,
desc: String
})
function getSocialUrl() {
return new URL(`../assets/images/socials/${props.image}.svg`, import.meta.url).href
}
</script>
<style scoped>
h3 {
margin: 0;
color: black;
font-size: 24px;
}
p {
text-align: center;
margin: 0;
color: #efefef;
}
a {
/* color: #efefef; */
width: 100%;
max-width: 800px;
text-decoration: none;
}
img {
width: 100%;
height: 100%;
color: #efefef;
}
.link {
display: grid;
grid-template-columns: 150px 1fr;
grid-template-rows: 1fr 150px;
gap: 0px 0px;
grid-template-areas:
"linkTitle linkTitle"
"linkImage linkDesc";
@media screen and (max-width: 600px) {
grid-template-columns: 75px 1fr;
grid-template-rows: 1fr 75px;
.linkImage {
padding: 6px;
}
.linkTitle {
padding: 4px;
background-color: rgba(222, 222, 108, 1);
text-align: left;
}
h3,
p {
font-size: 16px;
}
}
}
.linkTitle {
grid-area: linkTitle;
border: 2px solid;
/* padding: .5em; */
padding-right: .5em;
text-align: right;
background: linear-gradient(-90deg, rgba(222, 222, 108, 1) 0%, rgba(222, 222, 108, 1) 25%, rgba(0, 212, 255, 0) 100%);
/* color: black; */
}
.linkImage {
grid-area: linkImage;
border: 2px solid;
padding: .5em;
background-color: black;
}
.linkDesc {
grid-area: linkDesc;
border: 2px solid;
display: flex;
justify-content: center;
align-items: center;
}
</style>

View file

@ -112,7 +112,7 @@ li {
border: 2px solid; border: 2px solid;
margin: .5em; margin: .5em;
@media screen and (min-width: 450px) { @media screen and (min-width: 451px) {
display: none; display: none;
} }
} }

View file

@ -2,12 +2,18 @@
<div> <div>
<h2>stampbook</h2> <h2>stampbook</h2>
<div id="stamp"> <div id="stamp">
<img v-for="(item, path) in stamps" :src="path" /> <img v-for="(item, path) in stamps" :src="getStampUrl(path)" />
</div> </div>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
const stamps = import.meta.glob("@/assets/images/stamps/*") const stamps = import.meta.glob("@/assets/images/stamps/*")
function getStampUrl(path: string) {
// return new URL(`${path}`, import.meta.url).href
const modules = import.meta.glob("/src/assets/images/stamps/*", { eager: true });
const mod = modules[path] as { default: string };
return mod.default;
}
</script> </script>
<style scoped> <style scoped>
h2 { h2 {

View file

@ -1,7 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue' import HomeView from '@/views/HomeView.vue'
import SocialsView from '@/views/SocialsView.vue' import LinksView from '@/views/LinksView.vue'
import PetsView from '@/views/PetsView.vue' import PetsView from '@/views/PetsView.vue'
import PortfolioView from '@/views/PortfolioView.vue' import PortfolioView from '@/views/PortfolioView.vue'
@ -14,9 +14,9 @@ const router = createRouter({
component: HomeView, component: HomeView,
}, },
{ {
path: '/socials', path: '/links',
name: 'socials', name: 'links',
component: SocialsView, component: LinksView,
}, },
{ {
path: '/pets', path: '/pets',

45
src/views/LinksView.vue Normal file
View file

@ -0,0 +1,45 @@
<template>
<div id="links">
<h1>LINKS</h1>
<h2>Socials</h2>
<Link :title="'https://x.com/angelgenki'" :url="'https://x.com/angelgenki'" :image="'twitter'" :desc="'my twitter, i mostly just tweet silly stuff'"/>
<Link :title="'discord'" :image="'discord'" :desc="'genki_angel'"/>
<Link :title="'https://www.roblox.com'" :url="'https://www.roblox.com/users/1757381'" :image="'roblox'" :desc="'@genki_angel'"/>
<h2>Development</h2>
<Link :title="'https://git.banii.cafe/'" :url="'https://git.banii.cafe/'" :image="'git'" :desc="'i upload all my public repos here'"/>
<Link :title="'https://github.com/genki-angel'" :url="'https://github.com/genki-angel'" :image="'github'" :desc="'my github, not very active'"/>
<Link :title="'https://x.com/genki_rbxdev'" :url="'https://x.com/genki_rbxdev'" :image="'twitter'" :desc="'i post roblox dev stuff here'"/>
</div>
</template>
<script setup lang="ts">
import Underconstruction from '@/components/underconstruction.vue';
import Link from '@/components/link.vue';
</script>
<style scoped>
#links {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1em;
}
h1 {
margin: 0;
margin-top: 1em;
}
h2 {
margin-bottom: 0;
}
@media screen and (max-width: 600px) {
h1, h2 {
margin: 0;
}
h2 {
font-size: 32px;
}
}
</style>

View file

@ -30,8 +30,8 @@
<pet :name="'???'" :image="'tarantula3'"> <pet :name="'???'" :image="'tarantula3'">
<div> <div>
<h4 class="highlight">Venezuelan Suntiger</h4> <h4 class="highlight">Venezuelan Suntiger</h4>
<p>currently my biggest tarantula!<br>they have not been here for long, but they love to climb around in <p>currently my biggest tarantula!<br>they have not been here for long, but they love to climb around
their enclosure and hide behind their wall<br><span class="info">picture coming soon!</span></p> and eat bugs</p>
</div> </div>
</pet> </pet>
<h2>ISOPODS</h2> <h2>ISOPODS</h2>
@ -76,15 +76,19 @@ p {
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
h1, h2, h4 {
h1,
h2,
h4 {
font-size: 32px; font-size: 32px;
margin: 0; margin: 0;
} }
h4 { h4 {
text-align: center; text-align: center;
margin-top: 0; margin-top: 0;
} }
p { p {
text-align: center; text-align: center;
font-size: 20px; font-size: 20px;

View file

@ -1,8 +0,0 @@
<template>
<Underconstruction />
</template>
<script setup lang="ts">
import Underconstruction from '@/components/underconstruction.vue';
</script>
<style scoped></style>

View file

@ -12,7 +12,16 @@ export default defineConfig({
], ],
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url)),
// '@/assets': fileURLToPath(new URL('./assets', import.meta.url))
}, },
}, },
assetsInclude: ["**/*.GIF"],
build: {
rollupOptions: {
output: {
assetFileNames: `assets/[name].[ext]`
}
}
}
}) })