Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions app/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@react-google-maps/api": "^2.19.3",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
Binary file removed app/frontend/public/favicon.ico
Binary file not shown.
7 changes: 3 additions & 4 deletions app/frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<html lang="pt">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/lionLogo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -24,7 +23,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Zoo Functions</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file added app/frontend/public/lionLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/frontend/public/logo192.png
Binary file not shown.
Binary file removed app/frontend/public/logo512.png
Binary file not shown.
6 changes: 3 additions & 3 deletions app/frontend/public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"src": "lionLogo.png",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"src": "lionLogo.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"src": "lionLogo.png",
"type": "image/png",
"sizes": "512x512"
}
Expand Down
38 changes: 0 additions & 38 deletions app/frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +0,0 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
2 changes: 2 additions & 0 deletions app/frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react';
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import Home from './pages/Home'
import './App.css';
import './css/header.css'
import './css/home.css'


class App extends React.Component {
Expand Down
22 changes: 22 additions & 0 deletions app/frontend/src/componets/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Link } from "react-router-dom";
import lionLogo from '../images/lionLogo.png';

function Header() {
return (
<header>
<div id="header-image">
<img src={lionLogo} alt="logo" id="logo" />
</div>
<div id="header-link">
<Link to='entradas' className="button-header">Entradas</Link>
<Link to='' className="button-header">Cronogramas</Link>
<Link to='' className="button-header">Colaboradores</Link>
<Link to='' className="button-header">Animais</Link>
<Link to='' className="button-header" id="button-login">Login</Link>
<Link to='' className="button-header" id="button-cadastro">Cadastro</Link>
</div>
</header>
);
}

export default Header;
38 changes: 38 additions & 0 deletions app/frontend/src/css/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
header {
background-color: rgba(7, 49, 0, 1);
}

#header-link {
text-align: end;
display: inline-block;
width: 60%;
padding-top: 20px;
}

#header-image {
width: 40%;
text-align: start;
display: inline-block;
}

.button-header {
color: white;
text-align: center;
text-decoration: none;
font-weight: bold;
padding: 10px;
height: 40px;
}

#button-login {
background-color: rgba(9, 36, 5, 1);
}

#button-cadastro {
background-color: rgba(6, 23, 3, 1);
}

#logo {
width: 50px;
text-align: start;
}
3 changes: 3 additions & 0 deletions app/frontend/src/css/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#home-image-lion, #home-image-penguin {
width: 100%;
}
Binary file added app/frontend/src/images/girafa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/frontend/src/images/lion.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/frontend/src/images/lionLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/frontend/src/images/poucos-pinguins.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/frontend/src/images/tigre.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion app/frontend/src/logo.svg

This file was deleted.

Empty file.
68 changes: 67 additions & 1 deletion app/frontend/src/pages/Home.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,72 @@
import React from 'react'
import { GoogleMap, useJsApiLoader } from '@react-google-maps/api';

import Header from "../componets/Header";
import lion from '../images/lion.jpg';
import penguin from '../images/poucos-pinguins.jpg';
import girafa from '../images/girafa.jpg';
import tigre from '../images/tigre.jpg';

function Home() {
const containerStyle = {
width: '400px',
height: '400px'
};

const center = { lat: -25.559623473260427, lng: -49.2314230896749 };

const { isLoaded } = useJsApiLoader({
id: 'google-map-script',
googleMapsApiKey: "YOUR_API_KEY"
})

const [map, setMap] = React.useState(null)

const onLoad = React.useCallback(function callback(map) {
// This is just an example of getting and using the map instance!!! don't just blindly copy!
const bounds = new window.google.maps.LatLngBounds(center);
map.fitBounds(bounds);

setMap(map)
}, [])

const onUnmount = React.useCallback(function callback(map) {
setMap(null)
}, [])

return (
<h1>Teste</h1>
<div>
<Header />
<img src={lion} id="home-image-lion" />
<div>
<h1>Parque Zoológico Municipal de Curitiba</h1>
<p>O Parque Zoológico Municipal de Curitiba tem como objetivo garantir qualidade de vida para animais selvagens obtidos na caça ilegal, dando-lhes alimentação adequada, atividades desenvolvidas por biólogos e um local protegido de serem caçados.</p>
<img src={penguin} id="home-image-penguin" />
<h2>Conservação</h2>
<p>Alguns dos animais não podem voltar a natureza por não fazer parte do habitate e é custoso de mandá-los de volta com algum biologo para ajudá-lo a ser inserido. Por isso, tentamos imitar o seu habitate natural com as atividades propostas e dietas restritas</p>
<img src={girafa} id="home-image-lion" />
<h2>Biólogos</h2>
<p>Nossos biólogos são escolhidos com cuidado para que eles consigam atender cada espécie com sua própria necessidade.</p>
<img src={tigre} id="home-image-lion" />
<h2>Doações</h2>
<p>Felizmente, nossos ganhos são suficientes para nos manter, porém com a ajuda da população, podemos melhorar nossas atividades e aumentarmos o número de animais resgatados.</p>
</div>
<h1>Dia de Funcionamento</h1>
<p>Terça à Domingo.</p>
<button>Saiba mais sobre os horários</button>
<h3>Localização: Rua inexistente, 05. Centro. Curitiba Paraná Contato: Whatsapp, email telefone fixo Redes sociais Instagram, facebook e Youtube.</h3>
{ isLoaded ? <GoogleMap
mapContainerStyle={containerStyle}
center={center}
zoom={10}
onLoad={onLoad}
onUnmount={onUnmount}
>
{ /* Child components, such as markers, info windows, etc. */ }
<></>
</GoogleMap> : <></> }
<p>Mais informações: Home, ingressos, funcionarios, horarios</p>
</div>
);
}

Expand Down