Set up global styling, and Tailwind

This commit is contained in:
Rasmus Rasmussen 2025-01-30 20:52:15 +01:00
parent 76ab2b07e2
commit 9581a5a18d
11 changed files with 1409 additions and 104 deletions

1363
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
"@vue/tsconfig": "^0.7.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.5.1",
"tailwindcss": "^4.0.0",
"tailwindcss": "^3.4.17",
"typescript": "~5.6.2",
"vite": "^6.0.5",
"vue-tsc": "^2.2.0"

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@ -3,17 +3,20 @@
<template>
<header>
<nav>
<RouterLink to="/Home">Go to Home</RouterLink>
<RouterLink to="/About">Go to About</RouterLink>
<RouterLink to="/Fortran">Fortran</RouterLink>
<RouterLink to="/Pascal">Pascal</RouterLink>
<RouterLink to="/Lisp">Lisp</RouterLink>
</nav>
<main>
<RouterView />
</main>
<div class="pt-10 px-4 text-2xl grid place-items-center">
<nav>
<RouterLink to="/Home">Home</RouterLink> |
<RouterLink to="/About">About</RouterLink> |
<RouterLink to="/Fortran">Fortran</RouterLink> |
<RouterLink to="/Pascal">Pascal</RouterLink> |
<RouterLink to="/Lisp">Lisp</RouterLink>
</nav>
</div>
</header>
<strong>Current route path:</strong> {{ $route.fullPath }}
<main class="pt-10 flex justify-center">
<div class="w-full max-w-screen-xl px-4 ">
<RouterView />
</div>
</main>
</template>

View File

@ -3,5 +3,10 @@
</script>
<template>
<h1>About Me!</h1>
<div>
<h1 class="text-3xl">Who Am I?</h1>
<hr>
<p>My name is Rasmus Rasmussen, and I'm primarely a backend developer. But lately, I've started to like developing in vue3. With TypeScript, of cause.</p>
</div>
</template>

View File

@ -3,7 +3,11 @@
</script>
<template>
<ul>
<li>Reading Files</li>
</ul>
<div>
<h1 class="text-3xl">Fortran</h1>
<hr>
<p>Fortran is an interesting language. It's one of the older languages still in use to this very day.</p>
</div>
</template>

View File

@ -3,5 +3,6 @@
</script>
<template>
<h1 class="text-3xl"> Under Construction</h1>
<p>lmao</p>
</template>

3
src/index.css Normal file
View File

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -1,6 +1,6 @@
import { createApp } from 'vue'
import './style.css'
import {createRouter, createWebHistory} from "vue-router";
import './index.css'
import App from './App.vue'
import Home from "./components/Home.vue";
import FortranIndex from "./components/Fortran/Fortran_Index.vue";

View File

@ -1,79 +0,0 @@
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
.card {
padding: 2em;
}
#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}

15
tailwind.config.js Normal file
View File

@ -0,0 +1,15 @@
/** @type {import('tailwindcss').Config} */
export default {
purge: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}'
],
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx,vue}",
],
theme: {
extend: {},
},
plugins: [],
}