cleanup: some more css and html tags

This commit is contained in:
Ivana Andersson 2023-08-16 16:23:18 +03:00
parent f1b8d76841
commit 443fc23e41
4 changed files with 40 additions and 82 deletions

View File

@ -1,6 +1,10 @@
#root { #root {
width: 100%; width: 100%;
} }
.nimbus-logomark{
width: auto;
height: 30%;
}
ul{ ul{
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;

View File

@ -33,70 +33,28 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
header {
width: 100%;
display: flex;
justify-content: space-between;
padding: 1.5rem 0;
}
.logo-title {
font-size: 27px;
font-weight: 700;
display: flex;
align-items: center;
}
.logo-title .beta{
color: #FFF;
font-size: 10px;
font-weight: 600;
border-radius: 66.667px;
background-color: #2A4AF5;
padding: 4px 6px;
margin-left: 10px;
}
.content { .content {
flex-grow: 1; flex-grow: 1;
} }
.content .title {
font-size: 27px;
font-weight: 600;
margin-bottom: 0.25em;
}
.content .subtitle {
font-size: 15px;
margin: 0.1em;
}
.content .subtitle span{
font-weight: 700;
}
.content button {
display: flex;
align-items: center;
}
.content button span {
padding-right: 10px;
}
/* LAYOUT RIGHT ELEMENT WITH IMAGE TAKING UP THE WHOLE HIGHT OF THE VIEWPORT */
/* LAYOUT RIGHT ELEMENT WITH IMAGE TAKING UP THE WHOLE HIGHT OF THE VIEWPORT */ .layout-right {
.layout-right {
flex: 0 0 45%; flex: 0 0 45%;
max-width: 45%; max-width: 45%;
z-index: 0; z-index: 0;
} }
.image-container { .image-container {
height: 100%; height: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
.image-container::before { .image-container::before {
display: block; display: block;
content: ""; content: "";
padding-bottom: 100%; padding-bottom: 100%;
} }
.image-container::after { .image-container::after {
display: block; display: block;
content: ""; content: "";
position: absolute; position: absolute;
@ -105,12 +63,12 @@ header {
width: 50%; width: 50%;
height: 100%; height: 100%;
background: linear-gradient(to right, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0.0)); background: linear-gradient(to right, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0.0));
} }
.image-container img { .image-container img {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
height: 140%; height: 140%;
width: auto; width: auto;
} }

View File

@ -46,10 +46,6 @@ button:focus,
button:focus-visible { button:focus-visible {
outline: 4px auto -webkit-focus-ring-color; outline: 4px auto -webkit-focus-ring-color;
} }
.nimbus-logomark{
width: auto;
height: 30%;
}
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
:root { :root {
color: #09101C; color: #09101C;

View File

@ -12,9 +12,9 @@ function LandingPage() {
<> <>
<PageWrapperShadow rightImageSrc="/background-images/landing-page-bg.png"> <PageWrapperShadow rightImageSrc="/background-images/landing-page-bg.png">
<div className="landing-page"> <div className="landing-page">
<header> <XStack>
<NimbusLogo /> <NimbusLogo />
</header> </XStack>
<YStack> <YStack>
<Titles <Titles
title="Light and performant clients, for all Ethereum validators." title="Light and performant clients, for all Ethereum validators."