-
Notifications
You must be signed in to change notification settings - Fork 25
/
Nitin-Portfolio.html
87 lines (79 loc) · 2.89 KB
/
Nitin-Portfolio.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
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.fade{
width: 200px;
height: 200px;
color: blue;
animation-name: fadeIn;
transition: ease-out;
animation-duration: 4s;
animation-iteration-count: infinite;
border-radius: 50%;}
.profile-details {
display: flex;
margin-left: auto;
margin-right: auto;
gap: 2px;
}
.profile-content {
flex: 1;
background-color: #fff;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
margin-right: 300px;
margin-left: 300px;
}footer{
background-color:rgb(0,128,255 );
padding: 20px;text-align: center;
width: 100%;
}
.profile-image {
border-radius: 50%;
display: block;
width: 50%;
width: 200px;
height: 200px;
opacity: 0;
animation: fade-in 2s ease-in-out forwards;
}
@keyframes fadeIn {
0%{ opacity: 0;
}
100%{ opacity: 1;}
}
</style>
</head>
<body style="margin: 0%;"><div>
<header style="background-color:rgb(0, 128, 255);padding: 80px;text-align: center; font-size: xx-large;margin: 0px;">
<p ><b>Welcome To My Profile</b></p>
<button id="colorButton" on-click="changeHeaderColor()">Change Header Color</button>
</header><main>
<div class="profile-details">
<div class="profile-content">
<img src="C:\Users\Nitin bairwa\Downloads\WhatsApp Image 2023-06-08 at 11.32.52.jpg" class="fade">
<h2><b>Nitin Bairwa</b></h2>
<p>Web-Developer</p>
<h2><b>About Me</b></h2>
<p>Hi,I am Nitin.I'm passionate Web Web-Developer with a love for coding.With a Year of Experience.I've worked on a variety of projects,ranging from simple to complex.<br>Feel Free to Contact For Any Professional Work.</p>
<h2><b>Contact</b></h2>
<a href="[email protected]">[email protected]</a> <br>
<a href="7023368764">7023368764</a> </main> <footer>
©copyright Nitin Bairwa</footer></div>
<script>
const colorButton=document.getElementById("colorButton");
const header=document.querySelector("header");
const color=["#336699","#FF5733","#33CC99","#FF33CC"];
function changeHeaderColor() {
console.log("it is here");
const randomIndex = Math.floor(Math.random() * colors.length);
header.style.backgroundColor=colors[randomIndex];
}
</script>
</body>
</html>