new page layout

This commit is contained in:
2025-12-10 00:58:38 +00:00
parent 21eeb351c8
commit b6c9d8d80f
13 changed files with 111 additions and 34 deletions

View File

@@ -1,13 +1,26 @@
<script setup>
import { ref, onMounted } from "vue";
import { ref, onMounted, computed } from "vue";
import { useAuthStore } from "@/stores/auth";
const loggedIn = ref(false);
const auth = useAuthStore();
const username = ref("");
const password = ref("");
const loggedIn = computed(() => Object.keys(auth.user.ID || {}).length > 0);
function handleLogin() {
auth.logIn(username.value, password.value);
}
</script>
<template>
<div v-if="!loggedIn">
<div v-if="loggedIn">
<p>{{ auth.user.ID }}</p>
<p>{{ auth.user.username }}</p>
</div>
<div v-else>
<h1>login</h1>
<textarea>Username</textarea>
<textarea>Password</textarea>
<textarea v-model="username"></textarea>
<textarea type="password" v-model="password"></textarea>
<button @click="handleLogin">Log In</button>
</div>
</template>

View File

@@ -1,3 +1,11 @@
<template>
<div></div>
<div>
<img src="/img/epic.jpeg" />
</div>
</template>
<style scoped>
img {
width: 100%;
}
</style>

View File

@@ -18,5 +18,13 @@ onMounted(() => {
</script>
<template>
<div></div>
<div>
<img src="/img/epic.jpeg" />
</div>
</template>
<style scoped>
img {
width: 100%;
}
</style>

View File

@@ -1,3 +1,11 @@
<template>
<div></div>
<div>
<img src="/img/epic.jpeg" />
</div>
</template>
<style scoped>
img {
width: 100%;
}
</style>

View File

@@ -6,6 +6,14 @@
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
</div>
</div>
</template>

View File

@@ -3,19 +3,19 @@
<RouterLink to="/cv">
<img src="/img/stamps/BC7BDBB9-36FF-4DBE-B825-3603BFE00BE0.gif" />
</RouterLink>
<RouterLink to="/login">
<RouterLink to="/admin">
<img src="/img/stamps/BC7BDBB9-36FF-4DBE-B825-3603BFE00BE0.gif" />
</RouterLink>
<RouterLink to="/login">
<RouterLink to="/admin">
<img src="/img/stamps/BC7BDBB9-36FF-4DBE-B825-3603BFE00BE0.gif" />
</RouterLink>
<RouterLink to="/login">
<RouterLink to="/admin">
<img src="/img/stamps/BC7BDBB9-36FF-4DBE-B825-3603BFE00BE0.gif" />
</RouterLink>
<RouterLink to="/login">
<RouterLink to="/admin">
<img src="/img/stamps/BC7BDBB9-36FF-4DBE-B825-3603BFE00BE0.gif" />
</RouterLink>
<RouterLink to="/login">
<RouterLink to="/admin">
<img src="/img/stamps/BC7BDBB9-36FF-4DBE-B825-3603BFE00BE0.gif" />
</RouterLink>
</div>

View File

@@ -10,9 +10,7 @@ let idx = 0;
async function fetchRecent() {
try {
const res = await axios.get(
"https://adam-french.co.uk/api/spotify/recent",
);
const res = await axios.get("/api/spotify/recent");
songs = res.data;
fetched.value = true;
song.value = songs[0];

View File

@@ -1,3 +1,11 @@
<template>
<div></div>
<div>
<img src="/img/epic.jpeg" />
</div>
</template>
<style scoped>
img {
width: 100%;
}
</style>