LAYOUT
+Hello world
+Hello world
> ); } diff --git a/web/src/types/routes.ts b/web/src/types/routes.ts new file mode 100644 index 0000000..a6d3a47 --- /dev/null +++ b/web/src/types/routes.ts @@ -0,0 +1,18 @@ +const VERSION_FLAG = "/v2"; + +const ROUTE_CONSTANTS: { + Home: string; + Favorites: string; + Create: string; + Profile: string; + ShoppingList: string; +} = { + Home: `${VERSION_FLAG}/web/home`, + Favorites: `${VERSION_FLAG}/web/favorites`, + Create: `${VERSION_FLAG}/web/create`, + Profile: `${VERSION_FLAG}/web/profile`, + ShoppingList: `${VERSION_FLAG}/web/list`, + +}; + +export default ROUTE_CONSTANTS; diff --git a/web/tailwind.config.js b/web/tailwind.config.js new file mode 100644 index 0000000..0b7814b --- /dev/null +++ b/web/tailwind.config.js @@ -0,0 +1,8 @@ +module.exports = { + content: [ + "./index.html", + "./src/**/*.{js,ts,jsx,tsx}" + ], + theme: { extend: {}, }, + plugins: [], +} diff --git a/web/vite.config.ts b/web/vite.config.ts index 2328e17..fa09b44 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,7 +1,8 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react-swc' +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react-swc'; +import tailwindcss from '@tailwindcss/vite'; // https://vite.dev/config/ export default defineConfig({ - plugins: [react()], + plugins: [react(), tailwindcss()], })