7 changed files with 1390 additions and 54 deletions
-
1315package-lock.json
-
3package.json
-
6postcss.config.js
-
104src/App.vue
-
1src/main.ts
-
3src/style.css
-
12tailwind.config.js
1315
package-lock.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,6 @@ |
|||
export default { |
|||
plugins: { |
|||
tailwindcss: {}, |
|||
autoprefixer: {}, |
|||
}, |
|||
} |
@ -1,85 +1,87 @@ |
|||
<script setup lang="ts"> |
|||
import { RouterLink, RouterView } from 'vue-router' |
|||
import HelloWorld from './components/HelloWorld.vue' |
|||
import { RouterLink, RouterView } from "vue-router"; |
|||
import HelloWorld from "./components/HelloWorld.vue"; |
|||
</script> |
|||
|
|||
<template> |
|||
<header> |
|||
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" /> |
|||
<header> |
|||
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" /> |
|||
|
|||
<div class="wrapper"> |
|||
<HelloWorld msg="You did it!" /> |
|||
<div class="wrapper"> |
|||
<HelloWorld msg="You did it!" /> |
|||
|
|||
<nav> |
|||
<RouterLink to="/">Home</RouterLink> |
|||
<RouterLink to="/about">About</RouterLink> |
|||
</nav> |
|||
</div> |
|||
</header> |
|||
<h1 class="text-3xl font-bold underline">Hello world!</h1> |
|||
|
|||
<RouterView /> |
|||
<nav> |
|||
<RouterLink to="/">Home</RouterLink> |
|||
<RouterLink to="/about">About</RouterLink> |
|||
</nav> |
|||
</div> |
|||
</header> |
|||
|
|||
<RouterView /> |
|||
</template> |
|||
|
|||
<style scoped> |
|||
header { |
|||
line-height: 1.5; |
|||
max-height: 100vh; |
|||
line-height: 1.5; |
|||
max-height: 100vh; |
|||
} |
|||
|
|||
.logo { |
|||
display: block; |
|||
margin: 0 auto 2rem; |
|||
display: block; |
|||
margin: 0 auto 2rem; |
|||
} |
|||
|
|||
nav { |
|||
width: 100%; |
|||
font-size: 12px; |
|||
text-align: center; |
|||
margin-top: 2rem; |
|||
width: 100%; |
|||
font-size: 12px; |
|||
text-align: center; |
|||
margin-top: 2rem; |
|||
} |
|||
|
|||
nav a.router-link-exact-active { |
|||
color: var(--color-text); |
|||
color: var(--color-text); |
|||
} |
|||
|
|||
nav a.router-link-exact-active:hover { |
|||
background-color: transparent; |
|||
background-color: transparent; |
|||
} |
|||
|
|||
nav a { |
|||
display: inline-block; |
|||
padding: 0 1rem; |
|||
border-left: 1px solid var(--color-border); |
|||
display: inline-block; |
|||
padding: 0 1rem; |
|||
border-left: 1px solid var(--color-border); |
|||
} |
|||
|
|||
nav a:first-of-type { |
|||
border: 0; |
|||
border: 0; |
|||
} |
|||
|
|||
@media (min-width: 1024px) { |
|||
header { |
|||
display: flex; |
|||
place-items: center; |
|||
padding-right: calc(var(--section-gap) / 2); |
|||
} |
|||
|
|||
.logo { |
|||
margin: 0 2rem 0 0; |
|||
} |
|||
|
|||
header .wrapper { |
|||
display: flex; |
|||
place-items: flex-start; |
|||
flex-wrap: wrap; |
|||
} |
|||
|
|||
nav { |
|||
text-align: left; |
|||
margin-left: -1rem; |
|||
font-size: 1rem; |
|||
|
|||
padding: 1rem 0; |
|||
margin-top: 1rem; |
|||
} |
|||
header { |
|||
display: flex; |
|||
place-items: center; |
|||
padding-right: calc(var(--section-gap) / 2); |
|||
} |
|||
|
|||
.logo { |
|||
margin: 0 2rem 0 0; |
|||
} |
|||
|
|||
header .wrapper { |
|||
display: flex; |
|||
place-items: flex-start; |
|||
flex-wrap: wrap; |
|||
} |
|||
|
|||
nav { |
|||
text-align: left; |
|||
margin-left: -1rem; |
|||
font-size: 1rem; |
|||
|
|||
padding: 1rem 0; |
|||
margin-top: 1rem; |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,3 @@ |
|||
@tailwind base; |
|||
@tailwind components; |
|||
@tailwind utilities; |
@ -0,0 +1,12 @@ |
|||
/** @type {import('tailwindcss').Config} */ |
|||
export default { |
|||
content: [ |
|||
"./index.html", |
|||
"./src/**/*.{vue,js,ts,jsx,tsx}", |
|||
], |
|||
theme: { |
|||
extend: {}, |
|||
}, |
|||
plugins: [], |
|||
} |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue