-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
83 lines (73 loc) · 3.92 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Saif Ali Official Website</title>
<meta name="description" content="Contact Page.">
<meta name="keywords" content="Saif Ali, Developer, Portfolio, Contact">
<meta name="author" content="Saif Ali">
<!-- Stylesheets -->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="assets/css/animate.css">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Sofia" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Sofia">
</noscript>
<!-- Scripts -->
<script src="assets/js/vanilla-tilt.js" defer></script>
<script src="assets/js/wow.min.js" defer></script>
<script src="assets/js/particles.min.js" defer></script>
</head>
<body>
<!-- Day and Night Switch Toggle -->
<div class="toggle-switch">
<input type="checkbox" id="theme-toggle" />
<label for="theme-toggle" class="toggle-label">
<span class="toggle-icon sun">☀️</span>
<span class="toggle-icon moon">🌙</span>
</label>
</div>
<!-- particles-js container -->
<div id="particles-js" class="container">
<div class="card wow fadeInUp" data-tilt>
<img src="assets/images/saifalisew1508.png" alt="Saif Ali" class="wow fadeInUp" data-wow-duration="0.4s" data-wow-delay="0.2s">
<h1 class="wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.6s">Saif Ali</h1>
<p class="wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.6s">Self Taught Developer.</p>
<div class="links wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.8s">
<a href="https://github.com/saifalisew1508"><img src="assets/images/Github.png" alt="GitHub"></a>
<a href="https://facebook.com/saifalisew1508"><img src="assets/images/facebook.png" alt="Facebook"></a>
<a href="https://twitter.com/saifalisew1508"><img src="assets/images/twitter.png" alt="Twitter"></a>
<a href="https://t.me/DearSaif"><img src="assets/images/telegram.png" alt="Telegram"></a>
<a href="https://instagram.com/saifaliopp"><img src="assets/images/Instagram.png" alt="Instagram"></a>
<a href="https://pinterest.com/saifalisew1508"><img src="assets/images/pinterest.png" alt="Pinterest"></a>
<a href="https://www.reddit.com/user/saifalisew1508"><img src="assets/images/reddit.png" alt="Reddit"></a>
<a href="http://discordapp.com/users/927678863864131584"><img src="assets/images/discord.png" alt="Discord"></a>
</div>
<a href="https://website-saifalisew1508.vercel.app/" class="btn wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0.8s">View Portfolio</a>
</div>
</div>
<!-- Scripts -->
<script>
new WOW().init();
// Function to load or remove particles.js configuration
function loadParticles() {
if (document.body.classList.contains('night-mode')) {
particlesJS.load('particles-js', 'assets/particlesjs-config.json', function () {
console.log('particles.js loaded - night mode');
});
} else {
document.getElementById('particles-js').innerHTML = ''; // Clear particles canvas
}
}
// Day and Night Toggle Script
document.getElementById('theme-toggle').addEventListener('change', function () {
document.body.classList.toggle('night-mode');
loadParticles();
});
// Initial load
loadParticles();
</script>
</body>
</html>