-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
797e7b3
commit c062a4b
Showing
26 changed files
with
301 additions
and
264 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Binary file not shown.
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,21 @@ | ||
import Image from "next/image"; | ||
|
||
export const Footer = () => { | ||
return ( | ||
<footer className="flex flex-col md:flex md:flex-row text-xs text-[#6C6C6C] gap-x-5 items-center gap-y-5"> | ||
<Image | ||
alt="logo" | ||
width={96} | ||
height={22} | ||
src="https://exoonero.org/creative-commons.png" | ||
/> | ||
<p> | ||
Dados públicos extraídos de diários oficiais municipais da Associação | ||
dos Municípios do Estado do Ceará (APRECE). Todo o conteúdo do site está disponível | ||
sob a licença Creative Commons Atribuição 4.0 Internacional, o que | ||
significa que pode ser compartilhado e reutilizado para trabalhos | ||
derivados, desde que citada a fonte. | ||
</p> | ||
</footer> | ||
); | ||
}; |
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 Head from "next/head"; | ||
|
||
export const HeadCustom = () => ( | ||
<Head> | ||
<title>LicitaX</title> | ||
</Head> | ||
) |
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,31 @@ | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
|
||
export const Navbar = () => { | ||
return ( | ||
<div className="bg-gray-900 h-32 flex items-center justify-between p-4" > | ||
<div className="flex items-center"> | ||
{/* Logo da Aplicação */} | ||
<Image | ||
alt="logo-unb" | ||
width={240} | ||
height={240} | ||
src="https://i.pinimg.com/originals/7a/16/ca/7a16cae276fbf9f22a1d93999cff390c.png" | ||
/> | ||
</div> | ||
<div className="flex space-x-4"> | ||
{/* Links de Navegação Interna com fonte mais negrito (bold) e espaço maior entre eles */} | ||
<Link href="/" className="text-white hover:text-gray-300 text-lg font-semibold ml-4">Home</Link> | ||
<Link href="/sobre" className="text-white hover:text-gray-300 text-lg font-semibold ml-4">Sobre</Link> | ||
<Link | ||
href="https://github.com/unb-mds/2023.2-LicitaX" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="text-white hover:text-gray-300 text-lg font-semibold ml-4" | ||
> | ||
GitHub | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
} |
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 { Footer } from "./Footer"; | ||
export { Navbar } from "./Navbar"; | ||
export { HeadCustom as Head } from "./Head"; |
This file was deleted.
Oops, something went wrong.
Empty file.
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,64 @@ | ||
import Image from "next/image"; | ||
import { useState, useEffect } from "react" | ||
interface TitleProps { | ||
municipio: string; | ||
ano: string; | ||
} | ||
|
||
export const Home = ({ municipio, ano }: TitleProps) => { | ||
const [titleText, setTitleText] = useState("Brasília"); | ||
const [bids, setBids] = useState<any>([]); | ||
const buildTitle = () => { | ||
fetch(`https://raw.githubusercontent.com/unb-mds/2023-2-Squad07/main/public/resultados.json`, { | ||
method: 'GET', | ||
}).then(res => res.json()) | ||
.then(res => setBids(res)) | ||
}; | ||
|
||
useEffect(() => { | ||
buildTitle(); | ||
|
||
if (municipio === 'geral') { | ||
setTitleText('Ceará') | ||
} | ||
}, [setTitleText, municipio]); | ||
|
||
console.log() | ||
return ( | ||
<div className="flex"> | ||
<div className="bg-teal-500 w-80 h-screen p-4"> | ||
<p className="text-white font-bold text-2xl mt-4 mb-4">Confira a quantidade de avisos de licitação nos municípios do Ceará.</p> | ||
<p className="text-white mt-4">Este projeto foi realizado pelo Squad 07 durante o segundo semestre de 2023 na disciplina Métodos de Desenvolvimento de Software da Universidade de Brasília.</p> | ||
{/* Logo da Universidade com dois espaços */} | ||
<Image | ||
alt="logo-unb" | ||
width={240} | ||
height={240} | ||
src="https://i.pinimg.com/originals/84/a7/86/84a786798c453d6a536f31cba73e5409.png" | ||
/> | ||
</div> | ||
<div className="p-4 text-2xl 2xl:text-3xl 3xl:text-[2.4375rem] font-semibold lg:w-[42.93rem] leading-10"> | ||
{ano === "geral" ? ( | ||
<> | ||
Acompanhe a quantidade de avisos de licitação que ocorreram em | ||
<span className="text-[#4AA381]">{(" " + titleText) as string}</span> | ||
</> | ||
) : ( | ||
<> | ||
Acompanhe a quantidade de avisos de licitação que ocorreram em | ||
<span className="text-[#4AA381]">{(" " + titleText) as string} - {(" " + ano) as string}</span> | ||
</> | ||
)} | ||
<br /> | ||
<div className="font-semibold"> | ||
{bids.map((bid: any, i: number) => ( | ||
<div key={i} className="flex-row pt-5 pb-5"> | ||
<>{bid.pdf_filename}</> | ||
<>{bid.num_avisos_licitacao}</> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
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 @@ | ||
export { Home } from './Home'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.