Skip to content

Commit 5daa18d

Browse files
committed
Updated whole site layout
added links, responsive styling etc.
1 parent 246897b commit 5daa18d

File tree

3 files changed

+331
-40
lines changed

3 files changed

+331
-40
lines changed

index.html

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,68 @@
99
</head>
1010
<body>
1111
<nav>
12+
<button>
13+
<i class="fas fa-moon"></i>
14+
</button>
1215
<a href="#home">
1316
<i class="fa fa-home"></i>
14-
<span>Home</span>
1517
</a>
1618
<a href="#projects">
1719
<i class="fa fa-laptop-code"></i>
18-
<span>Projects</span>
1920
</a>
2021
<a href="#about">
2122
<i class="fa fa-user"></i>
22-
<span>About</span>
2323
</a>
2424
<a href="#contact">
2525
<i class="fa fa-paper-plane"></i>
26-
<span>Contact</span>
2726
</a>
2827
</nav>
2928
<div id="screens">
3029
<div id="home">
3130
<h1>Hi, I'm Salman</h1>
31+
<p>And this is my site</p>
3232
</div>
3333
<div id="projects">
34-
This is Product page
34+
<div class="lang">
35+
Language: Python, PHP
36+
</div>
37+
<div class="framework">
38+
Frameworks: Django, Flask
39+
</div>
3540
</div>
3641
<div id="about">
37-
This is About page
42+
21 yrs old dev from India
3843
</div>
3944
<div id="contact">
4045
<a href="http://www.instagram.com/salman_not_khan">
4146
<i class="fa fa-instagram"></i>
47+
<div>Instagram</div>
4248
</a>
4349
<a href="http://www.twitter.com/salman_not_khan">
4450
<i class="fa fa-twitter"></i>
51+
<div>Twitter</div>
4552
</a>
4653
<a href="mailto:tony903212@gmail.com">
4754
<i class="fa fa-envelope"></i>
55+
<div>Mail</div>
4856
</a>
4957
<a href="http://t.me/salmannotkhan">
5058
<i class="fa fa-telegram"></i>
59+
<div>Telegram</div>
5160
</a>
5261
</div>
5362
</div>
5463
</body>
64+
<script>
65+
btn = document.querySelector('nav button')
66+
if (Date().split(' ')[4].split(':')[0] > 18) {
67+
document.querySelector('body').classList.toggle('dark')
68+
btn.innerHTML = this.innerHTML == 'Light' ? 'Dark' : 'Light'
69+
}
70+
btn.addEventListener('click', function(){
71+
document.querySelector('body').classList.toggle('dark')
72+
this.children[0].classList.toggle('fa-sun')
73+
this.children[0].classList.toggle('fa-moon')
74+
})
75+
</script>
5576
</html>

main.css

Lines changed: 173 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)