Skip to content

Commit 3a4bcc4

Browse files
committed
page UI fix
1 parent 5889c12 commit 3a4bcc4

File tree

2 files changed

+48
-8
lines changed

2 files changed

+48
-8
lines changed

style.css

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,22 @@ html {
10891089
top: 100%;
10901090
}
10911091

1092+
.-top-1 {
1093+
top: -0.25rem;
1094+
}
1095+
1096+
.-top-1\.5 {
1097+
top: -0.375rem;
1098+
}
1099+
1100+
.-top-12 {
1101+
top: -3rem;
1102+
}
1103+
1104+
.-top-14 {
1105+
top: -3.5rem;
1106+
}
1107+
10921108
.-z-10 {
10931109
z-index: -10;
10941110
}
@@ -1133,8 +1149,8 @@ html {
11331149
grid-column: span 2 / span 2;
11341150
}
11351151

1136-
.col-span-6 {
1137-
grid-column: span 6 / span 6;
1152+
.col-span-full {
1153+
grid-column: 1 / -1;
11381154
}
11391155

11401156
.col-start-4 {
@@ -1341,6 +1357,11 @@ html {
13411357
height: 80px;
13421358
}
13431359

1360+
.size-full {
1361+
width: 100%;
1362+
height: 100%;
1363+
}
1364+
13441365
.h-14 {
13451366
height: 3.5rem;
13461367
}
@@ -1656,6 +1677,10 @@ html {
16561677
list-style-type: disc;
16571678
}
16581679

1680+
.auto-rows-auto {
1681+
grid-auto-rows: auto;
1682+
}
1683+
16591684
.grid-cols-1 {
16601685
grid-template-columns: repeat(1, minmax(0, 1fr));
16611686
}
@@ -1700,6 +1725,10 @@ html {
17001725
justify-content: space-between;
17011726
}
17021727

1728+
.justify-around {
1729+
justify-content: space-around;
1730+
}
1731+
17031732
.gap-1 {
17041733
gap: 0.25rem;
17051734
}
@@ -2524,6 +2553,10 @@ html {
25242553
font-weight: 600;
25252554
}
25262555

2556+
.font-thin {
2557+
font-weight: 100;
2558+
}
2559+
25272560
.uppercase {
25282561
text-transform: uppercase;
25292562
}
@@ -3644,6 +3677,10 @@ li li {
36443677
grid-column: span 3 / span 3;
36453678
}
36463679

3680+
.lg\:col-span-6 {
3681+
grid-column: span 6 / span 6;
3682+
}
3683+
36473684
.lg\:col-span-9 {
36483685
grid-column: span 9 / span 9;
36493686
}

template-parts/sections/section-hero.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
?>
1212

1313
<section class="relative overflow-hidden">
14-
<div class="max-w-7xl mx-auto grid grid-cols-1 xl:grid-cols-12 items-start md:pb-[10rem] lg:pb-[30rem] pb-20 px-5 lg:px-0 lg:gap-x-10 md:gap-x-5">
14+
<div class="max-w-7xl mx-auto block lg:grid grid-cols-1 auto-rows-auto xl:grid-cols-12 items-start md:pb-[10rem] lg:pb-[30rem] pb-20 px-5 lg:px-0 lg:gap-x-10 md:gap-x-5">
1515
<div class="lg:space-y-10 space-y-2.5 xl:col-span-6">
1616
<div class="space-y-5 md:pt-24 pt-10">
1717
<h1 class="lg:text-5xl text-4xl font-display lg:text-left text-center">
@@ -78,10 +78,13 @@
7878
</div>
7979
</div>
8080
</div>
81-
<div class="w-full h-full xl:hidden flex flex-col items-center mt-5 space-y-5">
81+
<div class="size-full xl:hidden flex flex-col items-center mt-5 space-y-5 col-span-full">
8282
<div class="grid grid-cols-3 place-items-center rounded bg-white shadow-md py-3 px-1.5">
83-
<div class="w-full">
83+
<div class="w-full flex flex-col h-full justify-around">
8484
<img src="<?= esc_url(get_template_directory_uri()); ?>/assets/images/10-years.png" class="w-3/4 mx-auto" />
85+
86+
<p class="text-xs text-center text-neutral-900 tracking-wide">Reliable & robust since 2012</p>
87+
8588
</div>
8689
<div class="border-l border-r border-neutral-100">
8790
<div class="flex flex-col items-center justify-center space-y-1.5">
@@ -116,7 +119,7 @@
116119
<svg width="30" height="30" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
117120
<path d="M40 32.5V55M40 55L30 45M40 55L50 45M22.5 65C18.9314 65.0039 15.4784 63.7354 12.7609 61.4223C10.0435 59.1092 8.2398 55.9031 7.67365 52.3797C7.1075 48.8564 7.81604 45.2466 9.67202 42.1986C11.528 39.1507 14.4098 36.8643 17.8 35.75C16.929 31.2872 17.8291 26.6607 20.3099 22.8501C22.7907 19.0394 26.6572 16.344 31.0907 15.3345C35.5242 14.325 40.1765 15.0808 44.0625 17.4417C47.9485 19.8027 50.763 23.5834 51.91 27.9833C53.6833 27.4066 55.5826 27.3372 57.3934 27.783C59.2041 28.2288 60.8541 29.172 62.157 30.5061C63.4599 31.8403 64.3638 33.5121 64.7667 35.3329C65.1695 37.1536 65.0552 39.0508 64.4366 40.81C67.1655 41.8523 69.4434 43.817 70.8752 46.3632C72.307 48.9093 72.8024 51.8764 72.2754 54.7496C71.7484 57.6228 70.2323 60.2209 67.9901 62.0932C65.7479 63.9655 62.9211 64.9939 60 65H22.5Z" stroke="#005DA4" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" />
118121
</svg>
119-
<p class="text-xl font-bold font-display">10,000+</p>
122+
<p class="text-xl font-bold font-display">468,000+</p>
120123
<span class="text-xs tracking-wide">Downloads</span>
121124
</div>
122125
</div>
@@ -131,8 +134,8 @@
131134
</a>
132135
</div>
133136

134-
<div class="col-span-6 col-start-4 text-center mt-20 relative">
135-
<img src="<?php echo get_template_directory_uri() . '/assets/images/arrows.png'; ?>" class="w-full max-w-3xl absolute inset-x-0 -top-24" />
137+
<div class="lg:col-span-6 col-span-full col-start-4 text-center mt-20 relative">
138+
<img src="<?php echo get_template_directory_uri() . '/assets/images/arrows.png'; ?>" class="w-full max-w-3xl absolute inset-x-0 -top-14 lg:-top-24" />
136139
<h2 class="lg:text-3xl text-xl font-display leading-none">
137140
Simple two-step process
138141
</h2>

0 commit comments

Comments
 (0)