Skip to content

Commit

Permalink
Merge pull request #56 from Asymtode712/WebFeat
Browse files Browse the repository at this point in the history
Added navbar wih Blog button
  • Loading branch information
sanjay-kv authored Aug 4, 2024
2 parents a40d1ac + 6f697c7 commit 6d867b5
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 16 deletions.
Binary file added assets/recode-hive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 17 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,24 @@
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="toggle-switch">
<input type="checkbox" id="theme-toggle" />
<label for="theme-toggle">
<div class="switch-button">
<span class="material-icons sun-icon">wb_sunny</span>
<span class="material-icons moon-icon">brightness_2</span>
<nav class="navbar">
<div class="navbar-left">
<img src="assets/recode-hive.png" alt="Recode Hive Icon" class="navbar-icon">
<span class="navbar-text">Recode Hive</span>
</div>
<div class="navbar-right">
<a href="link-to-blog" class="navbar-link">Blog</a>
<div class="toggle-switch">
<input type="checkbox" id="theme-toggle">
<label for="theme-toggle">
<div class="switch-button">
<span class="material-icons sun-icon">wb_sunny</span>
<span class="material-icons moon-icon">brightness_2</span>
</div>
</label>
</div>
</label>
</div>
</div>
</nav>
<div class="container">
<h1 class="main-heading">Awesome GitHub Profile READMEs</h1>
<div class="tags">
Expand Down
71 changes: 63 additions & 8 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ body {
/* Switch Label */
.toggle-switch label {
position: relative;
top: 7px;
top: 0px;
left: 7px;
width: 55px; /* Adjust width to fit switch button and icons */
height: 30px; /* Adjust height if needed */
Expand Down Expand Up @@ -225,11 +225,66 @@ body {
body.dark-mode .toggle-label {
color: #f0f0f0;
}
@media (max-width:500px){
.toggle-switch{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}

.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-left {
display: flex;
align-items: center;
}

.navbar-icon {
width: 30px;
height: 30px;
margin-right: 10px;
}

.navbar-text {
font-size: 18px;
font-weight: bold;
}

.navbar-right {
display: flex;
align-items: center;
}

.navbar-link {
text-decoration: none;
color: #333;
font-size: 16px;
padding: 5px 10px;
border-radius: 5px;
transition: background-color 0.3s ease;
margin-right: 15px;
}

.navbar-link:hover {
background-color: #c5c5c5;
}

/* Adjust the existing toggle-switch styles to fit in the navbar */
.toggle-switch {
margin-left: 5px;
}

/* Dark mode adjustments */
body.dark-mode .navbar {
background-color: #333;
color: #f0f0f0;
}

body.dark-mode .navbar-link {
color: #f0f0f0;
}

body.dark-mode .navbar-link:hover {
background-color: #555;
}

0 comments on commit 6d867b5

Please sign in to comment.