moon-tech / index.html
MoonieB1's picture
add animations to the cards so they gain transluscent opacity when i scroll to their section so the animation is visible
e281384 verified
Raw History Blame Contribute Delete
9.68 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Design Portfolio</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
body {
background-image: url('http://static.photos/abstract/1200x630/42');
background-size: cover;
background-position: center;
background-attachment: fixed;
}
.glass-card {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.18);
}
.project-card:hover {
transform: translateY(-10px);
transition: all 0.3s ease;
}
.nav-link::after {
content: '';
display: block;
width: 0;
height: 2px;
background: white;
transition: width 0.3s;
}
.nav-link:hover::after {
width: 100%;
}
</style>
</head>
<body class="min-h-screen text-white font-sans">
<!-- Navigation -->
<nav class="fixed w-full z-50 py-4 px-6 md:px-12 flex justify-between items-center">
<div class="text-2xl font-bold">Portfolio</div>
<div class="hidden md:flex space-x-8">
<a href="#home" class="nav-link">Home</a>
<a href="#about" class="nav-link">About</a>
<a href="#work" class="nav-link">Work</a>
<a href="#contact" class="nav-link">Contact</a>
</div>
<button class="md:hidden">
<i data-feather="menu"></i>
</button>
</nav>
<!-- Hero Section -->
<section id="home" class="min-h-screen flex items-center justify-center px-6 md:px-12" data-aos="fade-in">
<div class="glass-card p-8 md:p-12 max-w-4xl text-center">
<h1 class="text-4xl md:text-6xl font-bold mb-6">Digital Design Portfolio</h1>
<p class="text-lg md:text-xl mb-8">Creating immersive digital experiences through thoughtful design and innovative solutions.</p>
<button class="bg-white text-black px-8 py-3 rounded-full font-medium hover:bg-opacity-90 transition">View My Work</button>
</div>
</section>
<!-- About Section -->
<section id="about" class="py-20 px-6 md:px-12">
<div class="max-w-6xl mx-auto">
<h2 class="text-3xl md:text-4xl font-bold mb-12 text-center" data-aos="fade-up">About Me</h2>
<div class="grid md:grid-cols-2 gap-12 items-center">
<div class="glass-card p-8" data-aos="fade-right">
<h3 class="text-2xl font-bold mb-4">Design Philosophy</h3>
<p class="mb-4">I believe in creating designs that are not only visually stunning but also highly functional and user-centric.</p>
<p>Every project begins with understanding the user's needs and ends with a solution that exceeds expectations.</p>
</div>
<div class="glass-card p-8" data-aos="fade-left">
<h3 class="text-2xl font-bold mb-4">Skills & Expertise</h3>
<ul class="space-y-3">
<li class="flex items-center">
<i data-feather="check" class="mr-2"></i>
<span>UI/UX Design</span>
</li>
<li class="flex items-center">
<i data-feather="check" class="mr-2"></i>
<span>Web Development</span>
</li>
<li class="flex items-center">
<i data-feather="check" class="mr-2"></i>
<span>Responsive Design</span>
</li>
<li class="flex items-center">
<i data-feather="check" class="mr-2"></i>
<span>Brand Identity</span>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Work Section -->
<section id="work" class="py-20 px-6 md:px-12 bg-black bg-opacity-50">
<div class="max-w-6xl mx-auto">
<h2 class="text-3xl md:text-4xl font-bold mb-12 text-center" data-aos="fade-up">Featured Projects</h2>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Project 1 -->
<div class="project-card glass-card p-6 rounded-lg" data-aos="fade-up" data-aos-delay="100">
<img src="http://static.photos/technology/640x360/1" alt="Project 1" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">E-Commerce Platform</h3>
<p class="text-gray-300 mb-4">A modern e-commerce experience with intuitive navigation and seamless checkout.</p>
<a href="#" class="text-white font-medium hover:underline">View Case Study →</a>
</div>
<!-- Project 2 -->
<div class="project-card glass-card p-6 rounded-lg" data-aos="fade-up" data-aos-delay="200">
<img src="http://static.photos/technology/640x360/2" alt="Project 2" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">Mobile Banking App</h3>
<p class="text-gray-300 mb-4">Redesigned mobile banking experience with improved security and usability.</p>
<a href="#" class="text-white font-medium hover:underline">View Case Study →</a>
</div>
<!-- Project 3 -->
<div class="project-card glass-card p-6 rounded-lg" data-aos="fade-up" data-aos-delay="300">
<img src="http://static.photos/technology/640x360/3" alt="Project 3" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-xl font-bold mb-2">Travel Blog</h3>
<p class="text-gray-300 mb-4">Interactive travel blog with immersive photo galleries and location-based content.</p>
<a href="#" class="text-white font-medium hover:underline">View Case Study →</a>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-20 px-6 md:px-12">
<div class="max-w-4xl mx-auto glass-card p-8 md:p-12 rounded-lg" data-aos="fade-up">
<h2 class="text-3xl md:text-4xl font-bold mb-8 text-center">Let's Work Together</h2>
<form class="space-y-6">
<div>
<label for="name" class="block mb-2">Name</label>
<input type="text" id="name" class="w-full bg-white bg-opacity-20 border border-white border-opacity-30 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-white">
</div>
<div>
<label for="email" class="block mb-2">Email</label>
<input type="email" id="email" class="w-full bg-white bg-opacity-20 border border-white border-opacity-30 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-white">
</div>
<div>
<label for="message" class="block mb-2">Message</label>
<textarea id="message" rows="5" class="w-full bg-white bg-opacity-20 border border-white border-opacity-30 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-white"></textarea>
</div>
<button type="submit" class="w-full bg-white text-black px-6 py-3 rounded-lg font-medium hover:bg-opacity-90 transition">Send Message</button>
</form>
</div>
</section>
<!-- Footer -->
<footer class="py-8 px-6 md:px-12 text-center">
<div class="flex justify-center space-x-6 mb-6">
<a href="#" class="hover:text-gray-300 transition">
<i data-feather="instagram"></i>
</a>
<a href="#" class="hover:text-gray-300 transition">
<i data-feather="twitter"></i>
</a>
<a href="#" class="hover:text-gray-300 transition">
<i data-feather="linkedin"></i>
</a>
<a href="#" class="hover:text-gray-300 transition">
<i data-feather="github"></i>
</a>
</div>
<p>© 2023 Design Portfolio. All rights reserved.</p>
</footer>
<script>
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
feather.replace();
// Smooth scrolling for navigation links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Mobile menu toggle (would need additional JS for functionality)
</script>
</body>
</html>