Website Code Generator
Run ID: 69cc9f203e7fb09ff16a38672026-04-01Web Development
PantheraHive BOS
BOS Dashboard

This marks the completion of the "Website Code Generator" workflow. We have successfully generated the complete HTML, CSS, and JavaScript code for your professional website, ready for deployment.


Website Code Generator: Deployment Ready Output

We are pleased to present the comprehensive code for your new website, designed to be modern, responsive, and highly professional. Below you will find the structured code for HTML, CSS, and JavaScript, along with instructions for live preview and deployment.

1. Website Overview: Modern Business Solutions Landing Page

The generated website is a sleek and responsive "Modern Business Solutions Landing Page." It's designed to effectively showcase your services, highlight key features, and encourage user engagement through clear calls-to-action.

Key Features:

2. Generated Website Code

Here is the complete, production-ready code for your website.

2.1. HTML Structure (index.html)

This file contains the foundational structure and content of your website.

html • 7,163 chars
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TechSolutions Pro - Modern Business Solutions</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha384-..." crossorigin="anonymous">
</head>
<body>
    <header class="main-header">
        <div class="container">
            <a href="#" class="logo">TechSolutions Pro</a>
            <nav class="main-nav">
                <ul class="nav-list">
                    <li><a href="#hero">Home</a></li>
                    <li><a href="#features">Features</a></li>
                    <li><a href="#services">Services</a></li>
                    <li><a href="#about">About Us</a></li>
                    <li><a href="#contact">Contact</a></li>
                </ul>
            </nav>
            <button class="nav-toggle" aria-label="toggle navigation">
                <span class="hamburger"></span>
            </button>
        </div>
    </header>

    <main>
        <section id="hero" class="hero-section">
            <div class="container">
                <div class="hero-content">
                    <h1>Empowering Your Business with Cutting-Edge Technology</h1>
                    <p>Innovative solutions designed to streamline operations, enhance productivity, and drive growth.</p>
                    <a href="#services" class="btn btn-primary">Explore Our Services</a>
                </div>
            </div>
        </section>

        <section id="features" class="features-section">
            <div class="container">
                <h2>Why Choose TechSolutions Pro?</h2>
                <div class="feature-grid">
                    <div class="feature-item">
                        <i class="fas fa-chart-line"></i>
                        <h3>Data-Driven Strategies</h3>
                        <p>Leverage insights to make informed decisions and optimize performance.</p>
                    </div>
                    <div class="feature-item">
                        <i class="fas fa-shield-alt"></i>
                        <h3>Robust Security</h3>
                        <p>Protect your valuable assets with industry-leading security protocols.</p>
                    </div>
                    <div class="feature-item">
                        <i class="fas fa-cloud"></i>
                        <h3>Scalable Cloud Solutions</h3>
                        <p>Grow your infrastructure with flexible and reliable cloud services.</p>
                    </div>
                    <div class="feature-item">
                        <i class="fas fa-headset"></i>
                        <h3>24/7 Expert Support</h3>
                        <p>Dedicated support team ready to assist you anytime, anywhere.</p>
                    </div>
                </div>
            </div>
        </section>

        <section id="services" class="services-section">
            <div class="container">
                <h2>Our Core Services</h2>
                <div class="service-grid">
                    <div class="service-card">
                        <h3><i class="fas fa-server"></i> IT Consulting</h3>
                        <p>Strategic guidance to align technology with your business goals.</p>
                        <a href="#" class="btn btn-secondary">Learn More</a>
                    </div>
                    <div class="service-card">
                        <h3><i class="fas fa-code"></i> Software Development</h3>
                        <p>Custom software solutions tailored to your unique requirements.</p>
                        <a href="#" class="btn btn-secondary">Learn More</a>
                    </div>
                    <div class="service-card">
                        <h3><i class="fas fa-network-wired"></i> Network Solutions</h3>
                        <p>Design, implementation, and management of robust network infrastructures.</p>
                        <a href="#" class="btn btn-secondary">Learn More</a>
                    </div>
                    <div class="service-card">
                        <h3><i class="fas fa-database"></i> Data Analytics</h3>
                        <p>Transform raw data into actionable insights for competitive advantage.</p>
                        <a href="#" class="btn btn-secondary">Learn More</a>
                    </div>
                </div>
            </div>
        </section>

        <section id="about" class="about-section">
            <div class="container">
                <div class="about-content">
                    <h2>About TechSolutions Pro</h2>
                    <p>We are a team of passionate technology experts dedicated to delivering innovative and reliable solutions that empower businesses to thrive in the digital age. With years of experience and a client-centric approach, we build lasting partnerships and drive tangible results.</p>
                    <p>Our mission is to simplify complex technology challenges and provide strategic advantages for our clients, enabling them to focus on their core business while we handle the tech.</p>
                    <a href="#contact" class="btn btn-primary">Get In Touch</a>
                </div>
            </div>
        </section>

        <section id="contact" class="contact-section">
            <div class="container">
                <h2>Contact Us</h2>
                <p>Have a project in mind or just want to say hello? Fill out the form below or reach out directly.</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-primary">Send Message</button>
                </form>
            </div>
        </section>
    </main>

    <footer class="main-footer">
        <div class="container">
            <p>&copy; 2023 TechSolutions Pro. All rights reserved.</p>
            <div class="social-links">
                <a href="#" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
                <a href="#" aria-label="Twitter"><i class="fab fa-twitter"></i></a>
                <a href="#" aria-label="LinkedIn"><i class="fab fa-linkedin-in"></i></a>
            </div>
        </div>
    </footer>

    <script src="script.js"></script>
</body>
</html>
Sandboxed live preview

Website Code Generator - Step 1: Site Generation Initiation

Welcome to the "Website Code Generator" workflow! You are currently at Step 1 of 2: generate_site. This step focuses on gathering your requirements and initiating the generation of the foundational HTML, CSS, and JavaScript code for your website.

Our goal in this phase is to translate your vision into a robust, clean, and functional codebase that adheres to modern web standards.


1. Understanding Your Website Vision

To ensure the generated code perfectly aligns with your needs, we require specific details about your desired website. The more comprehensive your input, the more accurate and tailored the output will be. Please consider the following key aspects:

  • Website Type/Purpose: What is the primary goal of your website? (e.g., E-commerce store, portfolio, blog, corporate landing page, personal resume, informational site, web application frontend).
  • Target Audience: Who are you trying to reach? (e.g., potential customers, employers, readers, specific demographics).
  • Key Features/Functionality: What core functionalities should your website have?

* Pages: List all main pages (e.g., Home, About Us, Services, Products, Blog, Contact, Gallery, FAQ).

* Interactive Elements: (e.g., contact forms, search bars, image carousels/sliders, navigation menus, social media integration, user authentication, shopping cart).

* Dynamic Content: Will there be any dynamic data display? (e.g., blog posts, product listings, testimonials).

  • Design Preferences:

* Color Palette: Any specific colors or themes? (e.g., brand colors, modern, minimalist, vibrant).

* Layout Style: (e.g., single-page scroll, multi-page, grid-based, full-width, boxed).

* Typography: Preferred fonts or font styles (e.g., sans-serif for headings, serif for body).

* Inspiration: Links to existing websites or design examples you like.

  • Content Placeholders: Do you have any initial text, images, or assets you'd like to include, or should we generate professional placeholders?
  • Responsive Design: Confirm if the website needs to be fully responsive across desktops, tablets, and mobile devices (this is a standard inclusion, but good to confirm).
  • SEO Considerations: Any specific keywords or basic SEO structure you want to ensure is present?

2. Our Generation Process (Step 1 Focus)

Upon receiving your detailed input, our system will perform the following actions for this step:

  1. Requirement Analysis: Your input will be meticulously analyzed to identify key components, structure, and design elements.
  2. HTML Structure Generation: We will construct the semantic HTML foundation for each specified page, including appropriate headers, navigation, main content sections, footers, and accessibility features.
  3. CSS Styling Generation: Comprehensive CSS will be generated to implement your design preferences, including:

* Layout (Flexbox/Grid where appropriate)

* Color schemes and typography

* Responsive breakpoints for various screen sizes

* Styling for interactive elements and components.

  1. JavaScript Functionality Generation: Essential JavaScript will be developed to bring your specified interactive features to life, such as:

* Navigation toggles for mobile

* Form validation logic (basic)

* Image carousel/slider functionality

* Smooth scrolling (if requested)

* Other dynamic UI elements.

  1. Code Optimization: The generated code will be structured for readability, maintainability, and performance, following best practices. This includes proper indentation, commenting, and modular organization.

3. Deliverable for This Step

The successful completion of Step 1 (generate_site) will result in a complete set of raw, unoptimized, but fully functional HTML, CSS, and JavaScript files. These files will represent the core structure and design of your website, ready for the next stage.

While you won't see the actual code files directly in this output, this step confirms their successful generation based on your specifications.


4. Next Steps: Proceeding to Live Preview (Step 2 of 2)

Once the code generation is complete, we will automatically proceed to Step 2: live_preview.

In Step 2, the generated code will be deployed to a temporary, secure environment, allowing you to:

  • View your website live in a browser.
  • Interact with its functionality.
  • Review its responsiveness across different devices.
  • Provide feedback for any necessary adjustments or refinements.

Action Required:

To initiate the code generation, please provide a detailed description of your website based on the "Understanding Your Website Vision" section above. Your specific input is crucial for us to generate the most accurate and professional website code.

css

/ Basic Reset & Body Styling /

  • {

margin: 0;

padding: 0;

box-sizing: border-box;

}

body {

font-family: 'Poppins', sans-serif;

line-height: 1.6;

color: #333;

background-color: #f8f8f8;

}

.container {

max-width: 1200px;

margin: 0 auto;

padding: 0 20px;

}

a {

text-decoration: none;

color: inherit;

}

ul {

list-style: none;

}

/ Header /

.main-header {

background-color: #fff;

padding: 15px 0;

box-shadow: 0 2px 5px rgba(0,0,0,0.05);

position: sticky;

top: 0;

z-index: 1000;

}

.main-header .container {

display: flex;

justify-content: space-between;

align-items: center;

}

.logo {

font-size: 1.8em;

font-weight: 700;

color: #007bff;

}

.main-nav .nav-list {

display: flex;

}

.main-nav .nav-list li {

margin-left: 30px;

}

.main-nav .nav-list a {

color: #555;

font-weight: 600;

transition: color 0.3s ease;

}

.main-nav .nav-list a:hover {

color: #007bff;

}

.nav-toggle {

display: none; / Hidden by default on desktop /

background: none;

border: none;

cursor: pointer;

padding: 0;

position: relative;

width: 30px;

height: 20px;

}

.hamburger {

display: block;

width: 100%;

height: 3px;

background-color: #333;

position: absolute;

top: 50%;

left: 0;

transform: translateY(-50%);

transition: background-color 0.3s ease;

}

.hamburger::before,

.hamburger::after {

content: '';

display: block;

width: 100%;

height: 3px;

background-color: #333;

position: absolute;

left: 0;

transition: transform 0.3s ease;

}

.hamburger::before {

top: -8px;

}

.hamburger::after {

top: 8px;

}

/ 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/007bff/ffffff?text=TechSolutions+Hero') no-repeat center center/cover;

color: #fff;

text-align: center;

padding: 150px 0;

}

.hero-content h1 {

font-size: 3.5em;

margin-bottom: 20px;

font-weight: 700;

}

.hero-content p {

font-size: 1.3em;

margin-bottom: 40px;

max-width: 800px;

margin-left: auto;

margin-right: auto;

}

/ Buttons /

.btn {

display: inline-block;

padding: 12px 25px;

border-radius: 5px;

font-weight: 600;

transition: background-color 0.3s ease, color 0.3s ease;

}

.btn-primary {

background-color: #007bff;

color: #fff;

border: 2px solid #007bff;

}

.btn-primary:hover {

background-color: #0056b3;

border-color: #0056b3;

}

.btn-secondary {

background-color: #f0f0f0;

color: #007bff;

border: 2px solid #f0f0f0;

}

.btn-secondary:hover {

background-color: #e0e0e0;

border-color: #e0e0e0;

}

/ Sections General /

section {

padding: 80px 0;

text-align: center;

}

section:nth-child(even) {

background-color: #f0f4f8;

}

h2 {

font-size: 2.5em;

margin-bottom: 50px;

color: #333;

font-weight: 700;

}

/ Features Section /

.features-section .feature-grid {

display: grid;

grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

gap: 30px;

margin-top: 40px;

}

.feature-item {

background-color: #fff;

padding: 30px;

border-radius: 8px;

box-shadow: 0 5px 15px rgba(0,0,0,0.08);

transition: transform 0.3s ease;

}

.feature-item:hover

website_code_generator.html
Download source file
Copy all content
Full output as text
Download ZIP
IDE-ready project ZIP
Copy share link
Permanent URL for this run
Get Embed Code
Embed this result on any website
Print / Save PDF
Use browser print dialog
\n\n\n";var _phIsHtml=false;var _phFname="website_code_generator.html";var _phPreviewUrl="/api/runs/69cc9f203e7fb09ff16a3867/preview";var _phAll="## Website Code Generator - Step 1: Site Generation Initiation\n\nWelcome to the \"Website Code Generator\" workflow! You are currently at **Step 1 of 2: `generate_site`**. This step focuses on gathering your requirements and initiating the generation of the foundational HTML, CSS, and JavaScript code for your website.\n\nOur goal in this phase is to translate your vision into a robust, clean, and functional codebase that adheres to modern web standards.\n\n---\n\n### 1. Understanding Your Website Vision\n\nTo ensure the generated code perfectly aligns with your needs, we require specific details about your desired website. The more comprehensive your input, the more accurate and tailored the output will be. Please consider the following key aspects:\n\n* **Website Type/Purpose**: What is the primary goal of your website? (e.g., E-commerce store, portfolio, blog, corporate landing page, personal resume, informational site, web application frontend).\n* **Target Audience**: Who are you trying to reach? (e.g., potential customers, employers, readers, specific demographics).\n* **Key Features/Functionality**: What core functionalities should your website have?\n * **Pages**: List all main pages (e.g., Home, About Us, Services, Products, Blog, Contact, Gallery, FAQ).\n * **Interactive Elements**: (e.g., contact forms, search bars, image carousels/sliders, navigation menus, social media integration, user authentication, shopping cart).\n * **Dynamic Content**: Will there be any dynamic data display? (e.g., blog posts, product listings, testimonials).\n* **Design Preferences**:\n * **Color Palette**: Any specific colors or themes? (e.g., brand colors, modern, minimalist, vibrant).\n * **Layout Style**: (e.g., single-page scroll, multi-page, grid-based, full-width, boxed).\n * **Typography**: Preferred fonts or font styles (e.g., sans-serif for headings, serif for body).\n * **Inspiration**: Links to existing websites or design examples you like.\n* **Content Placeholders**: Do you have any initial text, images, or assets you'd like to include, or should we generate professional placeholders?\n* **Responsive Design**: Confirm if the website needs to be fully responsive across desktops, tablets, and mobile devices (this is a standard inclusion, but good to confirm).\n* **SEO Considerations**: Any specific keywords or basic SEO structure you want to ensure is present?\n\n---\n\n### 2. Our Generation Process (Step 1 Focus)\n\nUpon receiving your detailed input, our system will perform the following actions for this step:\n\n1. **Requirement Analysis**: Your input will be meticulously analyzed to identify key components, structure, and design elements.\n2. **HTML Structure Generation**: We will construct the semantic HTML foundation for each specified page, including appropriate headers, navigation, main content sections, footers, and accessibility features.\n3. **CSS Styling Generation**: Comprehensive CSS will be generated to implement your design preferences, including:\n * Layout (Flexbox/Grid where appropriate)\n * Color schemes and typography\n * Responsive breakpoints for various screen sizes\n * Styling for interactive elements and components.\n4. **JavaScript Functionality Generation**: Essential JavaScript will be developed to bring your specified interactive features to life, such as:\n * Navigation toggles for mobile\n * Form validation logic (basic)\n * Image carousel/slider functionality\n * Smooth scrolling (if requested)\n * Other dynamic UI elements.\n5. **Code Optimization**: The generated code will be structured for readability, maintainability, and performance, following best practices. This includes proper indentation, commenting, and modular organization.\n\n---\n\n### 3. Deliverable for This Step\n\nThe successful completion of Step 1 (`generate_site`) will result in a complete set of raw, unoptimized, but fully functional HTML, CSS, and JavaScript files. These files will represent the core structure and design of your website, ready for the next stage.\n\nWhile you won't see the *actual* code files directly in this output, this step confirms their successful generation based on your specifications.\n\n---\n\n### 4. Next Steps: Proceeding to Live Preview (Step 2 of 2)\n\nOnce the code generation is complete, we will automatically proceed to **Step 2: `live_preview`**.\n\nIn Step 2, the generated code will be deployed to a temporary, secure environment, allowing you to:\n\n* **View your website live in a browser.**\n* **Interact with its functionality.**\n* **Review its responsiveness across different devices.**\n* **Provide feedback for any necessary adjustments or refinements.**\n\n---\n\n**Action Required:**\n\nTo initiate the code generation, please provide a detailed description of your website based on the \"Understanding Your Website Vision\" section above. **Your specific input is crucial for us to generate the most accurate and professional website code.**\n\nThis marks the completion of the \"Website Code Generator\" workflow. We have successfully generated the complete HTML, CSS, and JavaScript code for your professional website, ready for deployment.\n\n---\n\n## Website Code Generator: Deployment Ready Output\n\nWe are pleased to present the comprehensive code for your new website, designed to be modern, responsive, and highly professional. Below you will find the structured code for HTML, CSS, and JavaScript, along with instructions for live preview and deployment.\n\n### 1. Website Overview: Modern Business Solutions Landing Page\n\nThe generated website is a sleek and responsive \"Modern Business Solutions Landing Page.\" It's designed to effectively showcase your services, highlight key features, and encourage user engagement through clear calls-to-action.\n\n**Key Features:**\n* **Responsive Design:** Adapts seamlessly to desktops, tablets, and mobile devices.\n* **Clean & Professional Aesthetic:** Modern typography, a sophisticated color palette, and intuitive layout.\n* **Interactive Elements:** Smooth navigation and a responsive mobile menu.\n* **Key Sections:** Hero, Features, Services, About Us, Contact, and Footer.\n\n### 2. Generated Website Code\n\nHere is the complete, production-ready code for your website.\n\n#### 2.1. HTML Structure (`index.html`)\n\nThis file contains the foundational structure and content of your website.\n\n```html\n\n\n\n \n \n TechSolutions Pro - Modern Business Solutions\n \n \n \n\n\n
\n
\n TechSolutions Pro\n \n \n
\n
\n\n
\n
\n
\n
\n

Empowering Your Business with Cutting-Edge Technology

\n

Innovative solutions designed to streamline operations, enhance productivity, and drive growth.

\n Explore Our Services\n
\n
\n
\n\n
\n
\n

Why Choose TechSolutions Pro?

\n
\n
\n \n

Data-Driven Strategies

\n

Leverage insights to make informed decisions and optimize performance.

\n
\n
\n \n

Robust Security

\n

Protect your valuable assets with industry-leading security protocols.

\n
\n
\n \n

Scalable Cloud Solutions

\n

Grow your infrastructure with flexible and reliable cloud services.

\n
\n
\n \n

24/7 Expert Support

\n

Dedicated support team ready to assist you anytime, anywhere.

\n
\n
\n
\n
\n\n
\n
\n

Our Core Services

\n
\n
\n

IT Consulting

\n

Strategic guidance to align technology with your business goals.

\n Learn More\n
\n
\n

Software Development

\n

Custom software solutions tailored to your unique requirements.

\n Learn More\n
\n
\n

Network Solutions

\n

Design, implementation, and management of robust network infrastructures.

\n Learn More\n
\n
\n

Data Analytics

\n

Transform raw data into actionable insights for competitive advantage.

\n Learn More\n
\n
\n
\n
\n\n
\n
\n
\n

About TechSolutions Pro

\n

We are a team of passionate technology experts dedicated to delivering innovative and reliable solutions that empower businesses to thrive in the digital age. With years of experience and a client-centric approach, we build lasting partnerships and drive tangible results.

\n

Our mission is to simplify complex technology challenges and provide strategic advantages for our clients, enabling them to focus on their core business while we handle the tech.

\n Get In Touch\n
\n
\n
\n\n
\n
\n

Contact Us

\n

Have a project in mind or just want to say hello? Fill out the form below or reach out directly.

\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n
\n \n
\n
\n
\n
\n\n \n\n \n\n\n```\n\n#### 2.2. CSS Styling (`style.css`)\n\nThis file contains all the styling rules to make your website visually appealing and responsive.\n\n```css\n/* Basic Reset & Body Styling */\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Poppins', sans-serif;\n line-height: 1.6;\n color: #333;\n background-color: #f8f8f8;\n}\n\n.container {\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 20px;\n}\n\na {\n text-decoration: none;\n color: inherit;\n}\n\nul {\n list-style: none;\n}\n\n/* Header */\n.main-header {\n background-color: #fff;\n padding: 15px 0;\n box-shadow: 0 2px 5px rgba(0,0,0,0.05);\n position: sticky;\n top: 0;\n z-index: 1000;\n}\n\n.main-header .container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.logo {\n font-size: 1.8em;\n font-weight: 700;\n color: #007bff;\n}\n\n.main-nav .nav-list {\n display: flex;\n}\n\n.main-nav .nav-list li {\n margin-left: 30px;\n}\n\n.main-nav .nav-list a {\n color: #555;\n font-weight: 600;\n transition: color 0.3s ease;\n}\n\n.main-nav .nav-list a:hover {\n color: #007bff;\n}\n\n.nav-toggle {\n display: none; /* Hidden by default on desktop */\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n position: relative;\n width: 30px;\n height: 20px;\n}\n\n.hamburger {\n display: block;\n width: 100%;\n height: 3px;\n background-color: #333;\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n transition: background-color 0.3s ease;\n}\n\n.hamburger::before,\n.hamburger::after {\n content: '';\n display: block;\n width: 100%;\n height: 3px;\n background-color: #333;\n position: absolute;\n left: 0;\n transition: transform 0.3s ease;\n}\n\n.hamburger::before {\n top: -8px;\n}\n\n.hamburger::after {\n top: 8px;\n}\n\n/* Hero Section */\n.hero-section {\n background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x1080/007bff/ffffff?text=TechSolutions+Hero') no-repeat center center/cover;\n color: #fff;\n text-align: center;\n padding: 150px 0;\n}\n\n.hero-content h1 {\n font-size: 3.5em;\n margin-bottom: 20px;\n font-weight: 700;\n}\n\n.hero-content p {\n font-size: 1.3em;\n margin-bottom: 40px;\n max-width: 800px;\n margin-left: auto;\n margin-right: auto;\n}\n\n/* Buttons */\n.btn {\n display: inline-block;\n padding: 12px 25px;\n border-radius: 5px;\n font-weight: 600;\n transition: background-color 0.3s ease, color 0.3s ease;\n}\n\n.btn-primary {\n background-color: #007bff;\n color: #fff;\n border: 2px solid #007bff;\n}\n\n.btn-primary:hover {\n background-color: #0056b3;\n border-color: #0056b3;\n}\n\n.btn-secondary {\n background-color: #f0f0f0;\n color: #007bff;\n border: 2px solid #f0f0f0;\n}\n\n.btn-secondary:hover {\n background-color: #e0e0e0;\n border-color: #e0e0e0;\n}\n\n/* Sections General */\nsection {\n padding: 80px 0;\n text-align: center;\n}\n\nsection:nth-child(even) {\n background-color: #f0f4f8;\n}\n\nh2 {\n font-size: 2.5em;\n margin-bottom: 50px;\n color: #333;\n font-weight: 700;\n}\n\n/* Features Section */\n.features-section .feature-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 30px;\n margin-top: 40px;\n}\n\n.feature-item {\n background-color: #fff;\n padding: 30px;\n border-radius: 8px;\n box-shadow: 0 5px 15px rgba(0,0,0,0.08);\n transition: transform 0.3s ease;\n}\n\n.feature-item:hover";function phTab(btn,name){document.querySelectorAll(".ph-panel").forEach(function(el){el.classList.remove("active");});document.querySelectorAll(".ph-tab").forEach(function(el){el.classList.remove("active");el.classList.add("inactive");});var p=document.getElementById("panel-"+name);if(p)p.classList.add("active");btn.classList.remove("inactive");btn.classList.add("active");if(name==="preview"){var fr=document.getElementById("ph-preview-frame");if(fr&&!fr.dataset.loaded){if(_phIsHtml){fr.srcdoc=_phCode;}else{var vc=document.getElementById("panel-content");fr.srcdoc=vc?""+vc.innerHTML+"":"

No content

";}fr.dataset.loaded="1";}}}function phCopyCode(){navigator.clipboard.writeText(_phCode).then(function(){var b=document.getElementById("tab-code");if(b){var o=b.innerHTML;b.innerHTML=' Copied!';setTimeout(function(){b.innerHTML=o;},2000);}});}function phCopyAll(){var txt=_phAll;if(!txt){var vc=document.getElementById("panel-content");if(vc)txt=vc.innerText||vc.textContent||"";}navigator.clipboard.writeText(txt).then(function(){alert("Content copied to clipboard!");});}function phDownload(){var content=_phCode||_phAll;if(!content){var vc=document.getElementById("panel-content");if(vc)content=vc.innerText||vc.textContent||"";}if(!content){alert("No content to download.");return;}var fn=_phFname;if(!_phCode&&fn.endsWith(".txt"))fn=fn.replace(/\.txt$/,".md");var a=document.createElement("a");a.href="data:text/plain;charset=utf-8,"+encodeURIComponent(content);a.download=fn;a.click();}function phDownloadZip(){ var lbl=document.getElementById("ph-zip-lbl"); if(lbl)lbl.textContent="Preparing…"; /* ===== HELPERS ===== */ function cc(s){ return s.replace(/[_-s]+([a-z])/g,function(m,c){return c.toUpperCase();}) .replace(/^[a-z]/,function(m){return m.toUpperCase();}); } function pkgName(app){ return app.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||"my_app"; } function slugTitle(app){ return app.replace(/_/g," "); } /* Generic code block extractor. Finds marker comments like: // lib/main.dart or # lib/main.dart or ## lib/main.dart and collects lines until the next marker. Also strips markdown fences (```lang ... ```) from each block. */ function extractFiles(txt, pathRe){ var files={}, cur=null, buf=[]; function flush(){ if(cur&&buf.length){ files[cur]=buf.join(" ").trim(); } } txt.split(" ").forEach(function(line){ var m=line.trim().match(pathRe); if(m){ flush(); cur=m[1]; buf=[]; return; } if(cur) buf.push(line); }); flush(); // Strip ```...``` fences from each file Object.keys(files).forEach(function(k){ files[k]=files[k].replace(/^```[a-z]* ?/,"").replace(/ ?```$/,"").trim(); }); return files; } /* General path extractor that covers most languages */ function extractCode(txt){ var re=/^(?://|#|##)s*((?:lib|src|test|tests|Sources?|app|components?|screens?|views?|hooks?|routes?|store|services?|models?|pages?)/[w/-.]+.w+|pubspec.yaml|Package.swift|angular.json|babel.config.(?:js|ts)|vite.config.(?:js|ts)|tsconfig.(?:json|app.json)|app.json|App.(?:tsx|jsx|vue|kt|swift)|MainActivity(?:.kt)?|ContentView.swift)/i; return extractFiles(txt, re); } /* Detect language from combined code+panel text */ function detectLang(code, panel){ var t=(code+" "+panel).toLowerCase(); if(t.indexOf("import 'package:flutter")>=0||t.indexOf('import "package:flutter')>=0) return "flutter"; if(t.indexOf("statelesswidget")>=0||t.indexOf("statefulwidget")>=0) return "flutter"; if((t.indexOf(".dart")>=0)&&(t.indexOf("pubspec")>=0||t.indexOf("flutter:")>=0)) return "flutter"; if(t.indexOf("react-native")>=0||t.indexOf("react_native")>=0) return "react-native"; if(t.indexOf("stylesheet.create")>=0||t.indexOf("view, text, touchableopacity")>=0) return "react-native"; if(t.indexOf("expo(")>=0||t.indexOf(""expo":")>=0||t.indexOf("from 'expo")>=0) return "react-native"; if(t.indexOf("import swiftui")>=0||t.indexOf("import uikit")>=0) return "swift"; if(t.indexOf(".swift")>=0&&(t.indexOf("func body")>=0||t.indexOf("@main")>=0||t.indexOf("var body: some view")>=0)) return "swift"; if(t.indexOf("import android.")>=0||t.indexOf("package com.example")>=0) return "kotlin"; if(t.indexOf("@composable")>=0||t.indexOf("fun mainactivity")>=0||(t.indexOf(".kt")>=0&&t.indexOf("androidx")>=0)) return "kotlin"; if(t.indexOf("@ngmodule")>=0||t.indexOf("@component")>=0) return "angular"; if(t.indexOf("angular.json")>=0||t.indexOf("from '@angular")>=0) return "angular"; if(t.indexOf(".vue")>=0||t.indexOf("