-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate1.html
More file actions
210 lines (184 loc) · 4.7 KB
/
template1.html
File metadata and controls
210 lines (184 loc) · 4.7 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!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>
<style>
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Header */
header {
background-color: #333;
padding: 20px;
text-align: center;
}
header nav ul {
list-style: none;
padding: 0;
}
header nav ul li {
display: inline;
margin: 0 15px;
}
header nav ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
}
/* Hero Section */
.hero {
background: linear-gradient(to right, #6a11cb, #2575fc);
color: #fff;
padding: 100px 20px;
text-align: center;
}
/* Footer */
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px 0;
position: fixed;
width: 100%;
bottom: 0;
}
/* About Me Section */
.about {
padding: 80px 20px;
text-align: center;
background-color: #f4f4f4;
}
/* Portfolio Section */
.portfolio {
padding: 80px 20px;
background-color: #fff;
text-align: center;
}
.portfolio-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
.portfolio-item {
background-color: #f4f4f4;
padding: 20px;
border-radius: 8px;
width: 300px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.portfolio-item img {
width: 100%;
border-radius: 8px;
}
/* Contact Section */
.contact {
padding: 80px 20px;
background-color: #f4f4f4;
text-align: center;
}
.contact form {
max-width: 500px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 15px;
}
.contact input, .contact textarea {
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
width: 100%;
}
.contact button {
padding: 10px 20px;
background-color: #2575fc;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.contact button:hover {
background-color: #6a11cb;
}
</style>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About Me</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<main>
<!-- Hero Section -->
<section id="home" class="hero">
<h1>Welcome to My Portfolio</h1>
<p>I'm [Your Name], a passionate [Your Profession].</p>
</section>
<!-- About Me Section -->
<section id="about" class="about">
<h2>About Me</h2>
<p>[Add your biography, skills, education, and experience here.]</p>
</section>
<!-- Portfolio Section -->
<section id="portfolio" class="portfolio">
<h2>Portfolio</h2>
<div class="portfolio-grid">
<div class="portfolio-item">
<img src="images/imgex1.jpg" alt="Project 1">
<h3>Project Title 1</h3>
<p>Description of the project.</p>
</div>
<div class="portfolio-item">
<img src="images/imgex2.jpg" alt="Project 2">
<h3>Project Title 2</h3>
<p>Description of the project.</p>
</div>
<div class="portfolio-item">
<img src="images/imgex3.jpg" alt="Project 3">
<h3>Project Title 3</h3>
<p>Description of the project.</p>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="contact">
<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" rows="4" required></textarea>
<button type="submit">Send</button>
</form>
</section>
</main>
<footer>
<p>© 2024 My Portfolio. All rights reserved.</p>
</footer>
<script>
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
</script>
</body>
</html>