Your comprehensive website code has been successfully generated. This output provides all the necessary HTML, CSS, and JavaScript files to create a professional, responsive, and interactive website. Below, you will find the complete code for each file, along with instructions on how to use and preview your new site.
To ensure your website functions correctly, please organize the generated files into the following structure:
<!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="Professional website showcasing services, portfolio, and contact information.">
<meta name="keywords" content="web design, development, portfolio, services, contact">
<title>Your Professional Website</title>
<link rel="stylesheet" href="css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
</head>
<body>
<header class="main-header">
<div class="container">
<h1 class="logo"><a href="#">YourBrand</a></h1>
<nav class="main-nav">
<button class="nav-toggle" aria-label="toggle navigation">
<span class="hamburger"></span>
</button>
<ul class="nav-list">
<li><a href="#home" class="nav-link">Home</a></li>
<li><a href="#about" class="nav-link">About Us</a></li>
<li><a href="#services" class="nav-link">Services</a></li>
<li><a href="#portfolio" class="nav-link">Portfolio</a></li>
<li><a href="#contact" class="nav-link">Contact</a></li>
</ul>
</nav>
</div>
</header>
<main>
<section id="home" class="hero-section">
<div class="container">
<div class="hero-content">
<p class="hero-subtitle">Innovative Solutions for Your Business</p>
<h2 class="hero-title">Crafting Digital Experiences That Matter</h2>
<p class="hero-description">We specialize in creating bespoke websites that are not only visually stunning but also highly functional and user-friendly.</p>
<a href="#contact" class="btn btn-primary">Get a Free Quote</a>
<a href="#services" class="btn btn-secondary">Learn More</a>
</div>
</div>
</section>
<section id="about" class="about-section section-padding">
<div class="container">
<div class="section-header">
<h3 class="section-title">About Our Company</h3>
<p class="section-subtitle">Dedicated to excellence and client success.</p>
</div>
<div class="about-content">
<div class="about-text">
<p>Founded on the principles of creativity, quality, and client satisfaction, YourBrand has grown into a leading digital agency. We believe in building strong relationships with our clients, understanding their unique needs, and delivering solutions that exceed expectations.</p>
<p>Our team of experienced designers, developers, and strategists are passionate about what they do, constantly pushing the boundaries of technology and design to create impactful online presences.</p>
<a href="#contact" class="btn btn-tertiary">Join Our Team</a>
</div>
<div class="about-image">
<img src="https://via.placeholder.com/600x400?text=About+Us+Image" alt="Team working collaboratively">
</div>
</div>
</div>
</section>
<section id="services" class="services-section section-padding bg-light">
<div class="container">
<div class="section-header">
<h3 class="section-title">Our Core Services</h3>
<p class="section-subtitle">Delivering comprehensive digital solutions.</p>
</div>
<div class="services-grid">
<div class="service-item">
<img src="https://via.placeholder.com/60x60?text=Icon1" alt="Web Design Icon">
<h4>Web Design & Development</h4>
<p>From captivating designs to robust backend development, we build responsive and scalable websites.</p>
</div>
<div class="service-item">
<img src="https://via.placeholder.com/60x60?text=Icon2" alt="SEO Icon">
<h4>Search Engine Optimization (SEO)</h4>
<p>Improve your visibility and rank higher on search engines with our expert SEO strategies.</p>
</div>
<div class="service-item">
<img src="https://via.placeholder.com/60x60?text=Icon3" alt="Marketing Icon">
<h4>Digital Marketing</h4>
<p>Drive traffic and engage your audience through targeted social media and content marketing campaigns.</p>
</div>
<div class="service-item">
<img src="https://via.placeholder.com/60x60?text=Icon4" alt="Branding Icon">
<h4>Branding & Identity</h4>
<p>Craft a unique brand identity that resonates with your target audience and stands out.</p>
</div>
</div>
</div>
</section>
<section id="portfolio" class="portfolio-section section-padding">
<div class="container">
<div class="section-header">
<h3 class="section-title">Our Recent Work</h3>
<p class="section-subtitle">Showcasing excellence in every project.</p>
</div>
<div class="portfolio-grid">
<div class="portfolio-item">
<img src="https://via.placeholder.com/400x300?text=Project+1" alt="Portfolio Project 1">
<div class="portfolio-overlay">
<h4>Project Title One</h4>
<p>Web Design, Branding</p>
<a href="#" class="btn btn-view">View Project</a>
</div>
</div>
<div class="portfolio-item">
<img src="https://via.placeholder.com/400x300?text=Project+2" alt="Portfolio Project 2">
<div class="portfolio-overlay">
<h4>Project Title Two</h4>
<p>Development, SEO</p>
<a href="#" class="btn btn-view">View Project</a>
</div>
</div>
<div class="portfolio-item">
<img src="https://via.placeholder.com/400x300?text=Project+3" alt="Portfolio Project 3">
<div class="portfolio-overlay">
<h4>Project Title Three</h4>
<p>Marketing, Content</p>
<a href="#" class="btn btn-view">View Project</a>
</div>
</div>
</div>
</div>
</section>
<section id="contact" class="contact-section section-padding bg-dark">
<div class="container">
<div class="section-header">
<h3 class="section-title text-white">Get In Touch</h3>
<p class="section-subtitle text-white">We'd love to hear from you!</p>
</div>
<div class="contact-content">
<div class="contact-info">
<p><strong>Email:</strong> info@yourbrand.com</p>
<p><strong>Phone:</strong> +1 (123) 456-7890</p>
<p><strong>Address:</strong> 123 Business Rd, Suite 400, City, State 12345</p>
<div class="social-links">
<a href="#" target="_blank" aria-label="Facebook"><img src="https://via.placeholder.com/30x30?text=F" alt="Facebook"></a>
<a href="#" target="_blank" aria-label="Twitter"><img src="https://via.placeholder.com/30x30?text=T" alt="Twitter"></a>
<a href="#" target="_blank" aria-label="LinkedIn"><img src="https://via.placeholder.com/30x30?text=L" alt="LinkedIn"></a>
</div>
</div>
<form class="contact-form" id="contactForm">
<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="subject">Subject:</label>
<input type="text" id="subject" name="subject">
</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 btn-primary">Send Message</button>
<p id="form-status" class="form-status"></p>
</form>
</div>
</div>
</section>
</main>
<footer class="main-footer">
<div class="container">
<p>© 2023 YourBrand. All rights reserved.</p>
<ul class="footer-nav">
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms of Service</a></li>
</ul>
</div>
</footer>
<script src="js/script.js"></script>
</body>
</html>
css
/ General Reset & Base Styles /
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #007bff; / Blue /
--secondary-color: #6c757d; / Gray /
--tertiary-color: #28a745; / Green /
--dark-color: #343a40;
--light-color: #f8f9fa;
--white-color: #ffffff;
--text-color: #333;
--heading-color: #222;
--border-color: #dee2e6;
--font-primary: 'Montserrat', sans-serif;
--font-secondary: 'Open Sans', sans-serif;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-secondary);
line-height: 1.6;
color: var(--text-color);
background-color: var(--white-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
a {
color: var(--primary-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul {
list-style: none;
}
img {
max-width: 100%;
height: auto;
display: block;
}
/ Headings /
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-primary);
color: var(--heading-color);
margin-bottom: 0.5em;
line-height: 1.2;
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
/ Buttons /
.btn {
display: inline-block;
background: var(--primary-color);
color: var(--white-color);
padding: 12px 25px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
font-weight: 600;
text-align: center;
text-decoration: none;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover {
background-color: darken(var(--primary-color), 10%); / Placeholder for SCSS darken /
background-color: #0056b3; / Example darker blue /
transform: translateY(-2px);
text-decoration: none;
}
.btn-primary {
background-color: var(--primary-color);
}
.btn-secondary {
background-color: var(--secondary-color);
}
.btn-tertiary {
Congratulations! Your complete website code (HTML, CSS, JavaScript) has been successfully generated and is now ready for deployment. Below, you will find the comprehensive code, instructions for live preview, and various deployment options to get your website online.
This section contains the full, production-ready code for your website. It's structured into separate files for HTML, CSS, and JavaScript, following best practices for maintainability and performance.
index.html (Main Structure)This is the core HTML file that defines the structure and content of your website.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>[Your Company Name] - Professional Website</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Optional: Google Fonts or other external resources -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght=500;700&display=swap" rel="stylesheet">
</head>
<body>
<header class="main-header">
<div class="container">
<a href="#" class="logo">[Your Company Name]</a>
<nav class="main-nav">
<button class="nav-toggle" aria-label="Toggle navigation">
<span></span>
<span></span>
<span></span>
</button>
<ul class="nav-menu">
<li><a href="#home" class="active">Home</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</div>
</header>
<main>
<section id="home" class="hero-section">
<div class="container">
<h1>Welcome to [Your Company Name]</h1>
<p>Innovative Solutions for a Digital World.</p>
<a href="#services" class="btn btn-primary">Discover Our Services</a>
</div>
</section>
<section id="about" class="about-section section-padding">
<div class="container">
<h2>About Us</h2>
<div class="about-content">
<p>At [Your Company Name], we are dedicated to delivering exceptional quality and innovative solutions. With years of experience and a passion for excellence, we empower businesses to thrive in today's competitive landscape.</p>
<p>Our team of experts is committed to understanding your unique needs and providing tailored strategies that drive success and foster long-term growth. We believe in transparency, collaboration, and measurable results.</p>
</div>
</div>
</section>
<section id="services" class="services-section section-padding bg-light">
<div class="container">
<h2>Our Services</h2>
<div class="service-grid">
<div class="service-item">
<h3>Web Development</h3>
<p>Crafting responsive, high-performance websites tailored to your business goals.</p>
</div>
<div class="service-item">
<h3>Digital Marketing</h3>
<p>Boosting your online presence through SEO, social media, and content strategies.</p>
</div>
<div class="service-item">
<h3>UI/UX Design</h3>
<p>Creating intuitive and engaging user experiences that delight your customers.</p>
</div>
<div class="service-item">
<h3>Cloud Solutions</h3>
<p>Scalable and secure cloud infrastructure to support your evolving business needs.</p>
</div>
</div>
</div>
</section>
<section id="portfolio" class="portfolio-section section-padding">
<div class="container">
<h2>Our Portfolio</h2>
<p>Explore some of our recent projects that showcase our expertise and commitment to excellence.</p>
<div class="portfolio-grid">
<div class="portfolio-item">
<img src="https://via.placeholder.com/400x300/f0f0f0/333?text=Project+1" alt="Project 1">
<h3>Project Alpha</h3>
<p>A cutting-edge e-commerce platform.</p>
</div>
<div class="portfolio-item">
<img src="https://via.placeholder.com/400x300/f0f0f0/333?text=Project+2" alt="Project 2">
<h3>Project Beta</h3>
<p>Responsive corporate website redesign.</p>
</div>
<div class="portfolio-item">
<img src="https://via.placeholder.com/400x300/f0f0f0/333?text=Project+3" alt="Project 3">
<h3>Project Gamma</h3>
<p>Mobile application UI/UX overhaul.</p>
</div>
</div>
</div>
</section>
<section id="contact" class="contact-section section-padding bg-dark text-white">
<div class="container">
<h2>Contact Us</h2>
<p>Ready to start your next project? Get in touch with our team today!</p>
<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 btn-secondary">Send Message</button>
</form>
<div class="contact-info">
<p>Email: <a href="mailto:info@yourcompany.com">info@yourcompany.com</a></p>
<p>Phone: <a href="tel:+1234567890">+1 (234) 567-890</a></p>
<p>Address: 123 Business Rd, Suite 400, City, State, ZIP</p>
</div>
</div>
</section>
</main>
<footer class="main-footer">
<div class="container">
<p>© 2023 [Your Company Name]. All rights reserved.</p>
<div class="footer-links">
<a href="#">Privacy Policy</a>
<a href="#">Terms of Service</a>
</div>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>
style.css (Visual Styling)This CSS file provides the styling for your website, ensuring a clean, modern, and responsive design across various devices.
/* General Body & Typography */
:root {
--primary-color: #007bff; /* Blue */
--secondary-color: #6c757d; /* Grey */
--accent-color: #28a745; /* Green */
--dark-bg: #343a40; /* Dark Grey */
--light-bg: #f8f9fa; /* Light Grey */
--text-color: #333;
--white-color: #ffffff;
--font-primary: 'Roboto', sans-serif;
--font-secondary: 'Montserrat', sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--font-primary);
line-height: 1.6;
color: var(--text-color);
background-color: var(--white-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-secondary);
color: var(--dark-bg);
margin-bottom: 0.8em;
line-height: 1.2;
}
h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
p {
margin-bottom: 1em;
}
a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: var(--accent-color);
}
img {
max-width: 100%;
height: auto;
display: block;
}
/* Buttons */
.btn {
display: inline-block;
padding: 12px 25px;
border-radius: 5px;
font-weight: 700;
text-align: center;
transition: background-color 0.3s ease, color 0.3s ease;
cursor: pointer;
border: none;
}
.btn-primary {
background-color: var(--primary-color);
color: var(--white-color);
}
.btn-primary:hover {
background-color: darken(var(--primary-color), 10%); /* Placeholder for actual darken function */
background-color: #0056b3; /* Darker blue */
}
.btn-secondary {
background-color: var(--secondary-color);
color: var(--white-color);
}
.btn-secondary:hover {
background-color: darken(var(--secondary-color), 10%); /* Placeholder for actual darken function */
background-color: #545b62; /* Darker grey */
}
/* Header */
.main-header {
background-color: var(--white-color);
padding: 15px 0;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.main-header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-family: var(--font-secondary);
font-size: 1.8em;
font-weight: 700;
color: var(--dark-bg);
}
.main-nav .nav-menu {
list-style: none;
display: flex;
}
.main-nav .nav-menu li {
margin-left: 30px;
}
.main-nav .nav-menu a {
color: var(--text-color);
font-weight: 500;
padding: 5px 0;
position: relative;
}
.main-nav .nav-menu a.active,
.main-nav .nav-menu a:hover {
color: var(--primary-color);
}
.main-nav .nav-menu a::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 2px;
background-color: var(--primary-color);
transition: width 0.3s ease;
}
.main-nav .nav-menu a.active::after,
.main-nav .nav-menu a:hover::after {
width: 100%;
}
.nav-toggle {
display: none;
background: none;
border: none;
font-size: 1.5em;
cursor: pointer;
flex-direction: column;
justify-content: space-around;
width: 30px;
height: 25px;
padding: 0;
}
.nav-toggle span {
display: block;
width: 100%;
height: 3px;
background-color: var(--text-color);
transition: all 0.3s ease;
}
/* Hero Section */
.hero-section {
background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1920x1080/333/fff?text=Hero+Image') no-repeat center center/cover;
color: var(--white-color);
text-align: center;
padding: 100px 0;
min-height: 500px;
display: flex;
align-items: center;
justify-content: center;
}
.hero-section h1 {
color: var(--white-color);
font-size: 3.5em;
margin-bottom: 20px;
}
.hero-section p {
font-size: 1.3em;
margin-bottom: 30px;
}
/* Sections */
.section-padding {
padding: 80px 0;
}
.bg-light {
background-color: var(--light-bg);
}
.bg-dark {
background-color: var
\n