-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding full tailwind, adding google fonts;
some ui refactoring; adding modal content WIP;
- Loading branch information
Showing
11 changed files
with
214 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div :class="`px-3 h-6 rounded-full text-xs font-semibold flex items-center bg-${badgeColor}-300 text-${badgeColor}-700`"> | ||
<span :class="`w-2 h-2 rounded-full mr-1 bg-${badgeColor}-400`"></span> | ||
<span> | ||
<slot></slot> | ||
</span> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
const column = defineProps<{ | ||
color: string; | ||
}>() | ||
// add a computed css classes | ||
const badgeColor = computed(() => { | ||
return column.color | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
// https://nuxt.com/docs/api/configuration/nuxt-config | ||
export default defineNuxtConfig({ | ||
css: ['~/assets/css/main.css'], | ||
modules: [ | ||
'@nuxtjs/supabase', | ||
'@nuxtjs/tailwindcss', | ||
'@nuxtjs/color-mode' | ||
] | ||
'@nuxtjs/google-fonts' | ||
], | ||
googleFonts: { | ||
families: { | ||
Rubik: true, | ||
Roboto: true, | ||
Lato: true, | ||
// 'Josefin+Sans': true, | ||
// Lato: [100, 300], | ||
// Raleway: { | ||
// wght: [100, 400], | ||
// ital: [100] | ||
// }, | ||
} | ||
}, | ||
postcss: { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import dayjs from 'dayjs' | ||
import relativeTime from 'dayjs/plugin/relativeTime.js' | ||
import LocalizedFormat from 'dayjs/plugin/localizedFormat.js' | ||
import ptbr from 'dayjs/locale/pt-br.js' | ||
|
||
|
||
export default defineNuxtPlugin((nuxtApp) => { | ||
dayjs.extend(LocalizedFormat) | ||
dayjs.extend(relativeTime) | ||
dayjs.locale(ptbr) | ||
nuxtApp.provide('dayjs', dayjs) | ||
}) | ||
// declare module '#app' { | ||
// interface NuxtApp { | ||
// $dayjs: dayjs.Dayjs | ||
// } | ||
// } | ||
// declare module '@vue/runtime-core' { | ||
// interface ComponentCustomProperties { | ||
// $dayjs(date?: dayjs.ConfigType): dayjs.Dayjs | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: [ | ||
"./components/**/*.{js,vue,ts}", | ||
"./layouts/**/*.vue", | ||
"./pages/**/*.vue", | ||
"./plugins/**/*.{js,ts}", | ||
"./nuxt.config.{js,ts}", | ||
"./app.vue", | ||
], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
'sans': ['Rubik', 'ui-sans-serif', 'system-ui'], | ||
'serif': ['Rubik', 'ui-sans-serif', 'system-ui'], | ||
'body': ['Rubik', 'ui-sans-serif', 'system-ui'], | ||
// 'serif': ['ui-serif', 'Georgia', ...], | ||
// 'mono': ['ui-monospace', 'SFMono-Regular', ...], | ||
// 'display': ['Oswald', ...], | ||
// 'body': ['"Open Sans"', ...], | ||
} | ||
}, | ||
}, | ||
plugins: [], | ||
} |
Oops, something went wrong.
2318875
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nuxt3-supabase-tasks – ./
nuxt3-supabase-tasks.vercel.app
t.loco.ltd
nuxt3-supabase-tasks-pixtame.vercel.app
nuxt3-supabase-tasks-git-main-pixtame.vercel.app