Skip to content

Commit 52b43f0

Browse files
author
Ajay kumar
committed
[Blog] [Ajay]: Fix responsiveness
1 parent 77b2d53 commit 52b43f0

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

TestArena/Blog/Common/Header.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<header class="article-header">
2323
<h1 class="fw-bold">@Title</h1>
24-
<img src="@Image" alt="Article Banner" height="200" width="auto" class="img-fluid rounded mx-auto d-block my-3 article-image">
24+
<img src="@Image" alt="Article Banner" height="200" width="auto" class="img-fluid rounded mx-auto d-block my-3">
2525
</header>
2626

2727
@* <div class="row"> *@

TestArena/Blog/Common/Section.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@
3232
break;
3333
}
3434
}
35+
<hr class="border border-success border-1 opacity-50">
3536
<div>@ChildContent</div>
3637
</section>

TestArena/Layout/MainLayout.razor

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@
77
<main>
88
<header class="bg-primary text-white p-3 d-flex align-items-center">
99
<div class="container-fluid">
10-
<div class="row">
11-
<div class="col-12 col-md-4">
12-
<div class="logo">
10+
<div class="container-fluid">
11+
<div class="row align-items-center">
12+
<!-- Logo on the left -->
13+
<div class="col-12 col-md-4 d-flex justify-content-md-start justify-content-center">
1314
<h3 class="m-0">Dev Arena</h3>
1415
</div>
15-
</div>
16-
<div class="col-12 col-md-4">
17-
<div class="search-bar text-center">
18-
<input type="text" class="form-control w-75 mx-auto" placeholder="Search...">
16+
17+
<!-- Search bar in the center -->
18+
<div class="col-12 col-md-4 d-flex justify-content-md-center justify-content-center mt-2 mt-md-0">
19+
<input type="text" class="form-control w-75" placeholder="Search...">
1920
</div>
20-
</div>
21-
<div class="col-12 col-md-4">
22-
<div class="settings d-flex justify-content-end">
21+
22+
<!-- Settings button on the right -->
23+
<div class="col-12 col-md-4 d-flex justify-content-md-end justify-content-center mt-2 mt-md-0">
2324
<button class="btn btn-light">Settings</button>
2425
</div>
2526
</div>

0 commit comments

Comments
 (0)