-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio.php
180 lines (161 loc) · 7.47 KB
/
portfolio.php
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
<?php
session_start();
if(isset($_POST['submit']) || isset($_POST['name']) || isset($_POST['email'])){
$name=htmlentities($_POST['name']);
$email=htmlentities($_POST['email']);
$to="[email protected]";
$subject="Website Feedback";
$headers="From: $email\n";
$feedback=htmlentities($_POST['feedback']);
$message="Name:$name\n Email Address:$email\n Message:$feedback";
$user="$email";
$usersubject="Thank You";
$userheaders="From:[email protected]\n";
$usermessage="Thank you for your valuable feedback.";
if (strlen($name) < 1) {
$_SESSION['error']="Name field is compulsory!!";
header('Location: portfolio.php#section3');
return;
}
elseif (strlen($email) < 1) {
$_SESSION['error']="E-mail field is compulsory!!";
header('Location: portfolio.php#section3');
return;
}
elseif (strlen($feedback) < 1) {
$_SESSION['error']="Feedback field is compulsory!!";
header('Location: portfolio.php#section3');
return;
}
elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$_SESSION['error'] = "Invalid email format";
header('Location: portfolio.php#section3');
return;
}
else{
mail('[email protected]',$subject,$message,$headers);
mail($user,$usersubject,$usermessage,$userheaders);
$_SESSION['success']="Thanks $name for your feedback :) We will work on your feedback and will update you soon!!";
header('Location: portfolio.php#section3');
return;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ajeet Kumar Jaiswal | Portfolio</title>
<link rel="stylesheet" type="text/css" href="portfolio.css">
<script src="index.js"></script>
<link rel="stylesheet" type="text/css" href="https://
stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
</head>
<body>
<nav>
<input type="checkbox" id="check" >
<label for="check" class="checkbtn">
<i class="fa fa-bars" aria-hidden="true"></i>
</label>
<label class="logo"><i class="fa fa-handshake-o" aria-hidden="true"></i> Welcome!</label>
<ul>
<li><a href="#" class="active"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<li><a class="scrollTo" href="#section1">About me</a></li>
<li><a class="scrollTo" href="#section2">Portfolio</a></li>
<li><a class="scrollTo" href="#section3">Contact</a></li>
<li><a class="scrollTo" href="#section3">Feedback</a></li>
</ul>
</nav>
<h2>Hi,I'm Ajeet Kumar Jaiswal</h2>
<article class="article">
<h2><a href="" style="text-decoration: none;color: inherit;"class="typewrite" data-period="2000" data-type='[ "HI, THIS IS AJEET KUMAR JAISWAL."]'><span class="wrap"></span></a></h2>
<h1><a href="" style="text-decoration: none;color: #e1c814;"class="typewrite" data-period="2000" data-type='[ "I AM A FULL STACK WEB DEVELOPER." ]'><span class="wrap"></span></a></h1>
<h3><a href="" style="text-decoration: none;"class="typewrite" data-period="2000" data-type='[ "WELCOME TO MY WEBSITE."]'><span class="wrap"></span></a></h3>
<h3 id="follow-on"><a class="scrollTo" href="#section1" style="text-decoration: none; color: #775656;">FOLLOW ON</a></h3>
<p id="arrow"><i class="fa fa-arrow-down" aria-hidden="true"></i></p>
</article>
<div class="wrapper">
<article class="img-info" id="section1">
<h2 id="test">About me</h2>
<a href="https://drive.google.com/file/d/1ia36Wog4iBv4agdrGvK2bSsjewT7_cNH/view"><div class="img"></div></a>
<article id="info" style="margin-top: 30px">
<p>Hi I am Ajeet . I am Second Year student at IIIT Jabalpur and currently studying Electronics and communication engineering here at IIIT Jabalpur.In past two years I learnt some good skills and tried to build some real time web applications.</p>
<p>I am also a full stack web developer and tried to build some cool stuffs like a login signup system and in continue of all this currently I am working building some more stuffs like this.</p>
<p>I am also a Machine learning enthusiast and learning new skills day by day,as well I am also enthusiastic in competitive programming and learning new data sturctures. </p>
</article>
</article>
<script type="text/javascript">
$(document).ready(function(){
$('#test').click(function(){
$('#info').slideToggle(1000);
});
})
</script>
<article class="portfolio-info" id="section2">
<h2>Portfolio | CV</h2>
<a href="https://drive.google.com/file/d/1FCxymHZFUHfhGjexmbZ6xHs8QkeKXd75/view"><div class="pdf"></div></a>
<p>Please click on the above image to download the Resume</p>
<p style="margin-top: 10px">Hey! Here with I have attached my Resume if you wants more info about me.You are free to vist my <a href="https://github.com/ajeet1308" style="color:wheat;text-decoration: none; font-size: 20px">LinkedIn</a> Profile.
</p>
</article>
<article class="contact-info" id="section3">
<h2>Contact</h2>
<p class="feed">Want to Connect! Please mail me at <address>
<a href="mailto:[email protected]" style="color:#46e512; text-decoration: none;"><i class="fa fa-envelope" aria-hidden="true"></i> [email protected]</a></p>
</address><br>
<h2>Feedback</h2>
<p class="feed">Hi viewers!,I would be pleased to hear your feedbacks.</p><br>
<form method="POST">
<input type="text" name="name" placeholder="Name" id="name"><br><br>
<input type="text" name="email" placeholder="E-mail" id="email"><br><br>
<input type="text" name="feedback" placeholder="Please write Your Feedback here" id="feedback"><br><br>
<input type="submit" name="submit" value="Submit" id="submit"><br><br>
</form>
<?php
if (isset($_SESSION['error'])) {
echo('<p style="color:#ff0a54;font-size:20px">'.htmlentities($_SESSION['error'])."</p>\n");
unset($_SESSION['error']);
}
if (isset($_SESSION['success'])) {
echo('<p style="color:#70e000;font-size:20px">'.htmlentities($_SESSION['success'])."</p>\n");
unset($_SESSION['success']);
}
?>
</article>
</div>
<footer class="footer">
<div class="inner-footer">
<div class="social-links">
<ul>
<li class="social-items"><a href="https://www.facebook.com/profile.php?id=100040654711182"><i class="fa fa-facebook-official" aria-hidden="true"></i></a></li>
<li class="social-items"><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<li class="social-items"><a href="https://github.com/ajeet1308"><i class="fa fa-github" aria-hidden="true"></i></a></li>
<li class="social-items"><a href="https://www.linkedin.com/in/ajeet-kumar-jaiswal-b60a541b1/"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="quick-links">
<ul>
<li class="quick-items"><a href="#">HOME</a></li>
<li class="quick-items" class="scrollTo"><a href="#section2">PORTFOLIO</a></li>
<li class="quick-items" class="scrollTo"><a href="#section1">ABOUT ME</a></li>
<li class="quick-items" class="scrollTo"><a href="#section3">CONTACT</a></li>
</ul>
</div>
</div>
<div class="outer-footer">
Copyright © Ajeet Kumar Jaiswal. All Rights Reserved
</div>
</footer>
</body>
</html>
<script type="text/javascript">
$(function(){
$(".scrollTo").on('click',function(){
$("html, body").animate({
scrollTop:$($.attr(this, 'href')).offset().top-79
}, 1000)
})
})
</script>