Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix header styling #111

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions src/app/components/bfs-page/bfs-page.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ body {
letter-spacing: 1px;
}

.div-new {
display: flex;
align-items: center;
gap: 0.5rem;
}

.div-new a {
color: #fff;
text-decoration: none;
Expand All @@ -45,7 +51,7 @@ body {

.profile-dropdown {
position: relative;
margin-right: 1.5rem;
margin-right: 0.5rem;
}

.profile-img {
Expand Down Expand Up @@ -144,13 +150,6 @@ body {
margin-top: 1.5rem;
}

.btn {
padding: 0.6rem 1.2rem;
border-radius: 4px;
font-weight: 500;
transition: all 0.3s;
}

button {
padding: 0.6rem 1.2rem;
border-radius: 4px;
Expand Down
23 changes: 10 additions & 13 deletions src/app/components/bfs-page/bfs-page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,17 @@
<div class="div-new">
<a [routerLink]="['/mainIndex']" class="btn">Home</a>
<a [routerLink]="['/dfsPage']" class="btn">DFS</a>
</div>

<!-- Profile Section with Dropdown -->
<div class="profile-dropdown">
<img src="https://as1.ftcdn.net/v2/jpg/07/77/92/08/1000_F_777920887_JNV7hglZmyROgiZjGb6x9DP4Qfu5gyg0.jpg"
alt="Profile" class="profile-img" onclick="toggleDropdown()">
<div id="dropdown-menu" class="dropdown-content">
<!-- <a href="#">My Profile</a>
<a href="#">Logout</a> -->
<!-- Profile Section with Dropdown -->
<div class="profile-dropdown">
<img src="https://as1.ftcdn.net/v2/jpg/07/77/92/08/1000_F_777920887_JNV7hglZmyROgiZjGb6x9DP4Qfu5gyg0.jpg"
alt="Profile" class="profile-img" onclick="toggleDropdown()">
<div id="dropdown-menu" class="dropdown-content">
<!-- <a href="#">My Profile</a>
<a href="#">Logout</a> -->
</div>
</div>
<button (click)="onLogout()" class="btn logout-btn">Logout</button>
</div>

<button (click)="onLogout()" class="btn logout-btn">Logout</button>

</div>
</div>

Expand Down Expand Up @@ -71,4 +68,4 @@ <h3>BFS Algorithm</h3>
<div id="processed-content"></div>
</div>
</div>
</div>
</div>
26 changes: 13 additions & 13 deletions src/app/components/dfs-page/dfs-page.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ body {
}

.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: #333;
color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1000;
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2rem;
background-color: #333;
color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1000;
}

.nav-left p {
Expand All @@ -33,7 +33,7 @@ body {
.div-new {
display: flex;
align-items: center;
gap: 1.5rem;
gap: 0.5rem;
}

.div-new a {
Expand Down
20 changes: 9 additions & 11 deletions src/app/components/dfs-page/dfs-page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@
</div>
<div style="display: flex;">
<div class="div-new">
<a [routerLink]="['/mainIndex']" class="btn">Home</a>
<a [routerLink]="['/bfsPage']" class="btn">BFS</a>
</div>
<a [routerLink]="['/mainIndex']" class="btn btn-dark me-3">Home</a>
<a [routerLink]="['/bfsPage']" class="btn btn-dark me-3">BFS</a>

<!-- Profile Section with Dropdown -->
<div class="profile-dropdown">
<img src="https://as1.ftcdn.net/v2/jpg/07/77/92/08/1000_F_777920887_JNV7hglZmyROgiZjGb6x9DP4Qfu5gyg0.jpg"
<!-- Profile Section with Dropdown -->
<div class="profile-dropdown">
<img src="https://as1.ftcdn.net/v2/jpg/07/77/92/08/1000_F_777920887_JNV7hglZmyROgiZjGb6x9DP4Qfu5gyg0.jpg"
alt="Profile" class="profile-img" onclick="toggleDropdown()">
<div id="dropdown-menu" class="dropdown-content">
<div id="dropdown-menu" class="dropdown-content">
<!-- <a href="#">My Profile</a>
<a href="#">Logout</a> -->
</div>
</div>
</div>

<button (click)="onLogout()" class="btn logout-btn">Logout</button>

</div>
</div>
</div>

Expand Down Expand Up @@ -76,4 +74,4 @@ <h3>DFS Algorithm</h3>
<div id="processed-content"></div>
</div>
</div>
</div>
</div>
17 changes: 1 addition & 16 deletions src/app/components/main-index/main-index.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ body {
top: 0;
left: 0;
width: 100%;
z-index: 1000;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
Expand Down Expand Up @@ -198,21 +198,6 @@ body {
padding-right: 0rem;
}

.btn {
text-decoration: none;
color: #fff;
padding: 0.5rem 1.5rem;
margin-top: 1rem;
background-color: #444;
border-radius: 5px;
display: inline-block;
transition: background-color 0.3s;
}

.btn:hover {
background-color: #555;
}

.d-flex .btn{
margin-top: 0;
}
Expand Down
10 changes: 9 additions & 1 deletion src/app/components/main-index/main-index.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
<div class="d-flex">
<a href="/dfsPage" class="btn btn-dark me-3">DFS</a>
<a href="/bfsPage" class="btn btn-dark me-3">BFS</a>

<!-- Profile Section with Dropdown -->
<div class="profile-dropdown">
<img src="https://as1.ftcdn.net/v2/jpg/07/77/92/08/1000_F_777920887_JNV7hglZmyROgiZjGb6x9DP4Qfu5gyg0.jpg"
alt="Profile" class="profile-img" onclick="toggleDropdown()">
<div id="dropdown-menu" class="dropdown-content">
<!-- <a href="#">My Profile</a>
<a href="#">Logout</a> -->
</div>
</div>
<button (click)="onLogout()" class="btn logout-btn">Logout</button>
</div>
</div>
Expand Down