}
.button-container {
+ display: flex;
+ justify-content: space-around;
+ flex-wrap: wrap;
text-align: center;
}
border: 1px solid currentColor;
font-size: 1.1rem;
color: #4f93ce;
- margin: 3rem 0;
- padding: 0.75rem 3rem;
+ margin: 3% 0;
+ padding: 1% 3%;
cursor: pointer;
-webkit-transition: background-color 0.28s ease, color 0.28s ease,
box-shadow 0.28s ease;
<h1>Antifa Generator</h1>
<div class="form-group">
<input id="antifa-group" type="text" required="required" />
- <label for="input" class="control-label">Digite o grupo a qual vocĂȘ pertence</label><i class="bar"></i>
+ <label for="input" class="control-label">Grupo</label><i class="bar"></i>
</div>
<div class="form-group">
<select id='antifa-label'>
<label for="select" class="control-label"></label><i class="bar"></i>
</div>
</form>
-
-
<div class="button-container">
<button type="button" class="button" onClick="generateImage()"><span>Gerar imagem</span></button>
<button type="button" class="button" onClick="downloadImage()"><span>Baixar</span></button>
+ <button type="button" class="button"
+ onclick="window.open('https://medium.com/@matheusMmota/antifascismo-n%C3%A3o-%C3%A9-moldura-para-o-seu-perfil-d648c1b3caa8')"><span>Antifacista?</span></button>
+
</div>
function generateImage() {
antifaGroup = document.getElementById('antifa-group')
antifaLabel = document.getElementById('antifa-label')
- console.log('antifaGropup.value :>> ', antifaGroup.value);
- console.log('antifaLabel.value :>> ', antifaLabel.value);
- // const logoCanvas = document.getElementById('logo')
ctx = logoCanvas.getContext("2d");
const background = new Image();
background.src = 'img/antifascist-action.png';