Skip to content

Commit

Permalink
feat(webapp): apply webapp button styles and change network's contain…
Browse files Browse the repository at this point in the history
…er background color
  • Loading branch information
Torresmorah committed Oct 31, 2023
1 parent 3ae2e86 commit 47e4bb0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 44 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h1>Unlock Real-Time Visibility into Antelope Blockchains</h1>
</p>
</div>
</div>
<a href="#nav" class="myButton">
<a href="#nav" class="customButton">
<div class="visit-text">View Monitored Networks</div>
</a>
</div>
Expand Down
67 changes: 24 additions & 43 deletions docs/styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
:root {
--colors-primary: #1ccbff;
--colors-primary-dark: #138eb2;

--colors-secondary: #d6f5ff;
--colors-secondary-light: rgb(88, 116, 124);
--colors-secondary-dark: rgba(28, 203, 255, 0.2);

--colors-links: #1ccbff;

--shadows-button: 5.8px -34.8px 40.6px 0 rgba(53, 64, 82, 0.05);
Expand All @@ -25,6 +28,7 @@

.light-mode {
--colors-secondary-light: rgba(186, 239, 255, 0.6);

--colors-links: #1565c0;

--bg-main: white;
Expand Down Expand Up @@ -209,20 +213,23 @@ p {
text-align: center;
}

.myButton {
.customButton {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
box-shadow: var(--shadows-button);
background-color: var(--colors-secondary);
background-color: var(--colors-primary);
border-radius: 70px;
}

.myButton:hover {
.customButton:hover {
text-decoration: none;
background-color: var(--colors-primary-dark);
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.myButton:active {
.customButton:active {
position: relative;
top: 1px;
}
Expand Down Expand Up @@ -315,6 +322,14 @@ p {
display: none;
}

#networks {
display: flex;
flex-direction: column;
align-items: center;
padding: 16px 0px;
background-color: var(--bg-secondary);
}

@media screen and (max-width: 767px) {
#bg-image-mobile {
width: 100%;
Expand All @@ -340,7 +355,6 @@ p {
.box-network {
flex-grow: 0;
padding: 16px 0;
background-color: var(--bg-secondary);
}

#middle-logo {
Expand Down Expand Up @@ -413,7 +427,6 @@ p {
height: 58px;
font-size: 24px;
line-height: 1.2;
letter-spacing: normal;
margin: auto auto 16px;
color: var(--text-color);
}
Expand Down Expand Up @@ -550,7 +563,7 @@ p {
width: 20px;
}

.myButton {
.customButton {
background-color: var(--bg-main);
box-shadow: none;
display: block;
Expand Down Expand Up @@ -697,22 +710,16 @@ p {
letter-spacing: 0.18px;
}

.myButton {
.customButton {
width: 245px;
height: 40px;
gap: 29px;
padding: 19px 0;
border-radius: 58px;
border: solid 2px var(--colors-primary);
margin: 22px 0 64px;
}

.visit-text {
width: 245px;
flex-grow: 0;
font-size: 14px;
line-height: 3.16;
letter-spacing: 0.23px;
}

.name-networks {
Expand All @@ -723,11 +730,6 @@ p {
line-height: 1.09;
}

#networks {
display: flex;
flex-direction: column;
margin-left: calc(100% / 2 - 348px);
}
.image-box-desktop {
width: 546px;
height: 240px;
Expand Down Expand Up @@ -816,7 +818,7 @@ p {
background-position: top right;
background-repeat: no-repeat;
align-items: flex-start;
margin-top: 16px;
margin-top: 0px;
margin-left: calc(100% / 2 - 570px);
}

Expand Down Expand Up @@ -932,23 +934,16 @@ p {
line-height: 1.72;
letter-spacing: 0.18px;
}
.myButton {
.customButton {
width: 340px;
height: 60px;
gap: 29px;
padding: 19px 0;
border-radius: 75px;
border: solid 5.8px var(--colors-primary);
margin-top: 20px;
margin-bottom: 80px;
}
.visit-text {
width: 381.9px;
height: 70px;
flex-grow: 0;
font-size: 22px;
line-height: 3.16;
letter-spacing: 0.23px;
}

.name-networks {
Expand All @@ -959,11 +954,6 @@ p {
line-height: 1.09;
}

#networks {
display: flex;
flex-direction: column;
margin-left: calc(100% / 2 - 570px);
}
.image-box-desktop {
width: 546px;
height: 240px;
Expand Down Expand Up @@ -1060,10 +1050,6 @@ p {
margin-bottom: 30px;
}

#networks {
margin-left: calc(100% / 2 - 870px);
}

.box-paragraph-text > h1 {
width: 550px;
height: 96px;
Expand Down Expand Up @@ -1142,21 +1128,16 @@ p {
margin-bottom: 80px;
}

.myButton {
.customButton {
width: 506px;
height: 91px;
gap: 24.4px;
padding: 16px 0;
border-radius: 63px;
border: solid 4.9px var(--colors-primary);
margin-bottom: 100px;
}

.visit-text {
flex-grow: 0;
font-size: 32px;
line-height: 2.09;
letter-spacing: 0.19px;
}

.flex {
Expand Down

0 comments on commit 47e4bb0

Please sign in to comment.