-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
195 lines (173 loc) · 9.11 KB
/
index.html
File metadata and controls
195 lines (173 loc) · 9.11 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prabhat Ranjan Mohanta | Portfolio</title>
<!-- SEO Meta Tags -->
<meta name="description" content="Curated portfolio for Prabhat Ranjan Mohanta, a researcher and developer from Odisha.">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary-color: #2563eb;
--bg-color: #ffffff;
--text-color: #1f2937;
--card-bg: #f3f4f6;
--transition: all 0.3s ease;
}
[data-theme="dark"] {
--bg-color: #111827;
--text-color: #f9fafb;
--card-bg: #1f2937;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; transition: var(--transition); }
header { position: fixed; width: 100%; top: 0; background: var(--bg-color); z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--primary-color); }
.theme-toggle { cursor: pointer; font-size: 1.2rem; }
section { padding: 5rem 5% 2rem; max-width: 1200px; margin: 0 auto; }
.hero { text-align: center; padding: 8rem 5% 4rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.8; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { background: var(--card-bg); padding: 1.5rem; border-radius: 10px; transition: var(--transition); cursor: pointer; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); }
.project-details { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.1); }
.card.active .project-details { display: block; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.skill-tag { background: var(--primary-color); color: white; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; }
.timeline { position: relative; max-width: 800px; margin: 2rem auto; padding: 2rem 0; }
.timeline::before { content: ''; position: absolute; left: 50%; width: 2px; height: 100%; background: var(--primary-color); }
.timeline-item { margin-bottom: 2rem; position: relative; width: 50%; padding: 0 2rem; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
input, textarea, button { padding: 0.8rem; border-radius: 5px; border: 1px solid #ccc; background: var(--card-bg); color: var(--text-color); }
button { background: var(--primary-color); color: white; border: none; cursor: pointer; font-weight: bold; }
footer { text-align: center; padding: 2rem; margin-top: 4rem; border-top: 1px solid #ccc; }
@media (max-width: 768px) {
.nav-links { display: none; }
.timeline::before { left: 0; }
.timeline-item { width: 100%; left: 0 !important; text-align: left !important; }
}
</style>
</head>
<body>
<header>
<nav>
<div class="logo">PRM</div>
<ul class="nav-links">
<li><a href="#about">About</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#skills">Skills</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<div class="theme-toggle" id="theme-toggle">
<i class="fas fa-moon"></i>
</div>
</nav>
</header>
<section class="hero" id="about">
<h1>Prabhat Ranjan Mohanta</h1>
<p>Passionate researcher and developer from Sambalpur, Odisha.</p>
<div class="timeline">
<div class="timeline-item">
<h3>VSSUT Burla</h3>
<p>B.Tech in Electronics & Telecommunication</p>
</div>
<div class="timeline-item">
<h3>NIT Rourkela</h3>
<p>Research experience in AI & Web Technologies</p>
</div>
<div class="timeline-item">
<h3>IEEE Leadership</h3>
<p>Chair at IEEE VSSUT Student Branch</p>
</div>
</div>
</section>
<section id="projects">
<h2 style="text-align: center;">Selected Projects</h2>
<div class="grid">
<div class="card" onclick="this.classList.toggle('active')">
<h3>PhysicsSpace</h3>
<p>Interactive learning platform.</p>
<div class="project-details">
<p>Built with React and Node.js. High-impact educational content delivery.</p>
<a href="https://github.com/prabhatrm23git" target="_blank" style="color: var(--primary-color);">GitHub Link</a>
</div>
</div>
<div class="card" onclick="this.classList.toggle('active')">
<h3>Personal Portfolio</h3>
<p>Minimalistic curated site.</p>
<div class="project-details">
<p>HTML/CSS/Vanilla JS. SEO optimized and fast loading.</p>
<a href="https://github.com/prabhatrm23git/prabhatrm23git.github.io" target="_blank" style="color: var(--primary-color);">GitHub Link</a>
</div>
</div>
</div>
</section>
<section id="skills">
<h2 style="text-align: center; margin-bottom: 2rem;">Top Skills</h2>
<div class="skills-grid">
<div class="skill-tag"><i class="fab fa-js"></i> JavaScript</div>
<div class="skill-tag"><i class="fab fa-react"></i> React</div>
<div class="skill-tag"><i class="fab fa-python"></i> Python</div>
<div class="skill-tag"><i class="fas fa-code"></i> Web Dev</div>
<div class="skill-tag"><i class="fas fa-brain"></i> Machine Learning</div>
</div>
</section>
<section id="contact">
<h2 style="text-align: center; margin-bottom: 2rem;">Get In Touch</h2>
<form action="https://formspree.io/f/YOUR_FORM_ID" method="POST" id="contact-form">
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" rows="5" placeholder="Your Message" required></textarea>
<button type="submit">Send Message</button>
</form>
</section>
<footer>
<p>© 2026 Prabhat Ranjan Mohanta. Built from Sambalpur.</p>
<p>Follow me on <a href="https://x.com/arrogantPrabhat" target="_blank" style="color: var(--primary-color);">X (@arrogantPrabhat)</a></p>
</footer>
<script>
// Dark Mode Toggle
const themeToggle = document.getElementById('theme-toggle');
const body = document.body;
const icon = themeToggle.querySelector('i');
themeToggle.addEventListener('click', () => {
const isDark = body.getAttribute('data-theme') === 'dark';
body.setAttribute('data-theme', isDark ? 'light' : 'dark');
icon.className = isDark ? 'fas fa-moon' : 'fas fa-sun';
localStorage.setItem('theme', isDark ? 'light' : 'dark');
});
// Load saved theme
if (localStorage.getItem('theme') === 'dark') {
body.setAttribute('data-theme', 'dark');
icon.className = 'fas fa-sun';
}
// Smooth Scrolling
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Form Validation
const form = document.getElementById('contact-form');
form.addEventListener('submit', (e) => {
const email = form.email.value;
if (!email.includes('@')) {
alert('Please enter a valid email.');
e.preventDefault();
}
});
</script>
</body>
</html>