Add Landing page and move Home to /stp route
New professional landing page at / with bio, about section, and nav links. Previous home page now lives at /stp. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +1,18 @@
|
|||||||
import { createRouter, createWebHistory } from "vue-router";
|
import { createRouter, createWebHistory } from "vue-router";
|
||||||
import Home from "@/views/home/Home.vue";
|
import Landing from "@/views/Landing.vue";
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
|
name: "landing",
|
||||||
|
component: Landing,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/stp",
|
||||||
name: "home",
|
name: "home",
|
||||||
component: Home,
|
component: () => import("@/views/home/Home.vue"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/cv",
|
path: "/cv",
|
||||||
|
|||||||
56
nginx/vue/src/views/Landing.vue
Normal file
56
nginx/vue/src/views/Landing.vue
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<script setup>
|
||||||
|
import Link from "@/components/text/Link.vue";
|
||||||
|
import InlineLink from "@/components/text/InlineLink.vue";
|
||||||
|
import Header from "@/components/text/Header.vue";
|
||||||
|
import Paragraph from "@/components/text/Paragraph.vue";
|
||||||
|
|
||||||
|
const links = [
|
||||||
|
{ name: "GitHub", href: "https://github.com/SteveThePug" },
|
||||||
|
{ name: "Gitea", href: "/gitea/explore/repos" },
|
||||||
|
{ name: "Spotify", href: "https://open.spotify.com/user/stevethepug" },
|
||||||
|
];
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<main class="halftone flex justify-center px-4 py-16">
|
||||||
|
<div class="max-w-xl w-full flex flex-col gap-12">
|
||||||
|
<section>
|
||||||
|
<Header>Adam French</Header>
|
||||||
|
<Paragraph>
|
||||||
|
Junior software engineer focused on full-stack development,
|
||||||
|
systems programming, and infrastructure. First Class Honours
|
||||||
|
in Computer Science with Mathematics from Leeds and
|
||||||
|
Waterloo.
|
||||||
|
</Paragraph>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<Header>About</Header>
|
||||||
|
<Paragraph>
|
||||||
|
This website is self-hosted and has a lot more on it than it
|
||||||
|
needs to. Please have a look at my
|
||||||
|
<InlineLink to="/cv">CV</InlineLink> for a full breakdown of
|
||||||
|
my experience, projects, and skills. Please visit
|
||||||
|
<InlineLink to="/stp">STP</InlineLink> for the prefered but
|
||||||
|
less professional experience.
|
||||||
|
</Paragraph>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="navRow flex flex-row flex-wrap gap-4 justify-around">
|
||||||
|
<Link to="/cv"> CV </Link>
|
||||||
|
<Link to="/stp"> STP </Link>
|
||||||
|
<Link href="mailto:adam.a.french@outlook.com"> Email </Link>
|
||||||
|
<Link v-for="link in links" :key="link.name" :href="link.href">
|
||||||
|
{{ link.name }}
|
||||||
|
</Link>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.navRow > a {
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border: 1px solid currentColor;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user