A sample `index.html` page for a portfolio website designed to be sold on ThemeForest. This example includes a clean, modern design with sections for the hero image, portfolio items, about, and contact information.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A modern portfolio theme showcasing creative work">
<title>Portfolio Theme</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="container">
<a href="#" class="logo">MyPortfolio</a>
<ul class="nav-menu">
<li><a href="#home">Home</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<!-- Hero Section -->
<header id="home" class="hero-section">
<div class="container">
<h1>Welcome to MyPortfolio</h1>
<p>Showcasing the best of my creative work</p>
<a href="#portfolio" class="btn">View Portfolio</a>
</div>
</header>
<!-- Portfolio Section -->
<section id="portfolio" class="portfolio-section">
<div class="container">
<h2 class="section-title">My Work</h2>
<div class="portfolio-grid">
<div class="portfolio-item">
<img src="images/project1.jpg" alt="Project 1">
<div class="portfolio-overlay">
<h3>Project Title 1</h3>
<p>Category</p>
</div>
</div>
<div class="portfolio-item">
<img src="images/project2.jpg" alt="Project 2">
<div class="portfolio-overlay">
<h3>Project Title 2</h3>
<p>Category</p>
</div>
</div>
<div class="portfolio-item">
<img src="images/project3.jpg" alt="Project 3">
<div class="portfolio-overlay">
<h3>Project Title 3</h3>
<p>Category</p>
</div>
</div>
<div class="portfolio-item">
<img src="images/project4.jpg" alt="Project 4">
<div class="portfolio-overlay">
<h3>Project Title 4</h3>
<p>Category</p>
</div>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="about-section">
<div class="container">
<h2 class="section-title">About Me</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus vehicula convallis metus, nec hendrerit nisl ultricies a. Integer feugiat arcu in nibh fringilla, sit amet laoreet arcu tincidunt.</p>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="contact-section">
<div class="container">
<h2 class="section-title">Contact</h2>
<form class="contact-form">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
</div>
<button type="submit" class="btn">Send Message</button>
</form>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<p>© 2024 MyPortfolio. All rights reserved.</p>
<ul class="social-links">
<li><a href="#"><img src="images/icon-facebook.svg" alt="Facebook"></a></li>
<li><a href="#"><img src="images/icon-twitter.svg" alt="Twitter"></a></li>
<li><a href="#"><img src="images/icon-instagram.svg" alt="Instagram"></a></li>
<li><a href="#"><img src="images/icon-linkedin.svg" alt="LinkedIn"></a></li>
</ul>
</div>
</footer>
<!-- JavaScript -->
<script src="scripts.js"></script>
</body>
</html>
```
### CSS (styles.css)
```css
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
line-height: 1.6;
}
.container {
width: 90%;
margin: 0 auto;
}
/* Navbar Styles */
.navbar {
background: #333;
color: #fff;
padding: 1rem 0;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-menu {
list-style: none;
display: flex;
}
.nav-menu li {
margin-left: 2rem;
}
.nav-menu a {
color: #fff;
text-decoration: none;
font-weight: bold;
}
/* Hero Section Styles */
.hero-section {
background: url('images/hero-bg.jpg') no-repeat center center/cover;
color: #fff;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.hero-section h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero-section p {
font-size: 1.5rem;
margin-bottom: 2rem;
}
.btn {
padding: 1rem 2rem;
background: #ff6347;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
font-size: 1rem;
}
/* Portfolio Section Styles */
.portfolio-section {
padding: 4rem 0;
background: #f4f4f4;
}
.section-title {
text-align: center;
margin-bottom: 3rem;
font-size: 2rem;
}
.portfolio-grid {
display: flex;
flex-wrap: wrap;
gap: 2rem;
justify-content: center;
}
.portfolio-item {
position: relative;
overflow: hidden;
width: calc(25% - 1rem);
}
.portfolio-item img {
width: 100%;
display: block;
}
.portfolio-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
opacity: 1;
}
/* About Section Styles */
.about-section {
padding: 4rem 0;
background: #fff;
}
.about-section p {
max-width: 600px;
margin: 0 auto;
text-align: center;
}
/* Contact Section Styles */
.contact-section {
padding: 4rem 0;
background: #f4f4f4;
}
.contact-form {
max-width: 600px;
margin: 0 auto;
}
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 0.5rem;
border: 1px solid #ccc;
border-radius: 5px;
}
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
background: #ff6347;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
font-size: 1rem;
}
/* Footer Styles */
.footer {
background: #333;
color: #fff;
padding: 1rem 0;
text-align: center;
}
.footer p {
margin: 0;
}
.social-links {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
gap: 1rem;
}
.social-links li {
margin: 0;
}
.social-links a img {
width: 24px;
height: 24px;
}
```
### JavaScript (scripts.js)
```javascript
// Example script for adding interactive functionality if needed
document.addEventListener('DOMContentLoaded', ()
=> {
// Add any JavaScript functionality here
});
```
### Images
- Use high-quality images for the hero section and portfolio items. Replace the placeholders (`images/hero-bg.jpg`, `images/project1.jpg`, etc.) with your actual images.
- Make sure the images are optimized for web performance.
### Instructions
1. **Structure**: Ensure your HTML is well-structured and easy to navigate.
2. **CSS**: Keep your CSS modular and organized.
3. **JavaScript**: Add any interactive features as needed.
This basic template can be expanded with more features and refined based on your specific needs and preferences.