Skip to content

Commit 590517b

Browse files
Merge pull request #108 from parrth20/fix/startup-page-buttons
feat: Fix startup page button alignment and navigation
2 parents 55a6747 + a4fe9da commit 590517b

2 files changed

Lines changed: 20 additions & 21 deletions

File tree

index.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<h2 class="section-left-1-mainText"> Sending your luggages is easier than before🔥</h2>
1919
<h4 class="section-left-1-subText">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Volutpat eget ut tincidunt urna, nulla eget accumsan convallis diam. In urna lacus, netus tristique congue laoreet. Eu nullam enim dui tempus velit.</h4>
2020
</div>
21-
<div class="already">
22-
<p>Already user? <a href="./pages/login.php">Login</a></p>
23-
<button class="get-started-btn">Get Started</button>
21+
<div class="startup-actions">
22+
<a href="#"><button class="get-started-btn">Get Started</button></a>
23+
<p>Already user? <a href="./pages/login.php">Login</a></p>
24+
</div>
2425
</div>
25-
</div>
2626
<div class="section__right">
2727
<img src="./assets/img/young woman imagining things while reading e-book.svg" alt="young woman imagining things while reading e-book" width="100%">
2828
</div>

pages/startUp.css

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,25 @@
6262
line-height: 28px;
6363
margin-bottom: 24px;
6464
}
65+
/* You can replace the old .startup-actions block with this one */
6566

66-
.already p {
67-
font-family: var(--font);
68-
font-size: 16px;
69-
font-weight: 400;
70-
margin-top: 30px;
67+
.startup-actions {
68+
display: flex;
69+
flex-direction: row;
70+
align-items: center;
71+
gap: 25px;
72+
margin-top: 40px;
7173
}
7274

73-
.already a {
74-
color: var(--dark-blue);
75-
text-decoration: none;
76-
margin-top: 100px;
75+
.startup-actions p {
76+
margin: 0;
77+
font-family: var(--font);
78+
font-size: 16px;
79+
white-space: nowrap; /* This prevents the "Already user? Login" text from wrapping */
7780
}
78-
.already button {
79-
color: var(--dark-blue);
80-
font-family: var(--font);
81-
font-size: 16px;
82-
font-weight: 400;
83-
color: #fff;
81+
82+
.startup-actions a {
83+
text-decoration: none;
8484
}
8585

8686
.get-started-btn {
@@ -93,8 +93,7 @@
9393
font-weight: 500;
9494
border-radius: 10px;
9595
cursor: pointer;
96-
margin-left: 400px;
97-
margin-top: -500px;
96+
white-space: nowrap; /* This prevents the "Get Started" button text from wrapping */
9897
}
9998

10099
.get-started-btn:hover {

0 commit comments

Comments
 (0)