generated from FGA0138-MDS-Ajax/template-repository
-
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.
Merge pull request #14 from FGA0138-MDS-Ajax/front
Front
- Loading branch information
Showing
57 changed files
with
1,080 additions
and
442 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,15 @@ | ||
"use server"; | ||
|
||
import * as z from "zod"; | ||
|
||
import { CadastroSchema } from "@/schemas"; | ||
|
||
export const register = async (values: z.infer<typeof CadastroSchema>) => { | ||
const validatedFields = CadastroSchema.safeParse(values); | ||
|
||
if(!validatedFields.success) { | ||
return { error: "Campos inválidos!" }; | ||
} | ||
|
||
return { success: "Bem vindo!" }; | ||
}; |
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,15 @@ | ||
"use server"; | ||
|
||
import * as z from "zod"; | ||
|
||
import { LoginSchema } from "@/schemas"; | ||
|
||
export const login = async (values: z.infer<typeof LoginSchema>) => { | ||
const validatedFields = LoginSchema.safeParse(values); | ||
|
||
if(!validatedFields.success) { | ||
return { error: "Campos inválidos!" }; | ||
} | ||
|
||
return { success: "Bem vindo!" }; | ||
}; |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,73 @@ | ||
"use client"; | ||
|
||
import React from 'react'; | ||
import { cn } from '@/lib/utils'; | ||
import { Match } from '@/app/models/match'; | ||
import { Bebas_Neue } from 'next/font/google'; | ||
import { GridTimes } from '@/components/auth/home/grid'; | ||
import { CardTimes } from '@/components/auth/home/card-times'; | ||
|
||
|
||
const font = Bebas_Neue({ | ||
subsets: ['latin'], | ||
weight: ['400'], | ||
}); | ||
|
||
const h1ClassName = "text-4xl font-semibold text-black drop-shadow-md text-center mt-8 mb-8"; | ||
const h2ClassName = "text-3xl font-semibold text-black drop-shadow-md"; | ||
const divCardsClassName = "w-full pt-4 pb-4"; | ||
|
||
// Partidas exemplos | ||
const lib = new Match("Libertadores", "24/06/2024 13:30", "Time A", "Time B", ["Globo", "SporTV"]); | ||
const br = new Match("Brasileirão", "24/06/2024 13:30", "Time A", "Time B", ["Globo", "SporTV"]); | ||
|
||
export default function HomePage() { | ||
return ( | ||
<div className="min-h-full w-full"> | ||
<div className="h-full grid grid-cols-2 divide-x-2 divide-black"> | ||
|
||
<div className="pt-2 pl-4 pr-4"> | ||
<h1 className={cn(h1ClassName,font.className | ||
)}>Rodada X</h1> | ||
<GridTimes /> | ||
</div> | ||
|
||
<div className="pt-2 pl-4 pr-4"> | ||
<h1 className={cn(h1ClassName,font.className)} | ||
>Time Usuário</h1> | ||
|
||
<div className="grid grid-rows-3 divide-y-2 divide-black content-between"> | ||
<div className="w-full pb-4"> | ||
<h2 className={cn( | ||
h2ClassName,font.className)} | ||
>Brasileirão</h2> | ||
|
||
<div className='w-432px mx-auto'> | ||
<CardTimes match={br}/> | ||
</div> | ||
|
||
</div> | ||
|
||
<div className={divCardsClassName}> | ||
<h2 className={cn(h2ClassName,font.className)} | ||
>Libertadores</h2> | ||
|
||
<div className='w-432px mx-auto'> | ||
<CardTimes match={lib}/> | ||
</div> | ||
</div> | ||
|
||
<div className={divCardsClassName}> | ||
<h2 className={cn(h2ClassName,font.className)} | ||
>Canais de Transmissão</h2> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
); | ||
}; |
5 changes: 1 addition & 4 deletions
5
.../auth/home/Times/America_Mineiro/page.tsx → ...app/home/timesBr/America_Mineiro/page.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
5 changes: 1 addition & 4 deletions
5
...h/home/Times/Atletico_Goianiense/page.tsx → ...home/timesBr/Atletico_Goianiense/page.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
4 changes: 0 additions & 4 deletions
4
...auth/home/Times/Atletico_Mineiro/page.tsx → ...pp/home/timesBr/Atletico_Mineiro/page.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
5 changes: 1 addition & 4 deletions
5
...h/home/Times/Atletico_Paranaense/page.tsx → ...home/timesBr/Atletico_Paranaense/page.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
4 changes: 0 additions & 4 deletions
4
...client/app/auth/home/Times/Bahia/page.tsx → ...to/client/app/home/timesBr/Bahia/page.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
5 changes: 1 addition & 4 deletions
5
...ent/app/auth/home/Times/Botafogo/page.tsx → ...client/app/home/timesBr/Botafogo/page.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
5 changes: 1 addition & 4 deletions
5
...t/app/auth/home/Times/Bragantino/page.tsx → ...ient/app/home/timesBr/Bragantino/page.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
5 changes: 1 addition & 4 deletions
5
...t/app/auth/home/Times/Corinthias/page.tsx → ...ient/app/home/timesBr/Corinthias/page.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
5 changes: 1 addition & 4 deletions
5
...ent/app/auth/home/Times/Criciuma/page.tsx → ...client/app/home/timesBr/Criciuma/page.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
5 changes: 1 addition & 4 deletions
5
...ent/app/auth/home/Times/Cruzeiro/page.tsx → ...client/app/home/timesBr/Cruzeiro/page.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
5 changes: 1 addition & 4 deletions
5
...lient/app/auth/home/Times/Cuiaba/page.tsx → ...o/client/app/home/timesBr/Cuiaba/page.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
4 changes: 0 additions & 4 deletions
4
...ent/app/auth/home/Times/Flamengo/page.tsx → ...client/app/home/timesBr/Flamengo/page.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
5 changes: 1 addition & 4 deletions
5
...t/app/auth/home/Times/Fluminense/page.tsx → ...ient/app/home/timesBr/Fluminense/page.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
5 changes: 1 addition & 4 deletions
5
...nt/app/auth/home/Times/Fortaleza/page.tsx → ...lient/app/home/timesBr/Fortaleza/page.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
5 changes: 1 addition & 4 deletions
5
...lient/app/auth/home/Times/Gremio/page.tsx → ...o/client/app/home/timesBr/Gremio/page.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.