Skip to content

Commit

Permalink
Merge pull request #2 from felipecastrosales/development
Browse files Browse the repository at this point in the history
A escolha da Stack
  • Loading branch information
felipecastrosales authored Oct 14, 2020
2 parents a4c37ee + dd196a9 commit 7055cde
Show file tree
Hide file tree
Showing 26 changed files with 498 additions and 93 deletions.
9 changes: 7 additions & 2 deletions README-pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

- ✅ "Acelerando sua evolução" 💪
- ✅ "Olhando as oportunidades" 👀
- 🔄 "A escolha da Stack" 📌
- "A escolha da Stack" 📌
- 🔄 "Até dois anos em 2 meses" 🔥
- 🔄 "A milha extra" 🚀

Expand All @@ -32,10 +32,15 @@
<img src="https://user-images.githubusercontent.com/59374587/95769033-9a163200-0c8d-11eb-8f43-2930a859f858.png" width="100%" alt="Happy Demo"/>
</p>

> * Veja todas no arquivo [`demo`](https://github.com/felipecastrosales/Happy/tree/master/public/images/demos). 🧐📂
<h2 align="center">Layout 🎨</h2>

<p align="center">
O Layout foi desenvolvido por <a href="https://instagram.com/tiagoluchtenberg">Tiago Luchtenberg</a>, e você pode acessá-lo no Figma, basta clicar para ver em <a href="https://www.figma.com/file/XYb2tha1gU5M8vTwTUmjNx/Happy-Web-(Copy)?node-id=0%3A1">Desktop</a> e em <a href="https://www.figma.com/file/X27FfVxAgy9f5IFa7ONlph/Happy-Mobile?node-id=0%3A1">Mobile</a>!
O Layout foi desenvolvido por <a href="https://instagram.com/tiagoluchtenberg">Tiago Luchtenberg</a>, e você pode acessá-lo no Figma:

- <a href="https://www.figma.com/file/XYb2tha1gU5M8vTwTUmjNx/Happy-Web-(Copy)?node-id=0%3A1">Desktop</a> 🖥️
- <a href="https://www.figma.com/file/X27FfVxAgy9f5IFa7ONlph/Happy-Mobile?node-id=0%3A1">Mobile</a> 📱
</p>

---
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

- ✅ "Accelerating Your Evolution" 💪
- ✅ "Looking at opportunities" 👀
- 🔄 "The Stack's Choice" 📌
- "The Stack's Choice" 📌
- 🔄 "Up to two years in 2 months" 🔥
- 🔄 "The extra mile" 🚀

Expand All @@ -28,13 +28,17 @@
<img src="https://user-images.githubusercontent.com/59374587/95769033-9a163200-0c8d-11eb-8f43-2930a859f858.png" width="100%" alt="Happy Demo"/>
</p>

---
> * See all in [`demo`](https://github.com/felipecastrosales/Happy/tree/master/public/images/demos) folder. 🧐📂
---

<h2 align="center">Layout 🎨</h2>

<p align="center">
The Layout was developed by <a href="https://instagram.com/tiagoluchtenberg">Tiago Luchtenberg</a>, and you can access it on Figma, just click to see <a href="https://www.figma.com/file/XYb2tha1gU5M8vTwTUmjNx/Happy-Web-(Copy)?node-id=0%3A1">Desktop</a> and at <a href="https://www.figma.com/file/X27FfVxAgy9f5IFa7ONlph/Happy-Mobile?node-id=0%3A1">Mobile </a>!
The Layout was developed by <a href="https://instagram.com/tiagoluchtenberg">Tiago Luchtenberg</a>, and you can access it on Figma:
- <a href="https://www.figma.com/file/XYb2tha1gU5M8vTwTUmjNx/Happy-Web-(Copy)?node-id=0%3A1">Desktop</a> 🖥️
- <a href="https://www.figma.com/file/X27FfVxAgy9f5IFa7ONlph/Happy-Mobile?node-id=0%3A1">Mobile</a> 📱
</p>

---
Expand Down
135 changes: 135 additions & 0 deletions create-orphanage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<!DOCTYPE html>
<html lang="pt_BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Adicionar um Orfanato | Happy</title>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""
/>
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""
></script>
<link rel="icon" href="./public/images/logo-icon.png" />
<link rel="stylesheet" href="./public/css/main.css" />
<link rel="stylesheet" href="./public/css/map.css" />
<link rel="stylesheet" href="./public/css/form.css" />
<link rel="stylesheet" href="./public/css/sidebar.css" />
<link rel="stylesheet" href="./public/css/buttons.css" />
<link rel="stylesheet" href="./public/css/animations.css" />
<link rel="stylesheet" href="./public/css/page-create-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-create-orphanage">
<aside class="animate-right sidebar">
<img src="./public/images/map-marker.svg" alt="Happy" />
<footer>
<button onclick="history.back()">
<img src="./public/images/arrow-back.svg" alt="Voltar" />
</button>
</footer>
</aside>

<main class="animate-appear with-sidebar">
<form action="">
<fieldset>
<legend>Dados</legend>

<div class="map-container">
<div id="mapid"></div>
<input type="hidden" name="lat" />
<input type="hidden" name="lng" />
<footer>
<a href="#" id="select-point">
Clique no mapa para adicionar a localização.
</a>
</footer>
</div>

<div class="input-block">
<label for="name">Nome</label>
<input id="name" name="name" required />
</div>

<div class="input-block">
<label for="about">Sobre <span>Máximo de 300 caracteres</span></label>
<textarea id="about" name="about" required></textarea>
</div>

<div class="input-block">
<label for="whatsapp">Número de WhatsApp</label>
<input id="whatsapp" name="whatsapp" required />
</div>

<div class="input-block images">
<label for="images">Foto</label>
<div class="images-upload" id="images">
<div class="new-upload">
<input
name="images"
placeholder="Cole o link da foto aqui"
required
/>
<span onclick="deleteField(event)">
<img
src="./public/images/remove-file.svg"
alt="Remover Foto"
/>
</span>
</div>
</div>
<button onclick="addPhotoField()" type="button">
<img src="./public/images/add-file.svg" alt="Adicionar Foto" />
</button>
</div>
</fieldset>

<fieldset>
<legend>Visitação</legend>

<div class="input-block">
<label for="instructions">Instruções</label>
<textarea
id="instructions"
name="instructions"
required
></textarea>
</div>

<div class="input-block">
<label for="opening_hours">Horário das visitas</label>
<input id="opening_hours" name="opening_hours" required />
</div>

<div class="input-block">
<label for="open_on_weekends">Atende fim de semana?</label>
<input
type="hidden"
id="open_on_weekends"
name="open_on_weekends"
value="1"
required
/>
<div class="button-select">
<button data-value="1" onclick="toggleSelect(event)" type="button" class="active">Sim</button>
<button data-value="0" onclick="toggleSelect(event)" type="button">Não</button>
</div>
<button type="submit" class="primary-button">Confirmar</button>
</div>
</fieldset>
</form>
</main>
</div>
<script src="./public/scripts/page-create-orphanage.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1 class="animate-up">Leve felicidade para o mundo</h1>
Visite orfanatos e mude o dia de muitas crianças.
</p>

<a class="animate-up" href="orphanages.html" title="Visite orfanatos">
<a href="orphanages.html" title="Visite orfanatos" class="animate-up">
<img src="./public/images/arrow.svg" alt="Ir para o mapa" />
</a>
</section>
Expand Down
3 changes: 3 additions & 0 deletions orphanage.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
></script>
<link rel="icon" href="./public/images/logo-icon.png" />
<link rel="stylesheet" href="./public/css/main.css" />
<link rel="stylesheet" href="./public/css/map.css" />
<link rel="stylesheet" href="./public/css/sidebar.css" />
<link rel="stylesheet" href="./public/css/buttons.css" />
<link rel="stylesheet" href="./public/css/animations.css" />
<link rel="stylesheet" href="./public/css/page-orphanage.css" />
<link
Expand Down
48 changes: 48 additions & 0 deletions public/css/buttons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.primary-button {
margin-top: 6.4rem;
width: 100%;
height: 6.4rem;
border: 0;
cursor: pointer;
background: #3cdc8c;
border-radius: 2rem;
color: white;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
}

.primary-button:hover {
background: #36cf82;
}

.primary-button img {
margin-right: 1.6rem;
}

.button-select {
display: grid;
grid-template-columns: 1fr 1fr;
}

.button-select button {
height: 6.4rem;
background: #f5f8fa;
border: 1px solid #d3e2e5;
color: #5c8599;
}

.button-select button.active {
background: #edfff6;
border: 1px solid #a1e9c5;
color: #37c77f;
}

.button-select button:first-child {
border-radius: 2rem 0 0 2rem;
}

.button-select button:last-child {
border-radius: 0 2rem 2rem 0;
}
112 changes: 112 additions & 0 deletions public/css/form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
form {
width: 70rem;
margin: 6.4rem auto;
background: white;
border: 1px solid #d3e2e5;
border-radius: 2rem;
overflow: hidden;
padding: 8rem;
}

fieldset {
border: 0;
}

fieldset + fieldset {
margin-top: 8rem;
}

fieldset legend {
width: 100%;
font-size: 3.2rem;
line-height: 1.5;
color: #5c8599;
font-weight: 700;
border-bottom: 1px solid #d3e2e5;
margin-bottom: 4rem;
padding-bottom: 2.4rem;
}

.input-block label {
color: #8fa7b3;
margin-bottom: 8rem;
line-height: 1.5;
}

.input-block label span {
font-size: 1.4rem;
color: #8fa7b3;
margin-left: 2.4rem;
line-height: 1.5;
}

.input-block input,
.input-block textarea {
width: 100%;
background: #f5f8fa;
border: 1px solid #d3e2e5;
border-radius: 2rem;
color: #5c8599;
outline: none;
}

.input-block input {
height: 6.4rem;
padding: 0 1.6rem;
}

.input-block input:valid,
.input-block textarea:valid {
border: 1px solid #A1E9C5;
}

.input-block textarea {
height: clamp(12rem, 16rem, 24rem);
resize: vertical;
padding: 1.6rem;
line-height: 2.8rem;
}

.input-block input:focus,
.input-block textarea:focus {
border: 2px solid #29b6d1;
}


.input-block + .input-block {
margin-top: 2.4rem;
}


.input-block.images button {
border: 1px dashed #96D2F0;
width: 100%;
background: #F5F8FA;
height: 6.4rem;
padding: 0 1.6rem;
margin-top: 2.4rem;
border-radius: 2rem;
cursor: pointer;
}

.new-upload {
position: relative;
}

.new-upload + .new-upload {
margin-top: 2.4rem;
}

.new-upload span {
position: absolute;
right: 12px;
bottom: 14px;
display: flex;
background: #FFFFFF;
border: 1px solid #D3E2E5;
border-radius: 10px;
box-sizing: border-box;
padding: .6rem;
cursor: pointer;
}

Loading

0 comments on commit 7055cde

Please sign in to comment.