-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
459 additions
and
339 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
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
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,13 +1,24 @@ | ||
import BookForm from '@/components/BookForm/BookForm' | ||
import { createBook } from '@/core/book/infrastructure/actions' | ||
import { Card, CardBody, CardHeader } from '@nextui-org/react' | ||
import { Metadata } from 'next' | ||
|
||
import BookForm from '@/components/book-form' | ||
|
||
export const metadata: Metadata = { | ||
description: 'Biblioteca del Aula de Software Libre', | ||
title: 'Añadir un nuevo libro | Codex', | ||
} | ||
|
||
export default async function Page() { | ||
return ( | ||
<main> | ||
<h1> | ||
<strong>Crear Nuevo Libro</strong> | ||
</h1> | ||
<BookForm create={createBook} /> | ||
<Card className="grid grid-cols-1 lg:grid-cols-3 xl:grid-cols-4 items-start p-4"> | ||
<CardHeader> | ||
<h1 className="text-2xl font-extrabold">Añadir un nuevo libro</h1> | ||
</CardHeader> | ||
<CardBody className="col-span-1 lg:col-span-2 xl:col-span-3"> | ||
<BookForm /> | ||
</CardBody> | ||
</Card> | ||
</main> | ||
) | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
import { CardFooter } from '@nextui-org/react' | ||
import React, { ReactNode } from 'react' | ||
|
||
interface AuthModalFooterProperties { | ||
children: ReactNode | ||
} | ||
|
||
function useController(properties: AuthModalFooterProperties) { | ||
return { ...properties } | ||
} | ||
|
||
export default function AuthModalFooter(properties: AuthModalFooterProperties) { | ||
const { children } = useController(properties) | ||
return ( | ||
<CardFooter> | ||
<p className="text-small text-center">{children}</p> | ||
</CardFooter> | ||
) | ||
} |
6 changes: 3 additions & 3 deletions
6
src/components/AuthModal/AuthModalHeader.tsx → ...mponents/auth-modal/auth-modal-header.tsx
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
10 changes: 5 additions & 5 deletions
10
src/components/AuthModal/AuthModal.tsx → src/components/auth-modal/index.tsx
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
Oops, something went wrong.