-
Notifications
You must be signed in to change notification settings - Fork 26
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
saagomes_meli
committed
Jul 21, 2024
1 parent
44d2077
commit cd15491
Showing
10 changed files
with
122 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,7 @@ | ||
import { IMentoringAgendaService } from '@/services/MentoringAgenda/IMentoringAgendaService.model' | ||
import { useForm } from 'react-hook-form' | ||
|
||
export function useMentoringModel(service: IMentoringAgendaService) { | ||
const {} = useForm() | ||
return {} | ||
} |
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,3 +1,80 @@ | ||
export function MentoringView() { | ||
return <div></div> | ||
return ( | ||
<main className="flex items-center justify-center h-screen"> | ||
<div className="w-full max-w-xs"> | ||
<header className="flex justify-center items-center space-x-4 w-full text-center pb-4"> | ||
<img src="static/imgs/faladev.jpg" alt="" height="50" width="200" /> | ||
</header> | ||
<form className="mt-5 bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"> | ||
<div className="mb-4"> | ||
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="name"> | ||
Nome | ||
</label> | ||
<input | ||
className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
id="name" | ||
type="text" | ||
name="name" | ||
required | ||
/> | ||
</div> | ||
<div className="mb-4"> | ||
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="email"> | ||
</label> | ||
<input | ||
className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
id="email" | ||
type="email" | ||
name="email" | ||
required | ||
/> | ||
</div> | ||
<div className="mb-4"> | ||
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="phone"> | ||
Telefone | ||
</label> | ||
<input | ||
className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
id="phone" | ||
type="text" | ||
name="phone" | ||
required | ||
/> | ||
</div> | ||
<div className="flex items-center justify-center"> | ||
<button | ||
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" | ||
type="submit" | ||
> | ||
Quero participar | ||
</button> | ||
</div> | ||
</form> | ||
<hr className="mb-10" /> | ||
<footer className="flex justify-center items-center space-x-4 w-full text-center pb-4"> | ||
<a href="https://www.instagram.com/faladev.tech/" target="_blank" className="flex items-center space-x-2"> | ||
<img src="static/imgs/instagram.svg" alt="Instagram FalaDev" style={{ height: '20px' }} /> | ||
<span className="text-xs">@faladev.tech</span> | ||
</a> | ||
<a href="https://www.youtube.com/@FalaDev" target="_blank" className="flex items-center space-x-2"> | ||
<img src="static/imgs/youtube.svg" alt="YouTube FalaDev" style={{ height: '30px' }} /> | ||
<span className="text-xs">@FalaDev</span> | ||
</a> | ||
<a | ||
href="https://chat.whatsapp.com/BZpPgPOH9F091JLiIvRMpd" | ||
target="_blank" | ||
className="flex items-center space-x-2" | ||
> | ||
<img src="static/imgs/whatsapp.svg" alt="WhatsApp FalaDev" style={{ height: '30px' }} /> | ||
<span className="text-xs">@FalaDev</span> | ||
</a> | ||
</footer> | ||
<p className="text-xs text-center"> | ||
Essa é uma mentoria gratuita para quem está entrando na área de tecnologia, migrando de área ou buscando | ||
crescimento profissional. | ||
</p> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { MentoringView } from './mentoring.view' | ||
|
||
export default function Home() { | ||
return <main className="flex min-h-screen flex-col items-center justify-between p-24"></main> | ||
return <MentoringView /> | ||
} |
3 changes: 3 additions & 0 deletions
3
frontend/src/services/MentoringAgenda/IMentoringAgendaService.model.ts
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 @@ | ||
export interface IMentoringAgendaService { | ||
SignUpMentoring: () => void | ||
} |
6 changes: 2 additions & 4 deletions
6
frontend/src/services/MentoringAgenda/MentoringAgenda.service.ts
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,11 +1,9 @@ | ||
import { apiBFF } from '../apiBFF' | ||
|
||
interface IMentoringAgendaService { | ||
SignUpMentoring: () => void | ||
} | ||
import { IMentoringAgendaService } from './IMentoringAgendaService.model' | ||
|
||
export class MentoringAgendaService implements IMentoringAgendaService { | ||
async SignUpMentoring() { | ||
const { data } = await apiBFF.post('/') | ||
return data | ||
} | ||
} |