Skip to content

Commit ac392d8

Browse files
Merge pull request steam-bell-92#793 from Siddh2024/fix/hero-section-centering
Fix/hero section centering
2 parents aad0fe6 + 0319a20 commit ac392d8

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

web-app/css/styles.css

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ body.sidebar-active .hero-controls {
967967
display: flex;
968968
align-items: center;
969969
justify-content: center;
970-
line-height: 1;
970+
line-height: normal;
971971
flex-wrap: wrap;
972972
text-align: center;
973973
max-width: 100%;
@@ -4124,10 +4124,13 @@ html[data-theme="dark"] body {
41244124
}
41254125

41264126
.hero-section {
4127-
min-height: 0;
4128-
padding: 5rem 0 20px;
4127+
min-height: 100vh;
4128+
padding: 5rem 24px 80px;
41294129
background: transparent;
41304130
position: relative;
4131+
display: flex;
4132+
align-items: center;
4133+
justify-content: center;
41314134
}
41324135

41334136
#boardCanvas {
@@ -4184,8 +4187,12 @@ html[data-theme="dark"] body {
41844187
position: relative;
41854188
z-index: 2;
41864189
display: flex;
4190+
flex-direction: column;
4191+
align-items: center;
41874192
justify-content: center;
4188-
align-items: flex-start;
4193+
text-align: center;
4194+
max-width: 800px;
4195+
width: 100%;
41894196
margin: 0 auto;
41904197
padding: 0 1rem;
41914198
}
@@ -4528,6 +4535,10 @@ html[data-theme="dark"] body {
45284535
background: rgba(255, 255, 255, 0.08);
45294536
}
45304537

4538+
.hero-title-wrapper {
4539+
margin-bottom: 2rem;
4540+
}
4541+
45314542
.hero-title {
45324543
font-family: 'Fredoka', 'Segoe UI', sans-serif;
45334544
font-size: clamp(3rem, 7vw, 5.6rem);
@@ -4553,7 +4564,7 @@ html[data-theme="dark"] body {
45534564
-webkit-text-fill-color: transparent;
45544565
background-clip: text;
45554566
position: relative;
4556-
display: inline-block;
4567+
height: 105px;
45574568
}
45584569

45594570
[data-theme="dark"] .hero-title-accent {
@@ -4572,6 +4583,10 @@ html[data-theme="dark"] body {
45724583
letter-spacing: 0.01em;
45734584
}
45744585

4586+
.hero-cta-row {
4587+
margin-top: 37px;
4588+
}
4589+
45754590
.hero-typing {
45764591
display: inline-flex;
45774592
flex-wrap: wrap;

0 commit comments

Comments
 (0)