-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/add tailwind and daisyui #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7b2b8ef
feat: integrate Tailwind CSS and PostCSS into the project
c3806ff
feat: add DaisyUI as a dependency and integrate it into the project
8267bc1
feat: create pages for province and embalse details with navigation l…
bad0788
feat: update page components to use async params and improve navigati…
5502531
fix: ensure proper formatting in globals.css for DaisyUI plugin
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 +1,6 @@ | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> | ||
| /// <reference path="./.next/types/routes.d.ts" /> | ||
|
|
||
| // NOTE: This file should not be edited | ||
| // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. |
This file contains hidden or 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 hidden or 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,6 @@ | ||
| const config = { | ||
| plugins: { | ||
| "@tailwindcss/postcss": {}, | ||
| }, | ||
| }; | ||
| export default config; |
This file contains hidden or 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 @@ | ||
| import Link from "next/link"; | ||
|
|
||
| interface Props { | ||
| params: Promise<{ provincia: string }>; | ||
| } | ||
|
|
||
| export default async function EmbalseProvinciaListadoPage({ params }: Props) { | ||
| const { provincia } = await params; | ||
| return ( | ||
| <div className="flex flex-col gap-8"> | ||
| <h2 className="text-4xl">Embalses de {provincia}</h2> | ||
|
|
||
| <Link href="/embalse/casasola" className="text-blue-500 text-xl"> | ||
| Embalse de Casasola | ||
| </Link> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or 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,12 @@ | ||
| import Link from "next/link"; | ||
|
|
||
| export default function EmbalsesProvinciaPage() { | ||
| return ( | ||
| <div className="flex flex-col gap-8"> | ||
| <h2 className="text-4xl">Embalse por provincias</h2> | ||
| <Link href="/embalse-provincia/malaga" className="text-blue-500 text-xl"> | ||
| Málaga | ||
| </Link> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or 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,14 @@ | ||
| import Link from "next/link"; | ||
|
|
||
| interface Props { | ||
| params: Promise<{ embalse: string }>; | ||
| } | ||
|
|
||
| export default async function EmbalseDetallePage({ params }: Props) { | ||
| const { embalse } = await params; | ||
| return ( | ||
| <div className="flex flex-col gap-8"> | ||
| <h2 className="text-4xl">Detalle del embalse: {embalse}</h2> | ||
| </div> | ||
| ); | ||
| } | ||
This file contains hidden or 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,2 @@ | ||
| @import "tailwindcss"; | ||
| @plugin "daisyui"; |
This file contains hidden or 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 hidden or 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,5 +1,19 @@ | ||
| import Link from "next/link"; | ||
|
|
||
| const RootPage = () => { | ||
| return <h2>Hello from Nextjs</h2>; | ||
| return ( | ||
| <div className="flex flex-col gap-8"> | ||
| <h2 className="text-4xl">Página de inicio</h2> | ||
| <div className="flex flex-col gap-4"> | ||
| <Link href="/embalse-provincia" className="mr-4 text-blue-500 text-3xl"> | ||
| Embalses por provincias | ||
| </Link> | ||
| <Link href="/embalse/casasola" className="mr-4 text-blue-500 text-3xl"> | ||
| Detalle del embalse | ||
| </Link> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default RootPage | ||
| export default RootPage; |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ | |
| ".next/types/**/*.ts", | ||
| "**/*.ts", | ||
| "**/*.tsx" | ||
| ], | ||
| , "postcss.config.js" ], | ||
|
||
| "exclude": [ | ||
| "node_modules" | ||
| ] | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Unused import:
Linkis imported but never used in this component. Consider removing this import to keep the code clean.