Creating a fully functional, visually appealing anime-style portfolio website using only red, black, and white requires a thoughtful combination of HTML, CSS, and a bit of JavaScript. Below is a complete, self-contained example that you can use as a starting point. This example incorporates free resources and emphasizes creativity and out-of-the-box design.
Features of This Portfolio Website:
- Anime-Inspired Design: Uses bold and dynamic styles reminiscent of anime aesthetics.
- Color Scheme: Dominantly red, black, and white to maintain the desired theme.
- Responsive Layout: Ensures the website looks good on all devices.
- Interactive Elements: Includes smooth scrolling and hover effects for enhanced user experience.
- Free Resources: Utilizes free fonts and icons from reputable sources.
Complete Code:
You can create a single HTML file (index.html) and paste the following code into it. Ensure you have an internet connection to load the external resources properly.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Anime-Style Portfolio</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<!-- Font Awesome for Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrQkTyJ6OGuHWVX6F5eZjjHgI7lB/p5yVQZydKTAWfHEgQdeY4e3Ka7rEJhGiE+tx6mopejBZxk/BJUqFg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- CSS Styles -->
<style>
/* Reset & Basic Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
background-color: #000;
color: #fff;
overflow-x: hidden;
}
a {
text-decoration: none;
color: inherit;
}
/* Navigation */
.navbar {
position: fixed;
width: 100%;
background: rgba(0, 0, 0, 0.8);
padding: 20px 40px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
}
.navbar .logo {
font-family: 'Press Start 2P', cursive;
color: #e74c3c;
font-size: 1.2em;
}
.navbar ul {
list-style: none;
display: flex;
}
.navbar ul li {
margin-left: 20px;
}
.navbar ul li a {
color: #fff;
transition: color 0.3s;
}
.navbar ul li a:hover {
color: #e74c3c;
}
/* Hero Section */
.hero {
height: 100vh;
background: url('https://cdn.pixabay.com/photo/2017/07/31/14/07/anime-2559386_1280.png') center center / cover no-repeat;
position: relative;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.hero::after {
content: '';
position: absolute;
top:0;
left:0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
}
.hero-content {
position: relative;
z-index: 1;
}
.hero-content h1 {
font-family: 'Press Start 2P', cursive;
font-size: 2em;
color: #e74c3c;
margin-bottom: 20px;
}
.hero-content p {
font-size: 1.2em;
color: #fff;
max-width: 600px;
margin: 0 auto;
}
.hero-content a {
display: inline-block;
margin-top: 30px;
padding: 10px 20px;
border: 2px solid #e74c3c;
color: #e74c3c;
transition: all 0.3s;
}
.hero-content a:hover {
background: #e74c3c;
color: #000;
}
/* About Section */
.about {
padding: 80px 40px;
background-color: #111;
text-align: center;
}
.about h2 {
font-family: 'Press Start 2P', cursive;
color: #e74c3c;
margin-bottom: 20px;
}
.about p {
max-width: 800px;
margin: 0 auto;
line-height: 1.6;
color: #ccc;
}
/* Projects Section */
.projects {
padding: 80px 40px;
background-color: #000;
}
.projects h2 {
text-align: center;
font-family: 'Press Start 2P', cursive;
color: #e74c3c;
margin-bottom: 40px;
}
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.project-card {
background-color: #1e1e1e;
padding: 20px;
border: 2px solid #e74c3c;
transition: transform 0.3s, border-color 0.3s;
}
.project-card:hover {
transform: translateY(-10px);
border-color: #fff;
}
.project-card img {
max-width: 100%;
height: auto;
margin-bottom: 15px;
}
.project-card h3 {
color: #e74c3c;
margin-bottom: 10px;
}
.project-card p {
color: #ccc;
font-size: 0.9em;
}
/* Contact Section */
.contact {
padding: 80px 40px;
background-color: #111;
text-align: center;
}
.contact h2 {
font-family: 'Press Start 2P', cursive;
color: #e74c3c;
margin-bottom: 20px;
}
.contact form {
max-width: 600px;
margin: 0 auto;
}
.contact input,
.contact textarea {
width: 100%;
padding: 15px;
margin: 10px 0;
border: 2px solid #e74c3c;
background: #000;
color: #fff;
resize: none;
font-family: 'Roboto', sans-serif;
}
.contact button {
padding: 15px 30px;
border: none;
background: #e74c3c;
color: #fff;
cursor: pointer;
transition: background 0.3s;
font-size: 1em;
}
.contact button:hover {
background: #c0392b;
}
/* Footer */
.footer {
padding: 20px 40px;
background-color: #000;
text-align: center;
}
.footer p {
color: #fff;
margin-bottom: 10px;
}
.social-icons a {
margin: 0 10px;
color: #e74c3c;
font-size: 1.2em;
transition: color 0.3s;
}
.social-icons a:hover {
color: #fff;
}
/* Media Queries */
@media (max-width: 768px) {
.navbar {
padding: 15px 20px;
}
.navbar ul {
display: none;
}
.navbar .menu-toggle {
display: block;
cursor: pointer;
color: #fff;
}
.nav-active {
display: block;
position: absolute;
top: 60px;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.9);
}
.nav-active ul {
flex-direction: column;
align-items: center;
}
.nav-active ul li {
margin: 15px 0;
}
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="logo">Animefolio</div>
<ul class="nav-links">
<li><a href="#hero">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>
<div class="menu-toggle"><i class="fas fa-bars"></i></div>
</nav>
<!-- Hero Section -->
<section class="hero" id="hero">
<div class="hero-content">
<h1>Welcome to My Portfolio</h1>
<p>Discover my work and projects inspired by the vibrant world of anime.</p>
<a href="#projects">View Projects</a>
</div>
</section>
<!-- About Section -->
<section class="about" id="about">
<h2>About Me</h2>
<p>
I'm an aspiring developer and anime enthusiast with a passion for creating engaging and visually stunning web experiences. My work blends technical expertise with creative design, inspired by the dynamic and colorful aesthetics of anime.
</p>
</section>
<!-- Projects Section -->
<section class="projects" id="projects">
<h2>My Projects</h2>
<div class="project-grid">
<!-- Project 1 -->
<div class="project-card">
<img src="https://cdn.pixabay.com/photo/2017/07/31/14/07/anime-2559386_1280.png" alt="Project 1">
<h3>Anime Blog</h3>
<p>A blog platform dedicated to the latest news and reviews in the anime world.</p>
</div>
<!-- Project 2 -->
<div class="project-card">
<img src="https://cdn.pixabay.com/photo/2017/07/31/14/07/anime-2559386_1280.png" alt="Project 2">
<h3>Character Portfolio</h3>
<p>Showcase of original characters with detailed backgrounds and stories.</p>
</div>
<!-- Project 3 -->
<div class="project-card">
<img src="https://cdn.pixabay.com/photo/2017/07/31/14/07/anime-2559386_1280.png" alt="Project 3">
<h3>Fan Art Gallery</h3>
<p>A collection of fan-made artwork celebrating favorite anime series.</p>
</div>
<!-- Add more projects as needed -->
</div>
</section>
<!-- Contact Section -->
<section class="contact" id="contact">
<h2>Contact Me</h2>
<form action="#" method="POST">
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" rows="5" placeholder="Your Message" required></textarea>
<button type="submit">Send Message</button>
</form>
</section>
<!-- Footer -->
<footer class="footer">
<p>© 2023 Animefolio. All rights reserved.</p>
<div class="social-icons">
<a href="#" target="_blank"><i class="fab fa-twitter"></i></a>
<a href="#" target="_blank"><i class="fab fa-github"></i></a>
<a href="#" target="_blank"><i class="fab fa-linkedin"></i></a>
</div>
</footer>
<!-- JavaScript for Mobile Menu Toggle -->
<script>
const menuToggle = document.querySelector('.menu-toggle');
const navLinks = document.querySelector('.nav-links');
menuToggle.addEventListener('click', () => {
navLinks.classList.toggle('nav-active');
});
</script>
</body>
</html>
Explanation of the Code:
-
HTML Structure:
- Navigation (
<nav>): Fixed at the top with links to different sections. Includes a logo and a hamburger menu for mobile devices.
- Hero Section (
<section class="hero">): Full viewport height with a background image, overlay, and introductory text.
- About Section (
<section class="about">): Brief introduction about yourself.
- Projects Section (
<section class="projects">): Showcase of your projects with images and descriptions.
- Contact Section (
<section class="contact">): A contact form for visitors to reach out.
- Footer (
<footer>): Contains copyright information and social media links.
-
CSS Styling:
- Fonts: Utilizes "Press Start 2P" for headings to give a retro gaming/anime feel, and "Roboto" for body text.
- Color Scheme: Predominantly red (
#e74c3c), black (#000 or #111), and white (#fff/#ccc) to maintain the desired aesthetic.
- Responsive Design: Media queries handle the navigation menu on smaller screens, turning it into a hamburger menu.
- Hover Effects: Interactive elements change color or transform slightly on hover to enhance user engagement.
-
JavaScript Functionality:
- A simple script toggles the navigation links visibility when the hamburger menu is clicked on mobile devices.
-
Free Resources:
- Images: The hero and project sections use images from Pixabay which offers free-to-use images. You can replace the
src in the <img> tags with your preferred images.
- Icons: Uses Font Awesome for social media and menu icons.
- Fonts: Imported from Google Fonts, which are free to use.
Customization Tips:
-
Replace Images:
- Update the
src attribute in <img> tags with URLs from free image sources like Unsplash or Pixabay.
- Alternatively, host your own images and reference them locally.
-
Update Content:
- Modify the text in the Hero, About, Projects, and Contact sections to reflect your personal information and projects.
- Add or remove project cards based on the number of projects you want to showcase.
-
Enhance Functionality:
- Integrate a backend service or form handling service to make the contact form functional.
- Add animations or additional JavaScript for more interactive features.
-
Optimize for Performance:
- Compress images to ensure faster load times.
- Minify CSS and JavaScript if deploying to a production environment.
Deploying Your Website:
Once you've customized your portfolio, you can deploy it using various free hosting services such as:
- GitHub Pages: Great for hosting static websites.
- Netlify: Offers more features and is also free for basic usage.
- Vercel: Another excellent option for deploying static and serverless websites.
Feel free to expand upon this template to better fit your personal style and showcase your unique projects. Happy coding!