AI Art Generator | Your Website
Powerful Features
Style Transfer
Apply artistic styles to your images automatically.
Text to Image
Generate images from text descriptions.
Custom Controls
Fine-tune every aspect of your generated art.
/* Base Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
color: #333;
line-height: 1.6;
}
/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 5%;
background-color: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo {
font-size: 24px;
font-weight: bold;
color: #6e45e2;
}
.nav-links a {
margin: 0 15px;
text-decoration: none;
color: #333;
}
.signup-btn {
background-color: #6e45e2;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
/* Hero Section */
.hero {
display: flex;
padding: 50px 5%;
align-items: center;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.hero-content {
flex: 1;
}
.hero-image {
flex: 1;
text-align: center;
}
.hero-image img {
max-width: 100%;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
h1 {
font-size: 48px;
margin-bottom: 20px;
color: #2a2a2a;
}
.cta-btn {
background-color: #6e45e2;
color: white;
border: none;
padding: 15px 30px;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
margin-top: 20px;
}
/* Features Section */
.features {
padding: 80px 5%;
text-align: center;
}
.features h2 {
font-size: 36px;
margin-bottom: 50px;
}
.feature-cards {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.card {
width: 30%;
min-width: 300px;
padding: 30px;
margin: 15px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.card:hover {
transform: translateY(-10px);
}
.card i {
font-size: 40px;
color: #6e45e2;
margin-bottom: 20px;
}
/* Gallery Section */
.gallery {
padding: 80px 5%;
background-color: #f9f9f9;
text-align: center;
}
.gallery h2 {
font-size: 36px;
margin-bottom: 50px;
}
.art-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
}
.art-item img {
width: 100%;
border-radius: 8px;
transition: transform 0.3s;
}
.art-item img:hover {
transform: scale(1.05);
}
/* Footer */
footer {
background-color: #2a2a2a;
color: white;
padding: 50px 5% 20px;
}
.footer-content {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
margin-bottom: 30px;
}
.footer-section {
width: 30%;
min-width: 250px;
margin-bottom: 30px;
}
.footer-section h4 {
font-size: 18px;
margin-bottom: 20px;
}
.footer-section a {
display: block;
color: #ccc;
margin-bottom: 10px;
text-decoration: none;
}
.copyright {
text-align: center;
padding-top: 20px;
border-top: 1px solid #444;
color: #aaa;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero {
flex-direction: column;
}
.nav-links {
display: none;
}
.card {
width: 100%;
}
}// Image generation functionality would go here
// This is just a basic placeholder
document.addEventListener('DOMContentLoaded', function() {
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Mock image generation (in a real app, this would call an API)
const generateBtn = document.querySelector('.cta-btn');
if(generateBtn) {
generateBtn.addEventListener('click', function() {
alert('In a real implementation, this would generate AI art!');
});
}
});
Comments
Post a Comment