simple collage implementation
This commit is contained in:
@@ -88,11 +88,6 @@ p {
|
|||||||
margin: var(--margin);
|
margin: var(--margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
video {
|
|
||||||
width: 100%;
|
|
||||||
object-fit: contain;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
@@ -115,43 +110,6 @@ tr {
|
|||||||
height: 55px;
|
height: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tile1 {
|
|
||||||
width: 300px;
|
|
||||||
border: 30px solid;
|
|
||||||
border-image: url("/img/borders/border1inv.gif") 30 round;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tile3 {
|
|
||||||
width: 936px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.w100 {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.w80 {
|
|
||||||
width: 80%;
|
|
||||||
}
|
|
||||||
.w50 {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
.w49 {
|
|
||||||
width: 49%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.w300px {
|
|
||||||
width: 300px;
|
|
||||||
}
|
|
||||||
.w200px {
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.h300px {
|
|
||||||
height: 300px;
|
|
||||||
}
|
|
||||||
.h200px {
|
|
||||||
height: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* BORDERS */
|
/* BORDERS */
|
||||||
.bdr-1 {
|
.bdr-1 {
|
||||||
border: 30px solid;
|
border: 30px solid;
|
||||||
|
|||||||
@@ -1,12 +1,35 @@
|
|||||||
|
<script setup>
|
||||||
|
import { ref } from "vue";
|
||||||
|
|
||||||
|
const images = [
|
||||||
|
"/img/memes/fire-woman.gif",
|
||||||
|
"/img/memes/pidgeon.gif",
|
||||||
|
"/img/memes/no_slip.png",
|
||||||
|
"/img/memes/epic.jpeg",
|
||||||
|
];
|
||||||
|
|
||||||
|
const currentIndex = ref(0);
|
||||||
|
|
||||||
|
function nextImage() {
|
||||||
|
currentIndex.value = Math.floor(Math.random() * 100) % images.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
setInterval(nextImage, 10000);
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex-col center-content">
|
<div class="image-viewer" @click="nextImage">
|
||||||
<h2>Pidgeon [will be collage]</h2>
|
<img
|
||||||
<img src="/img/memes/pidgeon.gif" />
|
:src="images[currentIndex]"
|
||||||
|
v-on:click="nextImage"
|
||||||
|
alt="Image Viewer"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,26 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex-col space-between">
|
<div class="flex-col space-between">
|
||||||
<div class="flex-col gap">
|
<div class="flex-col gap">
|
||||||
<RouterLink class="bdr-secondary" to="/cv">
|
<RouterLink class="bdr-2" to="/cv">
|
||||||
<h1>CV</h1>
|
<h1>CV</h1>
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
<RouterLink class="bdr-secondary" to="/admin">
|
<!-- <RouterLink class="bdr-2" to="/shrines/demoman">
|
||||||
|
<h1>Demo</h1>
|
||||||
|
</RouterLink> -->
|
||||||
|
<RouterLink class="bdr-2" to="/admin">
|
||||||
<h1>ADMIN</h1>
|
<h1>ADMIN</h1>
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-col gap">
|
<div class="flex-col gap">
|
||||||
<a
|
<a class="bdr-2" href="https://steamcommunity.com/id/SteveThePug"
|
||||||
class="bdr-secondary"
|
|
||||||
href="https://steamcommunity.com/id/SteveThePug"
|
|
||||||
><h1>Steam</h1></a
|
><h1>Steam</h1></a
|
||||||
>
|
>
|
||||||
<a href="https://github.com/SteveThePug" class="bdr-secondary"
|
<a href="https://github.com/SteveThePug" class="bdr-2"
|
||||||
><h1>Github</h1></a
|
><h1>Github</h1></a
|
||||||
>
|
>
|
||||||
<a
|
<a href="https://open.spotify.com/user/stevethepug" class="bdr-2">
|
||||||
href="https://open.spotify.com/user/stevethepug"
|
|
||||||
class="bdr-secondary"
|
|
||||||
>
|
|
||||||
<h1>Spotify</h1></a
|
<h1>Spotify</h1></a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,27 +1,28 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="flex-col">
|
||||||
<video width="600" height="400" controls preload="none">
|
<p><a href="https://wiki.teamfortress.com/wiki/Demoman">The goat</a></p>
|
||||||
|
<video class="bdr-1" width="300" height="400" controls preload="none">
|
||||||
<source
|
<source
|
||||||
src="/img/demoman/1760582395316219.webm"
|
src="/img/demoman/1760582395316219.webm"
|
||||||
type="video/webm"
|
type="video/webm"
|
||||||
/>
|
/>
|
||||||
</video>
|
</video>
|
||||||
<video width="600" height="400" controls preload="none">
|
<video class="bdr-1" width="300" height="400" controls preload="none">
|
||||||
<source
|
<source
|
||||||
src="/img/demoman/1761052136609718.webm"
|
src="/img/demoman/1761052136609718.webm"
|
||||||
type="video/webm"
|
type="video/webm"
|
||||||
/>
|
/>
|
||||||
</video>
|
</video>
|
||||||
<video width="600" height="400" controls preload="none">
|
<video class="bdr-1" width="600" height="400" controls preload="none">
|
||||||
<source src="/img/demoman/1761088452011210.mp4" type="video/mp4" />
|
<source src="/img/demoman/1761088452011210.mp4" type="video/mp4" />
|
||||||
</video>
|
</video>
|
||||||
<video width="600" height="400" controls preload="none">
|
<video class="bdr-1" width="600" height="400" controls preload="none">
|
||||||
<source
|
<source
|
||||||
src="/img/demoman/1761570214170465.webm"
|
src="/img/demoman/1761570214170465.webm"
|
||||||
type="video/webm"
|
type="video/webm"
|
||||||
/>
|
/>
|
||||||
</video>
|
</video>
|
||||||
<video width="600" height="400" controls preload="none">
|
<video class="bdr-1" width="600" height="400" controls preload="none">
|
||||||
<source
|
<source
|
||||||
src="/img/demoman/1761828457509465.webm"
|
src="/img/demoman/1761828457509465.webm"
|
||||||
type="video/webm"
|
type="video/webm"
|
||||||
@@ -29,3 +30,5 @@
|
|||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
|
|||||||
Reference in New Issue
Block a user