You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
197 lines
3.1 KiB
CSS
197 lines
3.1 KiB
CSS
2 years ago
|
body{
|
||
1 year ago
|
font-family: 'worksans', sans-serif;
|
||
2 years ago
|
margin: 0;
|
||
|
padding: 0;
|
||
2 years ago
|
background-image: url('bg.jpg');
|
||
1 year ago
|
/* background-size: auto; */
|
||
2 years ago
|
background-repeat: no-repeat;
|
||
|
background-position: center;
|
||
1 year ago
|
max-width: 100%;
|
||
|
max-height: auto;
|
||
|
}
|
||
2 years ago
|
|
||
1 year ago
|
@font-face {
|
||
|
font-family: 'worksans';
|
||
|
src: url('../fonts/worksans/WorkSans-Medium.woff') format('opentype');
|
||
|
font-weight: normal;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'worksans';
|
||
|
src: url('../fonts/worksans/WorkSans-Bold.woff') format('opentype');
|
||
|
font-weight: bold;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'worksans';
|
||
|
src: url('../fonts/worksans/WorkSans-MediumItalic.woff') format('opentype');
|
||
|
font-weight: normal;
|
||
|
font-style: oblique;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'worksans';
|
||
|
src: url('../fonts/worksans/WorkSans-BoldItalic.woff') format('opentype');
|
||
|
font-weight: bold;
|
||
|
font-style: oblique;
|
||
|
}
|
||
|
|
||
2 years ago
|
h1{
|
||
|
text-align: center;
|
||
1 year ago
|
font-size: 5vmax;
|
||
|
margin-top: 5%;
|
||
|
}
|
||
|
|
||
|
h2{
|
||
|
text-align: center;
|
||
|
font-weight:bold;
|
||
2 years ago
|
}
|
||
|
|
||
|
p{
|
||
|
text-align: center;
|
||
1 year ago
|
font-weight:bold;
|
||
|
margin-left: 10%;
|
||
|
margin-right: 10%;
|
||
|
font-size: small;
|
||
|
margin-bottom: 5%;
|
||
|
}
|
||
|
|
||
|
.glitch-wrapper {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
text-align: center;
|
||
|
/* background-color: #222; */
|
||
|
}
|
||
|
|
||
|
.glitch {
|
||
|
position: relative;
|
||
|
font-size: 7vmax;
|
||
|
font-weight: 700;
|
||
|
line-height: 1.2;
|
||
|
color: #fff;
|
||
|
letter-spacing: 5px;
|
||
|
z-index: 1;
|
||
|
}
|
||
|
|
||
|
.glitch:before,
|
||
|
.glitch:after {
|
||
|
display: block;
|
||
|
content: attr(data-glitch);
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
opacity: 0.8;
|
||
|
}
|
||
|
|
||
|
.glitch:before {
|
||
|
animation: glitch-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
|
||
|
color: #0ff;
|
||
|
z-index: -1;
|
||
|
}
|
||
|
|
||
|
.glitch:after {
|
||
|
animation: glitch-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
|
||
|
color:orangered;
|
||
|
z-index: -2;
|
||
2 years ago
|
}
|
||
|
|
||
1 year ago
|
@keyframes glitch-color {
|
||
|
0% {
|
||
|
transform: translate(0);
|
||
|
}
|
||
|
|
||
|
20% {
|
||
|
transform: translate(-3px, 3px);
|
||
|
}
|
||
|
|
||
|
40% {
|
||
|
transform: translate(-3px, -3px);
|
||
|
}
|
||
|
|
||
|
60% {
|
||
|
transform: translate(3px, 3px);
|
||
|
}
|
||
|
|
||
|
80% {
|
||
|
transform: translate(3px, -3px);
|
||
|
}
|
||
|
|
||
|
to {
|
||
|
transform: translate(0);
|
||
|
}
|
||
|
}
|
||
2 years ago
|
|
||
1 year ago
|
/*
|
||
2 years ago
|
div{
|
||
|
animation: glitch 1s linear infinite;
|
||
1 year ago
|
} */
|
||
2 years ago
|
|
||
1 year ago
|
/* @keyframes glitch{
|
||
2 years ago
|
2%,64%{
|
||
|
transform: translate(2px,0) skew(0deg);
|
||
|
}
|
||
|
4%,60%{
|
||
|
transform: translate(-2px,0) skew(0deg);
|
||
|
}
|
||
|
62%{
|
||
|
transform: translate(0,0) skew(5deg);
|
||
|
}
|
||
1 year ago
|
} */
|
||
2 years ago
|
|
||
|
|
||
|
form {
|
||
|
display: flex;
|
||
|
flex-direction: row;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
margin-top: 20px;
|
||
|
}
|
||
|
|
||
|
label {
|
||
|
font-weight: bold;
|
||
|
margin-right: 10px;
|
||
|
}
|
||
|
|
||
|
input[type="text"] {
|
||
|
padding: 5px;
|
||
|
border-radius: 5px;
|
||
|
border: 1px solid #ccc;
|
||
|
}
|
||
|
|
||
|
button{
|
||
|
padding: 5px 20px;
|
||
|
border-radius: 5px;
|
||
1 year ago
|
background-color: #0ff;
|
||
|
color:#fff;
|
||
2 years ago
|
border: none;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
1 year ago
|
#result{
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
border-color:orangered;
|
||
|
}
|
||
|
|
||
2 years ago
|
table {
|
||
|
margin-top: 20px;
|
||
|
border-collapse: collapse;
|
||
1 year ago
|
text-align: center;
|
||
|
word-wrap: normal;
|
||
2 years ago
|
}
|
||
|
|
||
|
th, td {
|
||
|
padding: 10px;
|
||
1 year ago
|
border: 1px solid #fff;
|
||
|
background-color: black;
|
||
|
color: white;
|
||
2 years ago
|
text-align: center;
|
||
1 year ago
|
word-wrap: normal;
|
||
|
|
||
2 years ago
|
}
|