-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
151 lines (135 loc) · 3.41 KB
/
style.css
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Portfolio</title>
<link rel="stylesheet" href="style.css">
<style type="text/css" id="dcoder_stylesheet">* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
}
header {
background: #0000ff;
color: #fff;
padding: 10px 0;
text-align: center;
}
header h1 {
margin: 0;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
padding: 0;
}
nav ul li {
margin: 0 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
section {
padding: 20px;
margin: 20px 0;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}
#about, #projects, #contact {
background-color: #f4f4f4;
padding: 20px;
border-radius: 10px;
}
.project {
margin: 15px 0;
}
footer {
background: #0000ff;
color: #fff;
text-align: center;
padding: 10px 0;
}
button {
background-color: #0000ff;
color: white;
border: none;
padding: 10px;
cursor: pointer;
}
button:hover {
background-color: #0000ff;
}
form {
display: flex;
flex-direction: column;
}
form label {
margin: 10px 0 5px;
}
form input, form textarea {
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}</style></head>
<body>
<header>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<section id="home" class="home-section">
<h1>Welcome to My Portfolio</h1>
<p>Hello! I'm Olofindayo Oladimeji Israel, a web developer.</p> <button><a href="#projects">See My Work</a></button>
</section>
<section id="about" class="about-section">
<h2>About Me</h2>
<p>I am a passionate web developer with a love for creating functional and beautiful websites. I have experience in HTML, CSS, JavaScript, and more!</p>
</section>
<section id="projects" class="projects-section">
<h2>My Projects</h2>
<div class="project-gallery">
<div class="project-card">
<h3>Project 1</h3>
<p>Short description of the project.</p>
</div>
<div class="project-card">
<h3>Project 2</h3>
<p>Short description of the project.</p>
</div>
<div class="project-card">
<h3>Project 3</h3>
<p>Short description of the project.</p>
</div>
</div>
</section>
<section id="contact" class="contact-section">
<h2>Contact Me</h2>
<form> <label for="name">Name:</label>
<input type="text" id="name" name="name" required> <label for="email">Email:</label>
<input type="email" id="email" name="email" required> <label for="message">Message:</label> <textarea id="message" name="message" required></textarea> <button type="submit">Send</button>
</form>
</section>
<footer>
<p>© 2024 Olofindayo Oladimeji Israel</p>
</footer>
<script src="script.js"></script>
<script type="text/javascript" id="dcoder_script">// simple form submission message
document.getElementByID("Contactform").addEventListener("submit",function(event)
{
event.preventDefault();
alert("Thank you for your message! I`ll reply soon");
});</script></body></html>