-
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.
Alguns ajustes no front-end junto e no back-end
- Loading branch information
Showing
7 changed files
with
122 additions
and
96 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
Binary file not shown.
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,103 +1,108 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>{{ orphanage.name }} | Happy</title> | ||
|
||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/> | ||
|
||
<!-- Make sure you put this AFTER Leaflet's CSS --> | ||
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script> | ||
|
||
<link rel="icon" href="/images/logo-icon.png" /> | ||
|
||
<link rel="stylesheet" href="/css/main.css" /> | ||
<link rel="stylesheet" href="/css/animations.css" /> | ||
<link rel="stylesheet" href="/css/sidebar.css" /> | ||
<link rel="stylesheet" href="/css/map.css" /> | ||
<link rel="stylesheet" href="/css/buttons.css" /> | ||
<link rel="stylesheet" href="/css/page-orphanage.css" /> | ||
|
||
<link | ||
href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
<body> | ||
<div id="page-orphanage"> | ||
<aside class="animate-right sidebar"> | ||
|
||
<img src="/images/map-marker.svg" alt="Happy"> | ||
|
||
<footer> | ||
<button onclick="history.back()"> | ||
<img src="/images/arrow-back.svg" alt="Voltar"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>{{ orphanage.name }} | Happy</title> | ||
|
||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" | ||
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" | ||
crossorigin="" /> | ||
|
||
<!-- Make sure you put this AFTER Leaflet's CSS --> | ||
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" | ||
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" | ||
crossorigin=""></script> | ||
|
||
<link rel="icon" href="/images/logo-icon.png" /> | ||
|
||
<link rel="stylesheet" href="/css/main.css" /> | ||
<link rel="stylesheet" href="/css/animations.css" /> | ||
<link rel="stylesheet" href="/css/sidebar.css" /> | ||
<link rel="stylesheet" href="/css/map.css" /> | ||
<link rel="stylesheet" href="/css/buttons.css" /> | ||
<link rel="stylesheet" href="/css/page-orphanage.css" /> | ||
|
||
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet" /> | ||
</head> | ||
|
||
<body> | ||
<div id="page-orphanage"> | ||
<aside class="animate-right sidebar"> | ||
|
||
<img src="/images/map-marker.svg" alt="Happy"> | ||
|
||
<footer> | ||
<button onclick="history.back()"> | ||
<img src="/images/arrow-back.svg" alt="Voltar"> | ||
</button> | ||
</footer> | ||
|
||
</aside> | ||
|
||
<main class="animate-appear with-sidebar"> | ||
<div class="orphanage-details"> | ||
<img src="{{orphanage.firstImage}}" alt="{{orphanage.name}}" /> | ||
|
||
<div class="images"> | ||
{{#each orphanage.images }} | ||
<button onclick="selectImage(event)" class="active" type="button"> | ||
<img src="{{this}}" alt="{{orphanage.name}}" /> | ||
</button> | ||
</footer> | ||
|
||
</aside> | ||
|
||
<main class="animate-appear with-sidebar"> | ||
<div class="orphanage-details"> | ||
<img src="{{orphanage.firstImage}}" alt="{{orphanage.name}}" /> | ||
|
||
<div class="images"> | ||
{{#each orphanage.images }} | ||
<button onclick="selectImage(event)" class="active" type="button"> | ||
<img src="{{this}}" alt="{{orphanage.name}}" /> | ||
</button> | ||
{{/each}} | ||
|
||
</div> | ||
|
||
<div class="orphanage-details-content"> | ||
<h1>{{orphanage.name}}</h1> | ||
|
||
<p>{{orphanage.about}}</p> | ||
|
||
<div class="map-container"> | ||
<div id="mapid"></div> | ||
<span | ||
data-lat="{{orphanage.lat}}" | ||
data-lng="{{orphanage.lng}}"></span> | ||
<footer> | ||
<a | ||
target="_blank" | ||
href="https://maps.google.com/mobile?q={{orphanage.lat}},{{orphanage.lng}}&z=15">Ver rotas no Google Maps</a> | ||
</footer> | ||
</div> | ||
{{/each}} | ||
|
||
</div> | ||
|
||
<hr /> | ||
<div class="orphanage-details-content"> | ||
<h1>{{orphanage.name}}</h1> | ||
|
||
<p>{{orphanage.about}}</p> | ||
|
||
<div class="map-container"> | ||
<div id="mapid"></div> | ||
<span data-lat="{{orphanage.lat}}" data-lng="{{orphanage.lng}}"></span> | ||
<footer> | ||
<a target="_blank" href="https://maps.google.com/mobile?q={{orphanage.lat}},{{orphanage.lng}}&z=15">Ver | ||
rotas no Google Maps</a> | ||
</footer> | ||
</div> | ||
|
||
<h2>Instruções para visita</h2> | ||
<hr /> | ||
|
||
<p>{{orphanage.instructions}}</p> | ||
<h2>Instruções para visita</h2> | ||
|
||
<div class="open-details"> | ||
<div class="hour"> | ||
<img src="/images/clock.svg" alt="Horários" /> | ||
{{orphanage.opening_hours}} | ||
</div> | ||
<div class="open-on-weekends"> | ||
{{#if orphanage.open_on_weekends}} | ||
<img src="/images/info.svg" alt="Informações" /> | ||
Atendemos fim de semana | ||
{{/if}} | ||
</div> | ||
<p>{{orphanage.instructions}}</p> | ||
|
||
<div class="open-details"> | ||
<div class="hour"> | ||
<img src="/images/clock.svg" alt="Horários" /> | ||
{{orphanage.opening_hours}} | ||
</div> | ||
|
||
<button class="primary-button" type="button"> | ||
<img | ||
src="/images/whatsapp.svg" | ||
alt="Chamar no WhatsApp" | ||
/> | ||
Entrar em contato | ||
</button> | ||
{{#if orphanage.open_on_weekends}} | ||
<div class="open-on-weekends open"> | ||
<img src="/images/info.svg" alt="Informações" /> | ||
Atendemos fim de semana | ||
</div> | ||
{{else}} | ||
<div class="open-on-weekends closed"> | ||
<img src="/images/info-red.svg" alt="Informações" /> | ||
Não atendemos fim de semana | ||
</div> | ||
{{/if}} | ||
</div> | ||
|
||
<a href="https://api.whatsapp.com/send?l=pt_BR&phone={{orphanage.whatsapp}}&text=Oi, quero conversar sobre as visitas no {{orphanage.name}}" target="_blank" | ||
class="primary-button" type="button"> | ||
<img src="/images/whatsapp.svg" alt="Chamar no WhatsApp" /> | ||
Entrar em contato | ||
</a> | ||
</div> | ||
</main> | ||
</div> | ||
<script src="/scripts/page-orphanage.js"></script> | ||
</body> | ||
</html> | ||
</div> | ||
</main> | ||
</div> | ||
<script src="/scripts/page-orphanage.js"></script> | ||
</body> | ||
|
||
</html> |