add tailwind and associated parts to apps/rank
This commit is contained in:
parent
c481fcf0c1
commit
f59602b18c
10 changed files with 571 additions and 7 deletions
5
apps/rank/.prettierrc.cjs
Normal file
5
apps/rank/.prettierrc.cjs
Normal file
|
@ -0,0 +1,5 @@
|
|||
/** @type {import("prettier").Options} */
|
||||
module.exports = {
|
||||
...require("@pompydev/prettier-config"),
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
}
|
|
@ -1,3 +1,19 @@
|
|||
<script setup>
|
||||
const colorMode = useColorMode()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtPage />
|
||||
<div class="min-h-screen bg-white dark:bg-gray-800 dark:text-gray-200">
|
||||
<p class="p-4 pb-2">
|
||||
<select
|
||||
v-model="colorMode.preference"
|
||||
class="h-8 w-24 border dark:border-gray-700 dark:bg-gray-900 dark:text-white"
|
||||
>
|
||||
<option value="system">System</option>
|
||||
<option value="light">Light</option>
|
||||
<option value="dark">Dark</option>
|
||||
</select>
|
||||
</p>
|
||||
<NuxtPage class="mx-auto p-4" />
|
||||
</div>
|
||||
</template>
|
||||
|
|
3
apps/rank/assets/css/tailwind.css
Normal file
3
apps/rank/assets/css/tailwind.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
|
@ -5,6 +5,7 @@ export default defineNuxtConfig({
|
|||
compatibilityDate: "2024-11-01",
|
||||
devServer: { port: 3001 },
|
||||
devtools: { enabled: true },
|
||||
modules: ["@nuxtjs/color-mode", "@nuxtjs/tailwindcss"],
|
||||
app: {
|
||||
head: {
|
||||
title, // default fallback title
|
||||
|
@ -14,4 +15,9 @@ export default defineNuxtConfig({
|
|||
},
|
||||
},
|
||||
},
|
||||
|
||||
// https://color-mode.nuxtjs.org/#configuration
|
||||
colorMode: {
|
||||
classSuffix: "",
|
||||
},
|
||||
})
|
||||
|
|
|
@ -10,8 +10,15 @@
|
|||
"postinstall": "nuxt prepare"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pompydev/prettier-config": "workspace:*",
|
||||
"@pompydev/tailwind-config": "workspace:*",
|
||||
"@nuxtjs/color-mode": "3.5.2",
|
||||
"nuxt": "3.16.0",
|
||||
"vue": "3.5.13",
|
||||
"vue-router": "4.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxtjs/tailwindcss": "6.13.2",
|
||||
"prettier-plugin-tailwindcss": "^0.5.9"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@ useHead({
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<h1>Content creators ranking</h1>
|
||||
<NuxtLink href="/">Back</NuxtLink>
|
||||
<h1 class="text-4xl font-black">Content creators ranking</h1>
|
||||
<NuxtLink href="/" class="underline">Back</NuxtLink>
|
||||
</template>
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
<template>
|
||||
<h1>
|
||||
<h1 class="text-4xl font-black">
|
||||
pomp's<br />
|
||||
biased & opinionated<br />
|
||||
rankings DB
|
||||
</h1>
|
||||
<NuxtLink href="/content-creators">Content Creators</NuxtLink>
|
||||
|
||||
<NuxtLink href="/content-creators" class="underline">
|
||||
Content Creators
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
|
6
apps/rank/tailwind.config.js
Normal file
6
apps/rank/tailwind.config.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import myPreset from "@pompydev/tailwind-config/tailwind.config.js"
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
presets: [myPreset],
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue