Below is a simple HTML structure for a portfolio CV website that resembles a PowerPoint presentation, featuring a black background and white Times New Roman font.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portfolio CV</title>
<style>
body {
background-color: black;
color: white;
font-family: 'Times New Roman', Times, serif;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.slide {
width: 800px;
height: 600px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: 2px solid white;
margin: 20px 0;
opacity: 0;
animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
to {
opacity: 1;
}
}
h1, h2 {
margin: 0;
}
.navigation {
position: absolute;
top: 10px;
right: 10px;
}
</style>
</head>
<body>
<div class="navigation">
<button onclick="changeSlide(-1)">Previous</button>
<button onclick="changeSlide(1)">Next</button>
</div>
<div class="slide" id="slide1">
<h1>Your Name</h1>
<h2>Position Title</h2>
<p>Welcome to my portfolio CV.</p>
</div>
<div class="slide" id="slide2">
<h2>About Me</h2>
<p>Brief introduction about yourself.</p>
</div>
<div class="slide" id="slide3">
<h2>Skills</h2>
<p>List of your skills and expertise.</p>
</div>
<div class="slide" id="slide4">
<h2>Projects</h2>
<p>Details of projects you've worked on.</p>
</div>
<div class="slide" id="slide5">
<h2>Contact</h2>
<p>How to reach you.</p>
</div>
<script>
let currentSlide = 0;
const slides = document.querySelectorAll('.slide');
function showSlide(index) {
slides.forEach((slide, i) => {
slide.style.display = (i === index) ? 'flex' : 'none';
});
}
function changeSlide(direction) {
currentSlide += direction;
if (currentSlide < 0) currentSlide = slides.length - 1;
if (currentSlide >= slides.length) currentSlide = 0;
showSlide(currentSlide);
}
// Show the first slide
showSlide(currentSlide);
</script>
</body>
</html>
Instructions:
- Copy and paste the code into a text editor.
- Save the file with a
.html extension (e.g., portfolio.html).
- Open the file in a web browser.
Features:
- Black background
- White Times New Roman font
- Simple slide navigation with JavaScript
Feel free to modify the content as needed!