Skip to content

Commit

Permalink
blog design change
Browse files Browse the repository at this point in the history
  • Loading branch information
ksj14-kumar committed Oct 3, 2022
1 parent 152d9b4 commit 9f09333
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 272 deletions.
18 changes: 10 additions & 8 deletions blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<!--================Navbar====================-->
<nav>
<div id="mySidebar" class="sidebar">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()" ><img src="images/cross.png"
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()"><img src="images/cross.png"
style="height: 20px;"></a>
<ul>
<ul id="sidebar_link">
<li><a href="/">Home</li></a>
<li><a href="intro.html">My Intro</li></a>
<li><a href="services.html">Services</li></a>
Expand All @@ -32,8 +32,9 @@
</div>
<!--==================Main========================-->
<div class="main" id="main">
<button class="openbtn" class="openbtn" onclick="openNav()" ><img src="images/menu icon.png" style="height: 20px;" onmouseover="hoverE()"></button>
<div class="blogcontainer">
<button class="openbtn" class="openbtn" onclick="openNav()"><img src="images/menu icon.png"
style="height: 20px;" onmouseover="hoverE()"></button>
<div class="blogcontainer" id="is_blog_container">
<h1>Blogs by Shaikh Minhaj - Full Stack Developer</h1>
<div class="blogItem">
<h2>Learn HTML - in Fun Way</h2>
Expand All @@ -52,6 +53,7 @@ <h2>Learn CSS - in Fun Way</h2>
</div>

<div class="blogItem">

<h2>Learn JavaScript - in Fun Way</h2>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Possimus deleniti hic, unde at
quibusdam natus architecto consectetur voluptas rem, blanditiis id optio aspernatur cumque
Expand All @@ -60,7 +62,8 @@ <h2>Learn JavaScript - in Fun Way</h2>
</div>

<div class="blogItem">
<h2>Learn Core Java - in Fun Way</h2>

<h2>Learn JavaScript - in Fun Way</h2>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Possimus deleniti hic, unde at
quibusdam natus architecto consectetur voluptas rem, blanditiis id optio aspernatur cumque
voluptate alias tempore molestiae mollitia dicta?</p>
Expand All @@ -84,9 +87,8 @@ <h2>Learn Core Java - in Fun Way</h2>
<img src="images/btn-LB.png" alt="o" height="30px" onclick="myFunction()">
</div>
</div>

<script src="script.js"></script>
<script src="./script.js"></script>

</body>

</html>
</html>
12 changes: 12 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,15 @@ function toggleDarkMode() {
var element = document.body;
element.classList.toggle("dark-mode");
}

function openNav() {
document.getElementById("sidebar_link").style.opacity = "1"
document.getElementById("main").style.marginLeft = "250px"
document.getElementById("mySidebar").style.width = "250px"
}

function closeNav() {
document.getElementById("main").style.marginLeft = "0"
document.getElementById("mySidebar").style.width = "0"
document.getElementById("sidebar_link").style.opacity = "0"
}
Loading

0 comments on commit 9f09333

Please sign in to comment.