forked from s462068/inzynieria_frontend
buttons
This commit is contained in:
parent
caa5fcaae5
commit
36ee4ac0c9
@ -1,128 +1,16 @@
|
||||
|
||||
button{
|
||||
background-color:#f2e527 ;
|
||||
height: 70px;
|
||||
width: 350px;
|
||||
border-radius: 8px;
|
||||
color:#253340;
|
||||
font-size: 30px;
|
||||
font-weight: bolder;
|
||||
|
||||
}
|
||||
div#catornot{
|
||||
background-image:linear-gradient(rgba(0, 0, 0, 0.726),rgba(0, 0, 0, 0.767)),url(../../static/img/catsornot.jpg);
|
||||
background-repeat: no-repeat;
|
||||
color:#f2e527;
|
||||
width:1400px;
|
||||
height: 788px;
|
||||
margin: 0 auto;
|
||||
|
||||
}
|
||||
body{
|
||||
background-color: #283643;
|
||||
}
|
||||
div#text{
|
||||
width: 100%;
|
||||
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
font-size: 90px;
|
||||
padding-left:10px;
|
||||
padding-top: 110px;
|
||||
text-align: center;
|
||||
main{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
row-gap: 20px;
|
||||
}
|
||||
Button#button{
|
||||
margin: 1% 40.5%;
|
||||
|
||||
}
|
||||
div.image-container{
|
||||
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
||||
font-size: 50px;
|
||||
color: #f2e527;
|
||||
width: 1050px;
|
||||
height: 550px;
|
||||
border: 5px dashed #f2e527;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
background-image:linear-gradient(rgba(0, 0, 0, 0.76),rgba(0, 0, 0, 0.80),rgba(0,0,0,0.90)),url(../../static/img/catsornot.jpg);
|
||||
background-repeat: no-repeat;
|
||||
margin:150px 350px 100px 450px ;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
div#cloud{
|
||||
font-size: 100px;
|
||||
padding-top: 40px;
|
||||
}
|
||||
div#browse{
|
||||
background-color: #5d653f;
|
||||
height: 60px;
|
||||
width: 330px;
|
||||
text-align: center;
|
||||
border-style: none solid solid none;
|
||||
border-color: #f2e527;
|
||||
border-radius: 5px;
|
||||
font-size: 50px;
|
||||
font-family: Georgia, 'Times New Roman', Times, serif;
|
||||
color: #f2e527;
|
||||
margin: 0 auto;
|
||||
|
||||
}
|
||||
h4{
|
||||
font-size: 35px;
|
||||
}
|
||||
label.file-input-label{
|
||||
font-size: 35px;
|
||||
color: #f2e527;
|
||||
position: absolute;
|
||||
left: 450px;
|
||||
top: 121px;
|
||||
}
|
||||
div#con{
|
||||
padding-left: 800px;
|
||||
}
|
||||
div#false{
|
||||
color:red;
|
||||
font-size: 70px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
top:-50px;
|
||||
left: -600px;
|
||||
}
|
||||
div#true{
|
||||
color: green;
|
||||
font-size: larger;
|
||||
text-align: center;
|
||||
font-size: 70px;
|
||||
position: relative;
|
||||
top:-50px;
|
||||
left: -600px;
|
||||
}
|
||||
div#buttons{
|
||||
margin-top:50px;
|
||||
}
|
||||
button#again{
|
||||
position: relative;
|
||||
left: -400px;
|
||||
top:-50px;
|
||||
}
|
||||
button#con{
|
||||
position: relative;
|
||||
left: 100px;
|
||||
top:-50px;
|
||||
}
|
||||
div#loading{
|
||||
z-index: 10;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
animation-name: loading;
|
||||
animation-duration: 2s;
|
||||
margin: auto;
|
||||
font-size: 100px;
|
||||
text-align: center;
|
||||
}
|
||||
@keyframes loading{
|
||||
0%{color: red;font-weight: bolder;}
|
||||
25%{color: #f2e527;font-weight: lighter;}
|
||||
50%{color:red ; font-weight: bolder;}
|
||||
75%{color:#f2e527;font-weight:lighter;}
|
||||
100%{color:red ; font-weight: bolder;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
26
assets/scss/index.scss
Normal file
26
assets/scss/index.scss
Normal file
@ -0,0 +1,26 @@
|
||||
div#catornot{
|
||||
background-image:linear-gradient(rgba(0, 0, 0, 0.726),rgba(0, 0, 0, 0.767)),url(../../static/img/catsornot.jpg);
|
||||
background-repeat: no-repeat;
|
||||
color:#f2e527;
|
||||
width:1400px;
|
||||
height: 788px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
div#flex{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
div#text{
|
||||
|
||||
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
font-size: 100px;
|
||||
text-align: center;
|
||||
}
|
||||
div#test{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
53
assets/scss/input.scss
Normal file
53
assets/scss/input.scss
Normal file
@ -0,0 +1,53 @@
|
||||
div.image-container{
|
||||
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
||||
font-size: 50px;
|
||||
color: #f2e527;
|
||||
width: 1050px;
|
||||
height: 550px;
|
||||
border: 5px dashed #f2e527;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
background-image:linear-gradient(rgba(0, 0, 0, 0.76),rgba(0, 0, 0, 0.80),rgba(0,0,0,0.90)),url(../../static/img/catsornot.jpg);
|
||||
background-repeat: no-repeat;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
row-gap: 10px;
|
||||
}
|
||||
div#cloud{
|
||||
font-size: 100px;
|
||||
}
|
||||
div.file-input{
|
||||
width: 50%;
|
||||
height: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
row-gap: 20px;
|
||||
}
|
||||
div#browse{
|
||||
background-color: #5d653f;
|
||||
height: 60px;
|
||||
width: 330px;
|
||||
text-align: center;
|
||||
border-style: none solid solid none;
|
||||
border-color: #f2e527;
|
||||
border-radius: 5px;
|
||||
font-size: 50px;
|
||||
font-family: Georgia, 'Times New Roman', Times, serif;
|
||||
color: #f2e527;
|
||||
margin: 0 auto;
|
||||
|
||||
}
|
||||
h4{
|
||||
font-size: 35px;
|
||||
}
|
||||
label.file-input-label{
|
||||
font-size: 35px;
|
||||
color: #f2e527;
|
||||
align-self:stretch;
|
||||
}
|
||||
p#error{
|
||||
align-self: flex-end;
|
||||
font-size: 25px;
|
||||
color: #f2e527;
|
||||
}
|
42
assets/scss/loader.scss
Normal file
42
assets/scss/loader.scss
Normal file
@ -0,0 +1,42 @@
|
||||
.loader-wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: #242f3f;
|
||||
display:flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.loader {
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
position: relative;
|
||||
border: 4px solid #Fff;
|
||||
animation: loader 2s infinite ease;
|
||||
}
|
||||
.loader-inner {
|
||||
vertical-align: top;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
animation: loader-inner 2s infinite ease-in;
|
||||
}
|
||||
|
||||
@keyframes loader {
|
||||
0% { transform: rotate(0deg);}
|
||||
25% { transform: rotate(180deg);}
|
||||
50% { transform: rotate(180deg);}
|
||||
75% { transform: rotate(360deg);}
|
||||
100% { transform: rotate(360deg);}
|
||||
}
|
||||
|
||||
@keyframes loader-inner {
|
||||
0% { height: 0%;}
|
||||
25% { height: 0%;}
|
||||
50% { height: 100%;}
|
||||
75% { height: 100%;}
|
||||
100% { height: 0%;}
|
||||
}
|
@ -1 +1,6 @@
|
||||
@import 'layout'
|
||||
@import 'layout';
|
||||
@import 'loader';
|
||||
@import 'input';
|
||||
@import 'index';
|
||||
@import 'buttons';
|
||||
@import 'result'
|
12
assets/scss/result.scss
Normal file
12
assets/scss/result.scss
Normal file
@ -0,0 +1,12 @@
|
||||
div#false{
|
||||
color:red;
|
||||
font-size: 70px;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
div#true{
|
||||
color: green;
|
||||
font-size: larger;
|
||||
text-align: center;
|
||||
font-size: 70px;
|
||||
}
|
@ -19,7 +19,7 @@
|
||||
alt="obrazek"
|
||||
>
|
||||
<!-- z tego labela zrob ten element w figmie ktory jest pustym prostokątem i na niego masz upuscic obrazek -->
|
||||
<label v-else :for="id" class="cos">
|
||||
<label v-else :for="id">
|
||||
<div id="cloud">
|
||||
<fa :icon="['fas', 'cloud-download-alt']" />
|
||||
</div>
|
||||
@ -39,10 +39,10 @@
|
||||
@change="onFileChange"
|
||||
>
|
||||
</div>
|
||||
<p v-if="showError">
|
||||
</div>
|
||||
<p id="error" v-if="showError">
|
||||
Akceptowane rozszerzenia to: jpg, jpeg, png
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div id="loading">
|
||||
<!-- @MACIEJ fajnie by bylo jakbys zrobil, ze ten loader ma duzy z-index, zajmuje 100% height i width i juz wgl by bylo super jakby sie kręciło coś -->
|
||||
loading...
|
||||
<div class="loader-wrapper">
|
||||
<span class="loader"><span class="loader-inner"></span></span>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -1,13 +1,15 @@
|
||||
<template>
|
||||
<div v-if="result" id="true">
|
||||
<fa :icon="['fas', 'check-circle']" />
|
||||
CORRECT, THAT'S A CAT
|
||||
<fa :icon="['fas', 'check-circle']" />
|
||||
</div>
|
||||
<div v-else id="false">
|
||||
<fa :icon="['fas', 'times-circle']" />
|
||||
WRONG, THATS NOT A CAT
|
||||
<fa :icon="['fas', 'times-circle']" />
|
||||
<div id="flex">
|
||||
<div v-if="result" id="true">
|
||||
<fa :icon="['fas', 'check-circle']" />
|
||||
CORRECT, THAT'S A CAT
|
||||
<fa :icon="['fas', 'check-circle']" />
|
||||
</div>
|
||||
<div v-else id="false">
|
||||
<fa :icon="['fas', 'times-circle']" />
|
||||
WRONG, THATS NOT A CAT
|
||||
<fa :icon="['fas', 'times-circle']" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -10,7 +10,7 @@
|
||||
<Result :result="result" />
|
||||
<div id="buttons">
|
||||
<Button id="again" text="TRY AGAIN" :icon="['fas', 'redo']" @click.native="getResult" />
|
||||
<Button id="con" text="PICK ANOTHER" :icon="['fas', 'arrow-right']" @click.native="clear" />
|
||||
<Button id="try" text="PICK ANOTHER" :icon="['fas', 'arrow-right']" @click.native="clear" />
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
@ -1,12 +1,16 @@
|
||||
<template>
|
||||
<main>
|
||||
<div id="catornot">
|
||||
<div id="text">
|
||||
<h1>Cat or Not</h1>
|
||||
<div id="test">
|
||||
<div id="catornot">
|
||||
<div id="text">
|
||||
<h1>Cat or Not</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<nuxt-link to="/check">
|
||||
<Button id="button" text="GET STARTED" />
|
||||
</nuxt-link>
|
||||
<div id="flex">
|
||||
<nuxt-link to="/check">
|
||||
<Button id="button" text="GET STARTED" />
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</main>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user