Skip to content

Commit

Permalink
change become a validator btn
Browse files Browse the repository at this point in the history
  • Loading branch information
alidevjimmy committed Sep 10, 2024
1 parent 90de7ee commit c0714cf
Show file tree
Hide file tree
Showing 3 changed files with 419 additions and 23 deletions.
197 changes: 192 additions & 5 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,6 @@ html {

.ta-join-us-box .count {
font-size: 120px;
font-family: "Orbitron", sans-serif;
display: block;
text-align: center;
-webkit-text-fill-color: transparent;
Expand Down Expand Up @@ -1006,7 +1005,6 @@ html {
text-align: center;
font-size: 70px;
font-weight: 700;
font-family: "Orbitron", sans-serif;
letter-spacing: -0.02em;
-webkit-text-fill-color: transparent;
-webkit-text-stroke-width: 1px;
Expand All @@ -1021,7 +1019,6 @@ html {
}

.ta-counter-box .odometer-inside span {
font-family: "Orbitron", sans-serif;
line-height: 100%;
}

Expand All @@ -1031,7 +1028,6 @@ html {
-webkit-text-stroke-color: #e6e9e5;
font-size: 70px;
font-weight: 700;
font-family: "Orbitron", sans-serif;
letter-spacing: -0.02em;
}

Expand All @@ -1054,4 +1050,195 @@ html {
.ta-counter-box__app {
padding-left: 50px;
}
}
}

.btn-become-validator {
display: flex;
justify-content: center;
align-items: center;
width: 13rem;
overflow: hidden;
height: 3rem;
background-size: 300% 300%;
backdrop-filter: blur(1rem);
border-radius: 0.5rem;
transition: 0.5s;
animation: gradient_301 5s ease infinite;
border: double 4px transparent;
background-image: linear-gradient(#161a25, #161a25),
linear-gradient(
137.48deg,
#217AFF 10%,
#14376b 45%,
#000000 67%,
#161a25 87%
);
background-origin: border-box;
background-clip: content-box, border-box;
}

#container-stars {
position: absolute;
z-index: -1;
width: 100%;
height: 100%;
overflow: hidden;
transition: 0.5s;
backdrop-filter: blur(1rem);
border-radius: 0.5rem;
}

strong {
z-index: 2;
color: #ffffff;
text-shadow: 0 0 4px white;
}

#glow {
position: absolute;
display: flex;
width: 12rem;
}

.circle-container {
position: relative;
width: 100%;
height: 100%;
animation: orbit 5s linear infinite;
}

.circle {
position: absolute;
width: 30px;
height: 30px;
border-radius: 0.5rem;
filter: blur(2rem);
}

.circle:nth-of-type(1) {
background: rgba(112, 100, 233, 0.636);
animation: orbit 8s linear infinite;
}

.circle:nth-of-type(2) {
background: rgba(99, 30, 41, 0.704);
animation: orbit 10s linear infinite;
}

.btn-become-validator:hover #container-stars {
z-index: 1;
background-color: #161a25;
}

.btn-become-validator:hover {
transform: scale(1.1);
}

.btn-become-validator:active {
border: double 4px #631e29;
background-origin: border-box;
background-clip: content-box, border-box;
animation: none;
}

.btn-become-validator:active .circle {
background: #631e29;
}

@keyframes orbit {
from {
transform: rotate(0deg) translateX(100px) rotate(0deg);
}
to {
transform: rotate(360deg) translateX(100px) rotate(-360deg);
}
}

#stars {
position: relative;
background: transparent;
width: 200rem;
height: 200rem;
}

#stars::after {
content: "";
position: absolute;
top: -10rem;
left: -100rem;
width: 100%;
height: 100%;
animation: animStarRotate 90s linear infinite;
}

#stars::after {
background-image: radial-gradient(#ffffff 1px, transparent 1%);
background-size: 50px 50px;
}

#stars::before {
content: "";
position: absolute;
top: 0;
left: -50%;
width: 170%;
height: 500%;
animation: animStar 60s linear infinite;
}

#stars::before {
background-image: radial-gradient(#ffffff 1px, transparent 1%);
background-size: 50px 50px;
opacity: 0.5;
}

@keyframes animStar {
from {
transform: translateY(0);
}

to {
transform: translateY(-135rem);
}
}

@keyframes animStarRotate {
from {
transform: rotate(360deg);
}

to {
transform: rotate(0);
}
}

@keyframes gradient_301 {
0% {
background-position: 0% 50%;
}

50% {
background-position: 100% 50%;
}

100% {
background-position: 0% 50%;
}
}

@keyframes pulse_3011 {
0% {
transform: scale(0.75);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
}

70% {
transform: scale(1);
box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
}

100% {
transform: scale(0.75);
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
}
52 changes: 39 additions & 13 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@
</div>
<div class="mt-10 text-center items-center w-full">
<div class="flex gap-x-2 justify-center" data-aos-duration="1000" data-aos="fade-up">
<a href="https://docs.pactus.org/get-started/become-a-validator"
class="btn text-neutral-50 rounded-lg bg-[#217AFF] hover:bg-[#217AFF] hover:bg-opacity-80">Become a
validator</a>
<button type="button" class="btn-become-validator">
<strong>Become a validator</strong>
<div id="container-stars">
<div id="stars"></div>
</div>

<div id="glow">
<div class="circle"></div>
<div class="circle"></div>
</div>
</button>
<a href="{{ .Site.BaseURL }}community"
class="btn btn-ghost rounded-lg shadow-top-left-to-bottom-right text-neutral-50">Join Community</a>
</div>
Expand Down Expand Up @@ -202,11 +210,16 @@ <h3 class="fn__gradient_title"><span class="prefix"></span><span data-from="0"
style="visibility: visible; animation-duration: 0.9s; animation-delay: 0.4s; animation-name: tfFadeUp;">
<div class="inner-wrapper group icon-target">
<lord-icon style="width: 50px; height: 50px;" target=".icon-target" trigger="hover"
src="/icons/system-solid-134-celebration-hover-celebration.json" colors="primary:#7064e9,secondary:#217AFF">
src="/icons/system-solid-134-celebration-hover-celebration.json"
colors="primary:#7064e9,secondary:#217AFF">
</lord-icon>
<div class="ta-content mt-16">
<a target="_blank" href="/download" class="mb-15 font-bold md:text-2xl text-xl group-hover:text-[#7064e9] transition ease-linear duration-100">Get started</a>
<p class="mt-4">To start your Pactus journey, you will need to download the latest software. Pactus is designed to be lightweight and user-friendly, offering support for all operating systems and infrastructures with our GUI and CLI applications.
<a target="_blank" href="/download"
class="mb-15 font-bold md:text-2xl text-xl group-hover:text-[#7064e9] transition ease-linear duration-100">Get
started</a>
<p class="mt-4">To start your Pactus journey, you will need to download the latest software. Pactus is
designed to be lightweight and user-friendly, offering support for all operating systems and
infrastructures with our GUI and CLI applications.
</p>
</div>
</div>
Expand All @@ -222,8 +235,12 @@ <h3 class="fn__gradient_title"><span class="prefix"></span><span data-from="0"
src="/icons/system-solid-8-account-hover-account.json" colors="primary:#7064e9,secondary:#217AFF">
</lord-icon>
<div class="ta-content mt-16">
<a target="_blank" href="https://docs.pactus.org/" class="mb-15 font-bold md:text-2xl text-xl group-hover:text-[#7064e9] transition ease-linear duration-100">Become a validator</a>
<p class="mt-4">You can become a Pactus validator by staking some coins to your node. As a Pactus validator you will earn rewards, these are given for collecting valid transactions and creating new blocks. The emission is one coin per block.</p>
<a target="_blank" href="https://docs.pactus.org/"
class="mb-15 font-bold md:text-2xl text-xl group-hover:text-[#7064e9] transition ease-linear duration-100">Become
a validator</a>
<p class="mt-4">You can become a Pactus validator by staking some coins to your node. As a Pactus
validator you will earn rewards, these are given for collecting valid transactions and creating new
blocks. The emission is one coin per block.</p>
</div>
</div>
</div>
Expand All @@ -236,8 +253,12 @@ <h3 class="fn__gradient_title"><span class="prefix"></span><span data-from="0"
src="/icons/system-solid-5-wallet-hover-wallet.json" colors="primary:#7064e9,secondary:#217AFF">
</lord-icon>
<div class="ta-content mt-16">
<a target="_blank" href="/community" class="mb-15 font-bold md:text-2xl text-xl group-hover:text-[#7064e9] transition ease-linear duration-100">Get PAC</a>
<p class="mt-4">Before you can utilize all that Pactus has to offer, you will need to obtain our native coin. PAC is a currency that can be exchanged for products, services and other currencies with a percentage fee based model of 0.01% per tx.</p>
<a target="_blank" href="/community"
class="mb-15 font-bold md:text-2xl text-xl group-hover:text-[#7064e9] transition ease-linear duration-100">Get
PAC</a>
<p class="mt-4">Before you can utilize all that Pactus has to offer, you will need to obtain our
native coin. PAC is a currency that can be exchanged for products, services and other currencies
with a percentage fee based model of 0.01% per tx.</p>
</div>
</div>
<span class="count count__3 mt-40">03</span>
Expand All @@ -249,11 +270,16 @@ <h3 class="fn__gradient_title"><span class="prefix"></span><span data-from="0"
<span class="count count__4 mb-40">04</span>
<div class="inner-wrapper group icon-target">
<lord-icon style="width: 50px; height: 50px;" target=".icon-target" trigger="hover"
src="/icons/system-solid-156-thumbs-up-down-hover-thumbs.json" colors="primary:#7064e9,secondary:#217AFF">
src="/icons/system-solid-156-thumbs-up-down-hover-thumbs.json"
colors="primary:#7064e9,secondary:#217AFF">
</lord-icon>
<div class="ta-content mt-16">
<a target="_blank" href="/contributing" class="mb-15 font-bold md:text-2xl text-xl group-hover:text-[#7064e9] transition ease-linear duration-100 ">Make Pactus better</a>
<p class="mt-4">There are many ways you can support Pactus and help it grow, from being a valuable community member and sharing with your friends to contributing to our core development. Let's work together to make Pactus even better!</p>
<a target="_blank" href="/contributing"
class="mb-15 font-bold md:text-2xl text-xl group-hover:text-[#7064e9] transition ease-linear duration-100 ">Make
Pactus better</a>
<p class="mt-4">There are many ways you can support Pactus and help it grow, from being a valuable
community member and sharing with your friends to contributing to our core development. Let's work
together to make Pactus even better!</p>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit c0714cf

Please sign in to comment.