Set up global styling, and Tailwind
This commit is contained in:
parent
76ab2b07e2
commit
9581a5a18d
1363
package-lock.json
generated
1363
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,7 @@
|
|||||||
"@vue/tsconfig": "^0.7.0",
|
"@vue/tsconfig": "^0.7.0",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"postcss": "^8.5.1",
|
"postcss": "^8.5.1",
|
||||||
"tailwindcss": "^4.0.0",
|
"tailwindcss": "^3.4.17",
|
||||||
"typescript": "~5.6.2",
|
"typescript": "~5.6.2",
|
||||||
"vite": "^6.0.5",
|
"vite": "^6.0.5",
|
||||||
"vue-tsc": "^2.2.0"
|
"vue-tsc": "^2.2.0"
|
||||||
|
6
postcss.config.js
Normal file
6
postcss.config.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export default {
|
||||||
|
plugins: {
|
||||||
|
tailwindcss: {},
|
||||||
|
autoprefixer: {},
|
||||||
|
},
|
||||||
|
}
|
25
src/App.vue
25
src/App.vue
@ -3,17 +3,20 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
<div class="pt-10 px-4 text-2xl grid place-items-center">
|
||||||
<RouterLink to="/Home">Go to Home</RouterLink>
|
<nav>
|
||||||
<RouterLink to="/About">Go to About</RouterLink>
|
<RouterLink to="/Home">Home</RouterLink> |
|
||||||
<RouterLink to="/Fortran">Fortran</RouterLink>
|
<RouterLink to="/About">About</RouterLink> |
|
||||||
<RouterLink to="/Pascal">Pascal</RouterLink>
|
<RouterLink to="/Fortran">Fortran</RouterLink> |
|
||||||
<RouterLink to="/Lisp">Lisp</RouterLink>
|
<RouterLink to="/Pascal">Pascal</RouterLink> |
|
||||||
</nav>
|
<RouterLink to="/Lisp">Lisp</RouterLink>
|
||||||
<main>
|
</nav>
|
||||||
<RouterView />
|
</div>
|
||||||
</main>
|
|
||||||
</header>
|
</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>
|
</template>
|
@ -3,5 +3,10 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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>
|
</template>
|
@ -3,7 +3,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ul>
|
<div>
|
||||||
<li>Reading Files</li>
|
<h1 class="text-3xl">Fortran</h1>
|
||||||
</ul>
|
<hr>
|
||||||
|
<p>Fortran is an interesting language. It's one of the older languages still in use to this very day.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</template>
|
</template>
|
@ -3,5 +3,6 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<h1 class="text-3xl"> Under Construction</h1>
|
||||||
<p>lmao</p>
|
<p>lmao</p>
|
||||||
</template>
|
</template>
|
3
src/index.css
Normal file
3
src/index.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
@ -1,6 +1,6 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import './style.css'
|
|
||||||
import {createRouter, createWebHistory} from "vue-router";
|
import {createRouter, createWebHistory} from "vue-router";
|
||||||
|
import './index.css'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import Home from "./components/Home.vue";
|
import Home from "./components/Home.vue";
|
||||||
import FortranIndex from "./components/Fortran/Fortran_Index.vue";
|
import FortranIndex from "./components/Fortran/Fortran_Index.vue";
|
||||||
|
@ -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
15
tailwind.config.js
Normal 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: [],
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user