Skip to content

Commit

Permalink
Add navbar logo text
Browse files Browse the repository at this point in the history
  • Loading branch information
pathummadhusanka committed Jun 13, 2024
1 parent 2d963f3 commit c48f10b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
}

.spe-card-img {
height: 12rem;
height: 10rem;
}

.spe-card-title {
Expand Down
24 changes: 23 additions & 1 deletion partials/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ body {
outline: none;
box-sizing: border-box;
text-decoration: none;
font-weight: 200;
/* font-weight: 200; */
opacity: inherit;
}
/* CSS Reset >> */
Expand Down Expand Up @@ -108,10 +108,32 @@ body {
left: 0;
}

.nav-logo {
display: flex;
flex-direction: row;
gap: 0.4rem;
justify-content: center;
align-items: center;
}

.nav-logo a {
text-decoration: none;
}

.nav-logo img {
width: 3.4rem;
}

.logo-text {
font-size: 1.4rem;
color: var(--clr-dark-green);
font-weight: var(--fw-extra-bold);
}

.nav-logo .logo-text .contrast{
color: var(--clr-blue);
}

.top-nav {
display: flex;
flex-direction: row;
Expand Down
9 changes: 8 additions & 1 deletion partials/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ let innerNavWidth;

const navBarContent = `
<div class="nav-logo">
<a href="./index.html"><img src="./img/nav-logo.webp" alt="eDOC24 Logo"></a>
<a href="./index.html">
<img src="./img/nav-logo.webp" alt="eDOC24 Logo">
</a>
<a href="./index.html">
<div class="logo-text">
<span>e<span class="contrast">DOC</span>24</span>
</div>
</a>
</div>
<nav class="top-nav">
Expand Down

0 comments on commit c48f10b

Please sign in to comment.