v0.0.5
This commit is contained in:
parent
f578f0b56f
commit
c7c521723a
215
css/main.css
215
css/main.css
@ -9,12 +9,28 @@
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
:root {
|
||||
--primary-color: #00A7B4;
|
||||
body {
|
||||
--primary-color: #1E88E5;
|
||||
--text: 17, 17, 17;
|
||||
--text-light: 85, 85, 85;
|
||||
--foreground: 255, 255, 255;
|
||||
--background: #e8e8e8;
|
||||
--dark-shade: #dadada;
|
||||
font-size: 14px;
|
||||
color: rgba(var(--text), 1);
|
||||
background: rgba(var(--foreground), 1);
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 14px;
|
||||
body[data-theme='dark'] {
|
||||
--text: 238, 238, 238;
|
||||
--text-light: 170, 170, 170;
|
||||
--foreground: 26, 26, 26;
|
||||
--background: #111;
|
||||
--dark-shade: #1a1a1a;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
input[type=text]::-ms-clear {
|
||||
@ -51,7 +67,7 @@ input:invalid {
|
||||
}
|
||||
|
||||
button {
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(var(--text), 0.2);
|
||||
border-radius: 0.2em;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
@ -59,6 +75,7 @@ button {
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
padding: 1em 1.5em;
|
||||
color: rgba(var(--text), 1);
|
||||
}
|
||||
|
||||
.flex {
|
||||
@ -91,20 +108,69 @@ button {
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
main {
|
||||
height: 100vh;
|
||||
-ms-scroll-snap-type: y proximity;
|
||||
scroll-snap-type: y proximity;
|
||||
overflow-y: auto;
|
||||
.toggle {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.toggle input[type='checkbox'] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.toggle .switch {
|
||||
overflow: hidden;
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
justify-items: center;
|
||||
padding: 0.2rem;
|
||||
min-height: 1.6rem;
|
||||
max-height: 1.6rem;
|
||||
border-radius: 1rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.toggle .circle {
|
||||
border-radius: 1rem;
|
||||
-webkit-transition: -webkit-transform 0.3s;
|
||||
transition: -webkit-transform 0.3s;
|
||||
transition: transform 0.3s;
|
||||
transition: transform 0.3s, -webkit-transform 0.3s;
|
||||
fill: var(--primary-color);
|
||||
overflow: visible;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
}
|
||||
|
||||
.toggle .circle:first-of-type {
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.toggle .circle line {
|
||||
stroke: var(--primary-color);
|
||||
stroke-width: 6;
|
||||
}
|
||||
|
||||
.toggle input:checked ~ .switch .circle {
|
||||
-webkit-transform: translateY(-1.8rem);
|
||||
transform: translateY(-1.8rem);
|
||||
}
|
||||
|
||||
section {
|
||||
position: relative;
|
||||
scroll-snap-align: start;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
section header {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
@ -115,10 +181,6 @@ section header #logo {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
section header #logo h5 {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
section header h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
@ -126,7 +188,8 @@ section header h1 {
|
||||
section header .border {
|
||||
height: 0.3rem;
|
||||
width: 50%;
|
||||
background: var(--primary-color);
|
||||
background: -webkit-gradient(linear, left top, right top, from(#8E24AA), color-stop(#2962FF), to(#18FFFF));
|
||||
background: linear-gradient(to right, #8E24AA, #2962FF, #18FFFF);
|
||||
}
|
||||
|
||||
section .dark-background {
|
||||
@ -144,19 +207,42 @@ section .dark-background {
|
||||
margin: 0 1rem;
|
||||
}
|
||||
|
||||
#main_logo {
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
margin-right: 0.5rem;
|
||||
fill: rgba(var(--text), 1);
|
||||
}
|
||||
|
||||
#first_section {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
-ms-grid-rows: 1fr auto;
|
||||
grid-template-rows: 1fr auto;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
#main_search {
|
||||
position: relative;
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
padding: 1em 0;
|
||||
place-items: center;
|
||||
padding: 1em;
|
||||
/*#floscout_illustration{
|
||||
margin-bottom: 1em;
|
||||
fill: none;
|
||||
height: 12rem;
|
||||
width: 12rem;
|
||||
stroke-width: 12;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
.magni-glass-color{
|
||||
stroke: var(--primary-color);
|
||||
}
|
||||
.cube-color{
|
||||
stroke: rgba(var(--text), 1);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
#main_search .input {
|
||||
@ -166,14 +252,15 @@ section .dark-background {
|
||||
-ms-grid-columns: auto 1fr;
|
||||
grid-template-columns: auto 1fr;
|
||||
z-index: 1;
|
||||
width: calc(100vw - 2rem);
|
||||
width: 100%;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
background: white;
|
||||
background: rgba(var(--foreground), 1);
|
||||
padding: 1em;
|
||||
gap: 1em;
|
||||
border-radius: 0.4em;
|
||||
border: 1px solid rgba(var(--text), 0.2);
|
||||
}
|
||||
|
||||
#main_search input {
|
||||
@ -181,8 +268,10 @@ section .dark-background {
|
||||
width: 100%;
|
||||
background: transparent;
|
||||
outline: none;
|
||||
font-size: 0.9rem;
|
||||
font-size: 1rem;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 500;
|
||||
color: rgba(var(--text), 1);
|
||||
}
|
||||
|
||||
#main_search .icon {
|
||||
@ -190,24 +279,29 @@ section .dark-background {
|
||||
overflow: visible;
|
||||
width: 1.5em;
|
||||
fill: none;
|
||||
stroke: black;
|
||||
stroke: rgba(var(--text), 1);
|
||||
opacity: 0.5;
|
||||
stroke-width: 6;
|
||||
}
|
||||
|
||||
#main_search .watermark {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
z-index: 0;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
font-size: 12rem;
|
||||
font-size: 40vw;
|
||||
text-align: right;
|
||||
opacity: 0.06;
|
||||
line-height: 1em;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.dark-background {
|
||||
background: #ececec;
|
||||
background: var(--dark-shade);
|
||||
}
|
||||
|
||||
#highlights {
|
||||
@ -227,12 +321,21 @@ section .dark-background {
|
||||
font-size: 1.6em;
|
||||
letter-spacing: 0.1rem;
|
||||
margin-top: 0.1em;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
#highlights .highlight-item:first-of-type, #highlights .highlight-item:nth-of-type(2) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#highlights .highlight-item:first-of-type {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#highlights .highlight-item:nth-of-type(2) {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.bebas {
|
||||
font-family: 'Bebas Neue', cursive;
|
||||
font-weight: normal;
|
||||
@ -242,9 +345,9 @@ section .dark-background {
|
||||
#top_transaction_container {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
-ms-grid-columns: 1fr;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1em;
|
||||
-ms-grid-columns: (minmax(20rem, 1fr))[auto-fit];
|
||||
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
|
||||
gap: 1.5em;
|
||||
padding-bottom: 2em;
|
||||
padding-top: 2em;
|
||||
}
|
||||
@ -254,9 +357,10 @@ section .dark-background {
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
padding: 2em 1.5em;
|
||||
padding: 2em;
|
||||
border-radius: 0.3em;
|
||||
background: #fff;
|
||||
background: rgba(var(--foreground), 1);
|
||||
border: solid 1px rgba(var(--text), 0.2);
|
||||
}
|
||||
|
||||
.transaction .transaction-header {
|
||||
@ -275,12 +379,6 @@ section .dark-background {
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.transaction .transaction-header .border {
|
||||
height: 0.2em;
|
||||
width: 50%;
|
||||
background: var(--primary-color);
|
||||
}
|
||||
|
||||
.transaction .transaction-header .icon {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
@ -293,6 +391,7 @@ section .dark-background {
|
||||
opacity: 0.6;
|
||||
margin-left: auto;
|
||||
cursor: pointer;
|
||||
fill: rgba(var(--text), 1);
|
||||
}
|
||||
|
||||
.transaction .transaction-header .icon svg:hover {
|
||||
@ -300,11 +399,10 @@ section .dark-background {
|
||||
}
|
||||
|
||||
.transaction h5 {
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.4em;
|
||||
opacity: 0.8;
|
||||
font-size: 0.7em;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
.transaction h4 {
|
||||
@ -314,6 +412,11 @@ section .dark-background {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.transaction h4:hover {
|
||||
-webkit-filter: brightness(150%);
|
||||
filter: brightness(150%);
|
||||
}
|
||||
|
||||
.transaction h3 {
|
||||
margin-top: 2em;
|
||||
text-align: right;
|
||||
@ -325,7 +428,7 @@ section .dark-background {
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: #ececec;
|
||||
background: rgba(var(--foreground), 1);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
@ -343,7 +446,7 @@ section .dark-background {
|
||||
width: 80vw !important;
|
||||
}
|
||||
.watermark {
|
||||
font-size: 16rem;
|
||||
font-size: 16vw !important;
|
||||
line-height: 0.6em;
|
||||
}
|
||||
section header h1 {
|
||||
@ -351,13 +454,6 @@ section .dark-background {
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 800px) {
|
||||
#top_transaction_container {
|
||||
-ms-grid-columns: (1fr)[2];
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1280px) {
|
||||
.padding {
|
||||
padding: 0 8vw;
|
||||
@ -372,10 +468,6 @@ section .dark-background {
|
||||
.input {
|
||||
width: 50vw !important;
|
||||
}
|
||||
#top_transaction_container {
|
||||
-ms-grid-columns: (1fr)[3];
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1920px) {
|
||||
@ -388,10 +480,6 @@ section .dark-background {
|
||||
.margin {
|
||||
margin: 0 12vw;
|
||||
}
|
||||
#top_transaction_container {
|
||||
-ms-grid-columns: (1fr)[4];
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 2048px) {
|
||||
@ -404,6 +492,9 @@ section .dark-background {
|
||||
.margin {
|
||||
margin: 0 24vw;
|
||||
}
|
||||
#first_section {
|
||||
min-height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 320px) {
|
||||
@ -414,14 +505,16 @@ section .dark-background {
|
||||
|
||||
@media (hover: hover) {
|
||||
button {
|
||||
-webkit-transition: -webkit-box-shadow 0.3s;
|
||||
transition: -webkit-box-shadow 0.3s;
|
||||
transition: box-shadow 0.3s;
|
||||
transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
|
||||
-webkit-transition: background-color 0.3s, -webkit-box-shadow 0.3s;
|
||||
transition: background-color 0.3s, -webkit-box-shadow 0.3s;
|
||||
transition: box-shadow 0.3s, background-color 0.3s;
|
||||
transition: box-shadow 0.3s, background-color 0.3s, -webkit-box-shadow 0.3s;
|
||||
}
|
||||
button:hover {
|
||||
-webkit-box-shadow: 0.4em 0.6em 0 rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0.4em 0.6em 0 rgba(0, 0, 0, 0.2);
|
||||
background: rgba(var(--text), 1);
|
||||
color: var(--background);
|
||||
-webkit-box-shadow: 0.4em 0.6em 0 rgba(var(--text), 0.2);
|
||||
box-shadow: 0.4em 0.6em 0 rgba(var(--text), 0.2);
|
||||
}
|
||||
#logo {
|
||||
cursor: pointer;
|
||||
|
||||
File diff suppressed because one or more lines are too long
169
css/main.scss
169
css/main.scss
@ -7,11 +7,26 @@
|
||||
box-sizing: border-box;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
:root{
|
||||
--primary-color: #00A7B4;
|
||||
}
|
||||
body{
|
||||
--primary-color: #1E88E5;
|
||||
--text: 17, 17, 17;
|
||||
--text-light: 85, 85, 85;
|
||||
--foreground: 255, 255, 255;
|
||||
--background: #e8e8e8;
|
||||
--dark-shade: #dadada;
|
||||
font-size: 14px;
|
||||
color: rgba(var(--text), 1);
|
||||
background: rgba(var(--foreground), 1);
|
||||
}
|
||||
body[data-theme='dark']{
|
||||
--text: 238, 238, 238;
|
||||
--text-light: 170, 170, 170;
|
||||
--foreground: 26, 26, 26;
|
||||
--background: #111;
|
||||
--dark-shade: #1a1a1a;
|
||||
}
|
||||
h5{
|
||||
font-weight: 400;
|
||||
}
|
||||
input[type=text]::-ms-clear { display: none; width : 0; height: 0; }
|
||||
input[type=text]::-ms-reveal { display: none; width : 0; height: 0; }
|
||||
@ -30,7 +45,7 @@ input:invalid{
|
||||
border: none;
|
||||
}
|
||||
button{
|
||||
border: 1px solid rgba($color: #000000, $alpha: 0.2);
|
||||
border: 1px solid rgba(var(--text), 0.2);
|
||||
border-radius: 0.2em;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
@ -38,6 +53,7 @@ button{
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
padding: 1em 1.5em;
|
||||
color: rgba(var(--text), 1);
|
||||
}
|
||||
.flex{
|
||||
display: flex;
|
||||
@ -59,23 +75,53 @@ button{
|
||||
.breakable{
|
||||
word-break: break-all;
|
||||
}
|
||||
main{
|
||||
height: 100vh;
|
||||
scroll-snap-type: y proximity;
|
||||
overflow-y: auto;
|
||||
.toggle{
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
input[type='checkbox']{
|
||||
display: none;
|
||||
}
|
||||
.switch{
|
||||
overflow: hidden;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
justify-items: center;
|
||||
padding: 0.2rem;
|
||||
min-height: 1.6rem;
|
||||
max-height: 1.6rem;
|
||||
border-radius: 1rem;
|
||||
position: relative;
|
||||
}
|
||||
.circle{
|
||||
border-radius: 1rem;
|
||||
transition: transform 0.3s;
|
||||
&:first-of-type{
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
fill: var(--primary-color);
|
||||
overflow: visible;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
line{
|
||||
stroke: var(--primary-color);
|
||||
stroke-width: 6;
|
||||
}
|
||||
}
|
||||
input:checked ~ .switch .circle{
|
||||
transform: translateY(-1.8rem);
|
||||
}
|
||||
}
|
||||
section{
|
||||
position: relative;
|
||||
scroll-snap-align: start;
|
||||
min-height: 100vh;
|
||||
header{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 2em 0;
|
||||
#logo{
|
||||
display: inline-block;
|
||||
h5{
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
h1{
|
||||
font-size: 1.5rem;
|
||||
@ -83,7 +129,7 @@ section{
|
||||
.border{
|
||||
height: 0.3rem;
|
||||
width: 50%;
|
||||
background: var(--primary-color);
|
||||
background: linear-gradient(to right, #8E24AA,#2962FF, #18FFFF);
|
||||
}
|
||||
}
|
||||
.dark-background{
|
||||
@ -97,57 +143,84 @@ section{
|
||||
.margin{
|
||||
margin: 0 1rem;
|
||||
}
|
||||
#main_logo{
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
margin-right: 0.5rem;
|
||||
fill: rgba(var(--text), 1);
|
||||
}
|
||||
#first_section{
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto;
|
||||
min-height: 100vh;
|
||||
}
|
||||
#main_search{
|
||||
position: relative;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
padding: 1em 0;
|
||||
place-items: center;
|
||||
padding: 1em;
|
||||
/*#floscout_illustration{
|
||||
margin-bottom: 1em;
|
||||
fill: none;
|
||||
height: 12rem;
|
||||
width: 12rem;
|
||||
stroke-width: 12;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
.magni-glass-color{
|
||||
stroke: var(--primary-color);
|
||||
}
|
||||
.cube-color{
|
||||
stroke: rgba(var(--text), 1);
|
||||
}
|
||||
}*/
|
||||
.input{
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
z-index: 1;
|
||||
width: calc(100vw - 2rem);
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
background: white;
|
||||
background: rgba(var(--foreground), 1);
|
||||
padding: 1em;
|
||||
gap: 1em;
|
||||
border-radius: 0.4em;
|
||||
border: 1px solid rgba(var(--text), 0.2);
|
||||
}
|
||||
input{
|
||||
border: none;
|
||||
width: 100%;
|
||||
background: transparent;
|
||||
outline: none;
|
||||
font-size: 0.9rem;
|
||||
font-size: 1rem;
|
||||
letter-spacing: 0.06em;
|
||||
font-weight: 500;
|
||||
color: rgba(var(--text), 1);
|
||||
}
|
||||
.icon{
|
||||
height: 1.2em;
|
||||
overflow: visible;
|
||||
width: 1.5em;
|
||||
fill: none;
|
||||
stroke: black;
|
||||
stroke: rgba(var(--text), 1);
|
||||
opacity: 0.5;
|
||||
stroke-width: 6;
|
||||
}
|
||||
.watermark{
|
||||
user-select: none;
|
||||
z-index: 0;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
font-size: 12rem;
|
||||
font-size: 40vw;
|
||||
text-align: right;
|
||||
opacity: 0.06;
|
||||
line-height: 1em;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
.dark-background{
|
||||
background: #ececec;
|
||||
background: var(--dark-shade);
|
||||
}
|
||||
#highlights{
|
||||
padding: 4em 0;
|
||||
@ -162,10 +235,17 @@ section{
|
||||
font-size: 1.6em;
|
||||
letter-spacing: 0.1rem;
|
||||
margin-top: 0.1em;
|
||||
font-weight: 500;
|
||||
}
|
||||
&:first-of-type,&:nth-of-type(2){
|
||||
cursor: pointer;
|
||||
}
|
||||
&:first-of-type{
|
||||
text-transform: uppercase;
|
||||
}
|
||||
&:nth-of-type(2){
|
||||
text-transform: capitalize;
|
||||
}
|
||||
}
|
||||
}
|
||||
.bebas{
|
||||
@ -175,16 +255,17 @@ section{
|
||||
}
|
||||
#top_transaction_container{
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1em;
|
||||
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
|
||||
gap: 1.5em;
|
||||
padding-bottom: 2em;
|
||||
padding-top: 2em;
|
||||
}
|
||||
.transaction{
|
||||
flex-direction: column;
|
||||
padding: 2em 1.5em;
|
||||
padding: 2em;
|
||||
border-radius: 0.3em;
|
||||
background: #fff;
|
||||
background: rgba(var(--foreground), 1);
|
||||
border: solid 1px rgba(var(--text), 0.2);
|
||||
.transaction-header{
|
||||
margin-bottom: 2em;
|
||||
grid-template-columns: auto 1fr;
|
||||
@ -196,11 +277,6 @@ section{
|
||||
margin-top: 0.2em;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
.border{
|
||||
height: 0.2em;
|
||||
width: 50%;
|
||||
background: var(--primary-color);
|
||||
}
|
||||
.icon{
|
||||
display: flex;
|
||||
svg{
|
||||
@ -209,6 +285,7 @@ section{
|
||||
opacity: 0.6;
|
||||
margin-left: auto;
|
||||
cursor: pointer;
|
||||
fill: rgba(var(--text), 1);
|
||||
&:hover{
|
||||
opacity: 1;
|
||||
}
|
||||
@ -217,17 +294,19 @@ section{
|
||||
}
|
||||
}
|
||||
h5{
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.4em;
|
||||
opacity: 0.8;
|
||||
font-size: 0.7em;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
h4{
|
||||
cursor: pointer;
|
||||
color: var(--primary-color);
|
||||
margin-bottom: 1.5em;
|
||||
font-weight: 500;
|
||||
&:hover{
|
||||
filter: brightness(150%);
|
||||
}
|
||||
}
|
||||
h3{
|
||||
margin-top: 2em;
|
||||
@ -239,7 +318,7 @@ section{
|
||||
grid-template-columns: 1fr auto;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: #ececec;
|
||||
background: rgba(var(--foreground), 1);
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
@ -257,7 +336,7 @@ section{
|
||||
width: 80vw !important;
|
||||
}
|
||||
.watermark{
|
||||
font-size: 16rem;
|
||||
font-size: 16vw !important;
|
||||
line-height: 0.6em;
|
||||
}
|
||||
section{
|
||||
@ -269,9 +348,6 @@ section{
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 800px){
|
||||
#top_transaction_container{
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1280px){
|
||||
.padding{
|
||||
@ -286,9 +362,6 @@ section{
|
||||
.input{
|
||||
width: 50vw !important;
|
||||
}
|
||||
#top_transaction_container{
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1920px){
|
||||
body{
|
||||
@ -300,9 +373,6 @@ section{
|
||||
.margin{
|
||||
margin: 0 12vw;
|
||||
}
|
||||
#top_transaction_container{
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 2048px){
|
||||
body{
|
||||
@ -314,6 +384,9 @@ section{
|
||||
.margin{
|
||||
margin: 0 24vw;
|
||||
}
|
||||
#first_section{
|
||||
min-height: auto;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 320px){
|
||||
body{
|
||||
@ -322,12 +395,14 @@ section{
|
||||
}
|
||||
@media (hover:hover){
|
||||
button{
|
||||
transition: box-shadow 0.3s;
|
||||
transition: box-shadow 0.3s, background-color 0.3s;
|
||||
&:hover{
|
||||
box-shadow: 0.4em 0.6em 0 rgba($color: #000000, $alpha: 0.2);
|
||||
background: rgba(var(--text), 1);
|
||||
color: var(--background);
|
||||
box-shadow: 0.4em 0.6em 0 rgba(var(--text), 0.2);
|
||||
}
|
||||
}
|
||||
#logo{
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
79
index.html
79
index.html
@ -6,24 +6,60 @@
|
||||
<title>FLO Scout</title>
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<body data-theme='dark'>
|
||||
<main>
|
||||
<section id="first_section">
|
||||
<div class="dark-background">
|
||||
<header class="margin">
|
||||
<svg id="main_logo" viewBox="0 0 27.25 32">
|
||||
<title>RanchiMall</title>
|
||||
<path d="M27.14,30.86c-.74-2.48-3-4.36-8.25-6.94a20,20,0,0,1-4.2-2.49,6,6,0,0,1-1.25-1.67,4,4,0,0,1,0-2.26c.37-1.08.79-1.57,3.89-4.55a11.66,11.66,0,0,0,3.34-4.67,6.54,6.54,0,0,0,.05-2.82C20,3.6,18.58,2,16.16.49c-.89-.56-1.29-.64-1.3-.24a3,3,0,0,1-.3.72l-.3.55L13.42.94C13,.62,12.4.26,12.19.15c-.4-.2-.73-.18-.72.05a9.39,9.39,0,0,1-.61,1.33s-.14,0-.27-.13C8.76.09,8-.27,8,.23A11.73,11.73,0,0,1,6.76,2.6C4.81,5.87,2.83,7.49.77,7.49c-.89,0-.88,0-.61,1,.22.85.33.92,1.09.69A5.29,5.29,0,0,0,3,8.33c.23-.17.45-.29.49-.26a2,2,0,0,1,.22.63A1.31,1.31,0,0,0,4,9.34a5.62,5.62,0,0,0,2.27-.87L7,8l.13.55c.19.74.32.82,1,.65a7.06,7.06,0,0,0,3.46-2.47l.6-.71-.06.64c-.17,1.63-1.3,3.42-3.39,5.42L6.73,14c-3.21,3.06-3,5.59.6,8a46.77,46.77,0,0,0,4.6,2.41c.28.13,1,.52,1.59.87,3.31,2,4.95,3.92,4.95,5.93a2.49,2.49,0,0,0,.07.77h0c.09.09,0,.1.9-.14a2.61,2.61,0,0,0,.83-.32,3.69,3.69,0,0,0-.55-1.83A11.14,11.14,0,0,0,17,26.81a35.7,35.7,0,0,0-5.1-2.91C9.37,22.64,8.38,22,7.52,21.17a3.53,3.53,0,0,1-1.18-2.48c0-1.38.71-2.58,2.5-4.23,2.84-2.6,3.92-3.91,4.67-5.65a3.64,3.64,0,0,0,.42-2A3.37,3.37,0,0,0,13.61,5l-.32-.74.29-.48c.17-.27.37-.63.46-.8l.15-.3.44.64a5.92,5.92,0,0,1,1,2.81,5.86,5.86,0,0,1-.42,1.94c0,.12-.12.3-.15.4a9.49,9.49,0,0,1-.67,1.1,28,28,0,0,1-4,4.29C8.62,15.49,8.05,16.44,8,17.78a3.28,3.28,0,0,0,1.11,2.76c.95,1,2.07,1.74,5.25,3.32,3.64,1.82,5.22,2.9,6.41,4.38A4.78,4.78,0,0,1,21.94,31a3.21,3.21,0,0,0,.14.92,1.06,1.06,0,0,0,.43-.05l.83-.22.46-.12-.06-.46c-.21-1.53-1.62-3.25-3.94-4.8a37.57,37.57,0,0,0-5.22-2.82A13.36,13.36,0,0,1,11,21.19a3.36,3.36,0,0,1-.8-4.19c.41-.85.83-1.31,3.77-4.15,2.39-2.31,3.43-4.13,3.43-6a5.85,5.85,0,0,0-2.08-4.29c-.23-.21-.44-.43-.65-.65A2.5,2.5,0,0,1,15.27.69a10.6,10.6,0,0,1,2.91,2.78A4.16,4.16,0,0,1,19,6.16a4.91,4.91,0,0,1-.87,3c-.71,1.22-1.26,1.82-4.27,4.67a9.47,9.47,0,0,0-2.07,2.6,2.76,2.76,0,0,0-.33,1.54,2.76,2.76,0,0,0,.29,1.47c.57,1.21,2.23,2.55,4.65,3.73a32.41,32.41,0,0,1,5.82,3.24c2.16,1.6,3.2,3.16,3.2,4.8a1.94,1.94,0,0,0,.09.76,4.54,4.54,0,0,0,1.66-.4C27.29,31.42,27.29,31.37,27.14,30.86ZM6.1,7h0a3.77,3.77,0,0,1-1.46.45L4,7.51l.68-.83a25.09,25.09,0,0,0,3-4.82A12,12,0,0,1,8.28.76c.11-.12.77.32,1.53,1l.63.58-.57.84A10.34,10.34,0,0,1,6.1,7Zm5.71-1.78A9.77,9.77,0,0,1,9.24,7.18h0a5.25,5.25,0,0,1-1.17.28l-.58,0,.65-.78a21.29,21.29,0,0,0,2.1-3.12c.22-.41.42-.76.44-.79s.5.43.9,1.24L12,5ZM13.41,3a2.84,2.84,0,0,1-.45.64,11,11,0,0,1-.9-.91l-.84-.9.19-.45c.34-.79.39-.8,1-.31A9.4,9.4,0,0,1,13.8,2.33q-.18.34-.39.69Z"/>
|
||||
</svg>
|
||||
<div id="logo">
|
||||
<h5>RanchiMall</h5>
|
||||
<h1 class="bebas">FLO SCOUT</h1>
|
||||
<div class="border"></div>
|
||||
</div>
|
||||
<label class="toggle" style="margin-left: auto" title="Change theme">
|
||||
<input type="checkbox" name="theme toggle" id="theme_toggle">
|
||||
<div class="switch">
|
||||
<svg class="circle" viewBox="0 0 64 64">
|
||||
<title>dark theme</title>
|
||||
<path d="M48.25,45.45A27.26,27.26,0,0,1,20.82,18.37,26.75,26.75,0,0,1,27.47.71a31.71,31.71,0,0,0-27,31.2,31.8,31.8,0,0,0,32,31.59A32,32,0,0,0,63.12,41.12,27.59,27.59,0,0,1,48.25,45.45Z" transform="translate(0 0)"/>
|
||||
</svg>
|
||||
<svg class="circle" viewBox="0 0 64 64">
|
||||
<title>light theme</title>
|
||||
<circle cx="32" cy="32" r="13.9"/>
|
||||
<line x1="32" y1="6.86" x2="32"/>
|
||||
<line x1="32" y1="64" x2="32" y2="57.14"/>
|
||||
<line x1="57.14" y1="32" x2="64" y2="32"/>
|
||||
<line y1="32" x2="6.86" y2="32"/>
|
||||
<line x1="49.78" y1="14.22" x2="54.63" y2="9.37"/>
|
||||
<line x1="9.37" y1="54.63" x2="14.22" y2="49.78"/>
|
||||
<line x1="49.78" y1="49.78" x2="54.63" y2="54.63"/>
|
||||
<line x1="9.37" y1="9.37" x2="14.22" y2="14.22"/>
|
||||
</svg>
|
||||
</div>
|
||||
</label>
|
||||
</header>
|
||||
<div id="main_search">
|
||||
<!--<svg id="floscout_illustration" viewBox="0 0 512 369.55">
|
||||
<title>block explorer illustration</title>
|
||||
<path class="cube-color" d="M293.9,186l-69.66,40.22" transform="translate(0 -71.22)"/>
|
||||
<polyline class="cube-color" points="165.22 61.52 143.72 49.1 8.75 127.03 8.75 282.88 143.72 360.81 253.94 297.17"/>
|
||||
<path class="cube-color" d="M216.18,132.74l83.88,48.42V324" transform="translate(0 -71.22)"/>
|
||||
<path class="cube-color" d="M43.85,217.55l99.87,59.51V392.55" transform="translate(0 -71.22)"/>
|
||||
<circle class="magni-glass-color" cx="308.68" cy="133.72" r="123.72"/>
|
||||
<path class="magni-glass-color" d="M372.31,251.78a79.71,79.71,0,0,1-24,20.65" transform="translate(0 -71.22)"/>
|
||||
<path class="magni-glass-color" d="M335.15,129a78.81,78.81,0,0,1,51,94.65" transform="translate(0 -71.22)"/>
|
||||
<line class="magni-glass-color" x1="400.59" y1="223.86" x2="502" y2="328.39"/>
|
||||
</svg>-->
|
||||
<label class="input margin">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<title>Search icon</title>
|
||||
<path d="M60.7,63.72a3,3,0,0,1-2.14-.88L42.22,46.5a3,3,0,0,1-.77-2.91l0-.16-1.61-1.6-.18-.2-.24.12a23.66,23.66,0,1,1,2.29-2.29l-.18.21.22.2.07,0,1.57,1.58.16,0a3,3,0,0,1,2.91.77L62.84,58.56a3,3,0,0,1-2.14,5.16Z" transform="translate(0 0)"/>
|
||||
<path d="M23.93.55A23.36,23.36,0,0,1,41.54,39.28l-.36.41.41.36.09.07,1.45,1.45.22.22.31-.08a2.84,2.84,0,0,1,.72-.09,2.69,2.69,0,0,1,1.92.79L62.64,58.75a2.75,2.75,0,1,1-3.89,3.89L42.41,46.3a2.73,2.73,0,0,1-.7-2.64l.08-.31-.22-.22-1.45-1.45,0,0-.05,0-.36-.41-.41.36A23.37,23.37,0,1,1,23.93.55m0-.55A23.93,23.93,0,1,0,39.64,42l0,.07,1.49,1.5A3.28,3.28,0,0,0,42,46.69L58.36,63A3.3,3.3,0,0,0,63,58.36L46.69,42a3.24,3.24,0,0,0-2.31-1,3.56,3.56,0,0,0-.86.11L42,39.69l-.07,0A23.91,23.91,0,0,0,23.93,0Z" transform="translate(0 0)"/>
|
||||
</svg>
|
||||
<title>search icon</title>
|
||||
<path d="M24,46.66A22.94,22.94,0,0,1,7.8,7.51,22.94,22.94,0,1,1,40.24,39.94,22.75,22.75,0,0,1,24,46.66Z" transform="translate(-0.3 0)"/>
|
||||
<path d="M24,1.58A22.15,22.15,0,0,1,39.68,39.39,22.15,22.15,0,0,1,8.36,8.07,22,22,0,0,1,24,1.58M24,0A23.73,23.73,0,1,0,40.8,7,23.65,23.65,0,0,0,24,0Z" transform="translate(-0.3 0)"/>
|
||||
<line x1="63.35" y1="63.35" x2="39.86" y2="39.86"/></svg>
|
||||
<input type="search" placeholder="Search Block, Transactions, address, token or contract">
|
||||
</label>
|
||||
<h1 class="bebas watermark">flo scout</h1>
|
||||
@ -48,7 +84,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section id="latest_transaction_section" class="dark-background">
|
||||
<section id="latest_transaction_section">
|
||||
<header class="margin grid grid-2">
|
||||
<h1 class="bebas">Latest transactions</h1>
|
||||
<button>View all</button>
|
||||
@ -59,7 +95,6 @@
|
||||
<div>
|
||||
<h5>Token transfer</h5>
|
||||
<h2>Rupee</h2>
|
||||
<div class="border"></div>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<svg viewBox="0 0 64 64">
|
||||
@ -79,7 +114,6 @@
|
||||
<div>
|
||||
<h5>Token transfer</h5>
|
||||
<h2>Rupee</h2>
|
||||
<div class="border"></div>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<svg viewBox="0 0 64 64">
|
||||
@ -99,7 +133,6 @@
|
||||
<div>
|
||||
<h5>Token transfer</h5>
|
||||
<h2>Rupee</h2>
|
||||
<div class="border"></div>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<svg viewBox="0 0 64 64">
|
||||
@ -117,5 +150,33 @@
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<script>
|
||||
let themeToggler = document.getElementById('theme_toggle'),
|
||||
body = document.querySelector('body');
|
||||
if(localStorage.theme === 'dark'){
|
||||
nightlight();
|
||||
themeToggler.checked = true
|
||||
}
|
||||
else{
|
||||
daylight()
|
||||
themeToggler.checked = false
|
||||
}
|
||||
themeToggler.addEventListener('change', () => {
|
||||
if(themeToggler.checked){
|
||||
nightlight();
|
||||
localStorage.setItem('theme', 'dark')
|
||||
}
|
||||
else{
|
||||
daylight();
|
||||
localStorage.setItem('theme', 'light')
|
||||
}
|
||||
})
|
||||
function daylight(){
|
||||
body.setAttribute("data-theme", 'light');
|
||||
}
|
||||
function nightlight(){
|
||||
body.setAttribute('data-theme', 'dark');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user