mvbhr commited on
Commit
ffeb8d4
·
verified ·
1 Parent(s): e7fb8c0

criar a landing page de um serviço para criação de sites usando ia.

Browse files

na seção hero deve ter um campo textarea para o prompt e ele deve ser bem destacado e a fonte grande.

o nome da app será "AI Website Builder".

deverá afirmar que é o melhor app da atualidade reconhecido por grandes desenvolvedores.

diferenciais de fácil utilização, rápida aplicação e extremamente otimizado para usuários leigos.

a manutenção é toda usando AI.

o conteudo todo deve ser em ingles deve ter foco nos termos "AI Website Builder".

Files changed (6) hide show
  1. README.md +7 -4
  2. components/footer.js +170 -0
  3. components/navbar.js +127 -0
  4. index.html +180 -19
  5. script.js +59 -0
  6. style.css +44 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Ai Website Builder
3
- emoji: 👁
4
  colorFrom: yellow
5
- colorTo: indigo
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: AI Website Builder 🤖
 
3
  colorFrom: yellow
4
+ colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
components/footer.js ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: #1f2937;
8
+ color: white;
9
+ padding: 4rem 2rem 2rem;
10
+ margin-top: auto;
11
+ }
12
+ .footer-content {
13
+ max-width: 1200px;
14
+ margin: 0 auto;
15
+ display: grid;
16
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
17
+ gap: 2rem;
18
+ }
19
+ .footer-logo {
20
+ color: #10b981;
21
+ font-weight: 800;
22
+ font-size: 1.5rem;
23
+ margin-bottom: 1rem;
24
+ display: flex;
25
+ align-items: center;
26
+ gap: 0.5rem;
27
+ }
28
+ .footer-description {
29
+ color: #9ca3af;
30
+ margin-bottom: 1.5rem;
31
+ line-height: 1.6;
32
+ }
33
+ .social-links {
34
+ display: flex;
35
+ gap: 1rem;
36
+ }
37
+ .social-link {
38
+ width: 40px;
39
+ height: 40px;
40
+ border-radius: 50%;
41
+ background: #374151;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ transition: background 0.2s;
46
+ }
47
+ .social-link:hover {
48
+ background: #10b981;
49
+ }
50
+ .footer-heading {
51
+ color: white;
52
+ font-weight: 700;
53
+ font-size: 1.1rem;
54
+ margin-bottom: 1.5rem;
55
+ }
56
+ .footer-links {
57
+ list-style: none;
58
+ padding: 0;
59
+ margin: 0;
60
+ }
61
+ .footer-links li {
62
+ margin-bottom: 0.75rem;
63
+ }
64
+ .footer-links a {
65
+ color: #9ca3af;
66
+ text-decoration: none;
67
+ transition: color 0.2s;
68
+ }
69
+ .footer-links a:hover {
70
+ color: #10b981;
71
+ }
72
+ .copyright {
73
+ max-width: 1200px;
74
+ margin: 3rem auto 0;
75
+ padding-top: 2rem;
76
+ border-top: 1px solid #374151;
77
+ color: #9ca3af;
78
+ text-align: center;
79
+ font-size: 0.9rem;
80
+ }
81
+ @media (max-width: 768px) {
82
+ footer {
83
+ padding: 3rem 1rem 1.5rem;
84
+ }
85
+ .footer-content {
86
+ grid-template-columns: 1fr;
87
+ gap: 2rem;
88
+ }
89
+ }
90
+ </style>
91
+ <footer>
92
+ <div class="footer-content">
93
+ <div class="footer-column">
94
+ <div class="footer-logo">
95
+ <i data-feather="code"></i>
96
+ AI Website Builder
97
+ </div>
98
+ <p class="footer-description">
99
+ The most advanced AI-powered website creation platform. Build stunning websites in seconds with artificial intelligence.
100
+ </p>
101
+ <div class="social-links">
102
+ <a href="#" class="social-link">
103
+ <i data-feather="twitter" style="width: 18px; height: 18px;"></i>
104
+ </a>
105
+ <a href="#" class="social-link">
106
+ <i data-feather="facebook" style="width: 18px; height: 18px;"></i>
107
+ </a>
108
+ <a href="#" class="social-link">
109
+ <i data-feather="linkedin" style="width: 18px; height: 18px;"></i>
110
+ </a>
111
+ <a href="#" class="social-link">
112
+ <i data-feather="github" style="width: 18px; height: 18px;"></i>
113
+ </a>
114
+ </div>
115
+ </div>
116
+
117
+ <div class="footer-column">
118
+ <h3 class="footer-heading">Product</h3>
119
+ <ul class="footer-links">
120
+ <li><a href="#">Features</a></li>
121
+ <li><a href="#">Examples</a></li>
122
+ <li><a href="#">Templates</a></li>
123
+ <li><a href="#">Pricing</a></li>
124
+ <li><a href="#">Roadmap</a></li>
125
+ </ul>
126
+ </div>
127
+
128
+ <div class="footer-column">
129
+ <h3 class="footer-heading">Resources</h3>
130
+ <ul class="footer-links">
131
+ <li><a href="#">Documentation</a></li>
132
+ <li><a href="#">Tutorials</a></li>
133
+ <li><a href="#">Blog</a></li>
134
+ <li><a href="#">Community</a></li>
135
+ <li><a href="#">Support</a></li>
136
+ </ul>
137
+ </div>
138
+
139
+ <div class="footer-column">
140
+ <h3 class="footer-heading">Company</h3>
141
+ <ul class="footer-links">
142
+ <li><a href="#">About Us</a></li>
143
+ <li><a href="#">Careers</a></li>
144
+ <li><a href="#">Contact</a></li>
145
+ <li><a href="#">Privacy Policy</a></li>
146
+ <li><a href="#">Terms of Service</a></li>
147
+ </ul>
148
+ </div>
149
+ </div>
150
+
151
+ <div class="copyright">
152
+ &copy; 2023 AI Website Builder. All rights reserved. Built with artificial intelligence.
153
+ </div>
154
+ </footer>
155
+ `;
156
+
157
+ // Initialize feather icons after DOM content is added
158
+ setTimeout(() => {
159
+ const script = document.createElement('script');
160
+ script.src = 'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js';
161
+ script.onload = () => {
162
+ if (typeof feather !== 'undefined') {
163
+ feather.replace();
164
+ }
165
+ };
166
+ this.shadowRoot.appendChild(script);
167
+ }, 0);
168
+ }
169
+ }
170
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: white;
8
+ padding: 1.5rem 2rem;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ align-items: center;
12
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
13
+ position: sticky;
14
+ top: 0;
15
+ z-index: 100;
16
+ }
17
+ .logo {
18
+ color: #059669;
19
+ font-weight: 800;
20
+ font-size: 1.75rem;
21
+ font-family: 'Space Grotesk', sans-serif;
22
+ display: flex;
23
+ align-items: center;
24
+ gap: 0.5rem;
25
+ }
26
+ .logo-icon {
27
+ color: #f59e0b;
28
+ }
29
+ ul {
30
+ display: flex;
31
+ gap: 2rem;
32
+ list-style: none;
33
+ margin: 0;
34
+ padding: 0;
35
+ }
36
+ a {
37
+ color: #374151;
38
+ text-decoration: none;
39
+ font-weight: 600;
40
+ transition: color 0.2s;
41
+ position: relative;
42
+ }
43
+ a:hover {
44
+ color: #059669;
45
+ }
46
+ a:hover::after {
47
+ content: '';
48
+ position: absolute;
49
+ bottom: -5px;
50
+ left: 0;
51
+ width: 100%;
52
+ height: 2px;
53
+ background: #059669;
54
+ }
55
+ .auth-buttons {
56
+ display: flex;
57
+ gap: 1rem;
58
+ }
59
+ .login {
60
+ padding: 0.75rem 1.5rem;
61
+ border-radius: 0.75rem;
62
+ font-weight: 600;
63
+ transition: all 0.2s;
64
+ }
65
+ .login-outline {
66
+ border: 2px solid #059669;
67
+ color: #059669;
68
+ }
69
+ .login-solid {
70
+ background: #059669;
71
+ color: white;
72
+ }
73
+ .login-outline:hover {
74
+ background: #059669;
75
+ color: white;
76
+ }
77
+ .login-solid:hover {
78
+ background: #047857;
79
+ transform: translateY(-2px);
80
+ }
81
+ @media (max-width: 768px) {
82
+ nav {
83
+ flex-direction: column;
84
+ gap: 1rem;
85
+ padding: 1rem;
86
+ }
87
+ ul {
88
+ gap: 1rem;
89
+ }
90
+ .auth-buttons {
91
+ width: 100%;
92
+ justify-content: center;
93
+ }
94
+ }
95
+ </style>
96
+ <nav>
97
+ <div class="logo">
98
+ <i data-feather="code" class="logo-icon"></i>
99
+ AI Website Builder
100
+ </div>
101
+ <ul>
102
+ <li><a href="/">Home</a></li>
103
+ <li><a href="#">Features</a></li>
104
+ <li><a href="#">Examples</a></li>
105
+ <li><a href="#">Pricing</a></li>
106
+ </ul>
107
+ <div class="auth-buttons">
108
+ <a href="#" class="login login-outline">Log In</a>
109
+ <a href="#" class="login login-solid">Sign Up Free</a>
110
+ </div>
111
+ </nav>
112
+ `;
113
+
114
+ // Initialize feather icons after DOM content is added
115
+ setTimeout(() => {
116
+ const script = document.createElement('script');
117
+ script.src = 'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js';
118
+ script.onload = () => {
119
+ if (typeof feather !== 'undefined') {
120
+ feather.replace();
121
+ }
122
+ };
123
+ this.shadowRoot.appendChild(script);
124
+ }, 0);
125
+ }
126
+ }
127
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,180 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>AI Website Builder - Create Websites with AI</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
13
+ </head>
14
+ <body class="font-sans">
15
+ <custom-navbar></custom-navbar>
16
+
17
+ <!-- Hero Section -->
18
+ <section class="relative py-20 px-4 bg-gradient-to-br from-emerald-50 to-amber-50">
19
+ <div class="max-w-6xl mx-auto">
20
+ <div class="text-center mb-16">
21
+ <h1 class="text-5xl md:text-7xl font-bold mb-6 text-gray-900 font-space">
22
+ <span class="bg-clip-text text-transparent bg-gradient-to-r from-emerald-600 to-amber-500">
23
+ AI Website Builder
24
+ </span>
25
+ </h1>
26
+ <p class="text-xl md:text-2xl text-gray-700 max-w-3xl mx-auto mb-10">
27
+ The best AI-powered website creation platform recognized by top developers worldwide.
28
+ Create stunning websites in seconds with artificial intelligence.
29
+ </p>
30
+ </div>
31
+
32
+ <div class="bg-white rounded-2xl shadow-2xl p-8 max-w-4xl mx-auto border border-emerald-100">
33
+ <div class="mb-6">
34
+ <label for="prompt" class="block text-lg font-medium text-gray-800 mb-3">
35
+ Describe your website:
36
+ </label>
37
+ <textarea
38
+ id="prompt"
39
+ rows="4"
40
+ class="w-full px-6 py-5 text-lg border-2 border-emerald-200 rounded-xl focus:ring-4 focus:ring-emerald-100 focus:border-emerald-400 transition-all resize-none font-medium"
41
+ placeholder="Example: A modern portfolio website for a photographer with a dark theme, gallery section, and contact form...">
42
+ </textarea>
43
+ </div>
44
+
45
+ <div class="flex flex-col sm:flex-row gap-4 justify-center">
46
+ <button class="px-8 py-4 bg-gradient-to-r from-emerald-500 to-emerald-600 text-white font-bold rounded-xl hover:from-emerald-600 hover:to-emerald-700 transition-all transform hover:scale-105 shadow-lg hover:shadow-xl flex items-center justify-center gap-2">
47
+ <i data-feather="zap"></i>
48
+ Generate Website
49
+ </button>
50
+ <button class="px-8 py-4 bg-gradient-to-r from-amber-500 to-amber-600 text-white font-bold rounded-xl hover:from-amber-600 hover:to-amber-700 transition-all transform hover:scale-105 shadow-lg hover:shadow-xl flex items-center justify-center gap-2">
51
+ <i data-feather="eye"></i>
52
+ View Examples
53
+ </button>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </section>
58
+
59
+ <!-- Features Section -->
60
+ <section class="py-20 px-4 bg-white">
61
+ <div class="max-w-6xl mx-auto">
62
+ <div class="text-center mb-16">
63
+ <h2 class="text-4xl md:text-5xl font-bold text-gray-900 mb-6 font-space">
64
+ Why Choose <span class="text-emerald-600">AI Website Builder</span>?
65
+ </h2>
66
+ <p class="text-xl text-gray-600 max-w-3xl mx-auto">
67
+ The most advanced AI website creation platform designed for everyone - from beginners to professionals.
68
+ </p>
69
+ </div>
70
+
71
+ <div class="grid md:grid-cols-3 gap-10">
72
+ <div class="bg-gradient-to-br from-emerald-50 to-white p-8 rounded-2xl border border-emerald-100 shadow-lg hover:shadow-xl transition-all">
73
+ <div class="w-16 h-16 bg-emerald-100 rounded-full flex items-center justify-center mb-6">
74
+ <i data-feather="user" class="text-emerald-600 w-8 h-8"></i>
75
+ </div>
76
+ <h3 class="text-2xl font-bold text-gray-900 mb-4">User-Friendly</h3>
77
+ <p class="text-gray-600 text-lg">
78
+ Extremely optimized for non-technical users. Create professional websites without any coding knowledge.
79
+ </p>
80
+ </div>
81
+
82
+ <div class="bg-gradient-to-br from-amber-50 to-white p-8 rounded-2xl border border-amber-100 shadow-lg hover:shadow-xl transition-all">
83
+ <div class="w-16 h-16 bg-amber-100 rounded-full flex items-center justify-center mb-6">
84
+ <i data-feather="zap" class="text-amber-600 w-8 h-8"></i>
85
+ </div>
86
+ <h3 class="text-2xl font-bold text-gray-900 mb-4">Lightning Fast</h3>
87
+ <p class="text-gray-600 text-lg">
88
+ Generate complete websites in seconds. No more waiting for developers or complex design processes.
89
+ </p>
90
+ </div>
91
+
92
+ <div class="bg-gradient-to-br from-emerald-50 to-white p-8 rounded-2xl border border-emerald-100 shadow-lg hover:shadow-xl transition-all">
93
+ <div class="w-16 h-16 bg-emerald-100 rounded-full flex items-center justify-center mb-6">
94
+ <i data-feather="cpu" class="text-emerald-600 w-8 h-8"></i>
95
+ </div>
96
+ <h3 class="text-2xl font-bold text-gray-900 mb-4">AI-Powered Maintenance</h3>
97
+ <p class="text-gray-600 text-lg">
98
+ All maintenance is handled by AI. Updates, security, and optimizations happen automatically.
99
+ </p>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </section>
104
+
105
+ <!-- Testimonials Section -->
106
+ <section class="py-20 px-4 bg-gradient-to-br from-emerald-50 to-amber-50">
107
+ <div class="max-w-6xl mx-auto">
108
+ <div class="text-center mb-16">
109
+ <h2 class="text-4xl md:text-5xl font-bold text-gray-900 mb-6 font-space">
110
+ Trusted by Industry Experts
111
+ </h2>
112
+ <p class="text-xl text-gray-600 max-w-3xl mx-auto">
113
+ Recognized as the best AI website builder by leading developers and designers worldwide.
114
+ </p>
115
+ </div>
116
+
117
+ <div class="grid md:grid-cols-2 gap-8 max-w-4xl mx-auto">
118
+ <div class="bg-white p-8 rounded-2xl shadow-lg border border-emerald-100">
119
+ <div class="flex items-center mb-6">
120
+ <div class="w-12 h-12 bg-emerald-100 rounded-full flex items-center justify-center mr-4">
121
+ <i data-feather="star" class="text-emerald-600"></i>
122
+ </div>
123
+ <div>
124
+ <h4 class="font-bold text-lg">Sarah Johnson</h4>
125
+ <p class="text-emerald-600">Senior Developer at TechCorp</p>
126
+ </div>
127
+ </div>
128
+ <p class="text-gray-700 text-lg italic">
129
+ "The AI Website Builder is revolutionary. It's the best platform I've seen for rapid website creation with AI technology."
130
+ </p>
131
+ </div>
132
+
133
+ <div class="bg-white p-8 rounded-2xl shadow-lg border border-amber-100">
134
+ <div class="flex items-center mb-6">
135
+ <div class="w-12 h-12 bg-amber-100 rounded-full flex items-center justify-center mr-4">
136
+ <i data-feather="star" class="text-amber-600"></i>
137
+ </div>
138
+ <div>
139
+ <h4 class="font-bold text-lg">Michael Chen</h4>
140
+ <p class="text-amber-600">Lead Designer at CreativeStudio</p>
141
+ </div>
142
+ </div>
143
+ <p class="text-gray-700 text-lg italic">
144
+ "As a designer, I'm impressed by how this AI tool maintains design quality while being so accessible to beginners."
145
+ </p>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </section>
150
+
151
+ <!-- CTA Section -->
152
+ <section class="py-20 px-4 bg-gradient-to-r from-emerald-600 to-emerald-700">
153
+ <div class="max-w-4xl mx-auto text-center">
154
+ <h2 class="text-4xl md:text-5xl font-bold text-white mb-6 font-space">
155
+ Ready to Create with AI?
156
+ </h2>
157
+ <p class="text-xl text-emerald-100 mb-10 max-w-2xl mx-auto">
158
+ Join thousands of users who are already building amazing websites with artificial intelligence.
159
+ </p>
160
+ <div class="flex flex-col sm:flex-row gap-4 justify-center">
161
+ <button class="px-8 py-4 bg-white text-emerald-700 font-bold rounded-xl hover:bg-emerald-50 transition-all transform hover:scale-105 shadow-lg hover:shadow-xl flex items-center justify-center gap-2">
162
+ <i data-feather="rocket"></i>
163
+ Get Started Free
164
+ </button>
165
+ <button class="px-8 py-4 bg-transparent border-2 border-white text-white font-bold rounded-xl hover:bg-white hover:text-emerald-700 transition-all flex items-center justify-center gap-2">
166
+ <i data-feather="play-circle"></i>
167
+ Watch Demo
168
+ </button>
169
+ </div>
170
+ </div>
171
+ </section>
172
+
173
+ <custom-footer></custom-footer>
174
+ <script src="components/navbar.js"></script>
175
+ <script src="components/footer.js"></script>
176
+ <script src="script.js"></script>
177
+ <script>feather.replace();</script>
178
+ <script src="https://deepsite.hf.co/deepsite-badge.js"></script>
179
+ </body>
180
+ </html>
script.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Shared JavaScript across all pages
2
+ document.addEventListener('DOMContentLoaded', function() {
3
+ console.log('AI Website Builder loaded');
4
+
5
+ // Add animation to elements when they come into view
6
+ const observer = new IntersectionObserver((entries) => {
7
+ entries.forEach(entry => {
8
+ if (entry.isIntersecting) {
9
+ entry.target.classList.add('animate-fade-in');
10
+ }
11
+ });
12
+ }, { threshold: 0.1 });
13
+
14
+ // Observe feature cards
15
+ document.querySelectorAll('.grid > div').forEach(card => {
16
+ card.style.opacity = '0';
17
+ card.style.transform = 'translateY(20px)';
18
+ card.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
19
+
20
+ observer.observe(card);
21
+ });
22
+
23
+ // Add fade-in animation class
24
+ const style = document.createElement('style');
25
+ style.textContent = `
26
+ .animate-fade-in {
27
+ opacity: 1 !important;
28
+ transform: translateY(0) !important;
29
+ }
30
+ `;
31
+ document.head.appendChild(style);
32
+
33
+ // Handle form submission
34
+ const promptTextarea = document.getElementById('prompt');
35
+ const generateButton = document.querySelector('button.flex.items-center.gap-2');
36
+
37
+ if (generateButton) {
38
+ generateButton.addEventListener('click', function() {
39
+ const prompt = promptTextarea.value.trim();
40
+ if (prompt) {
41
+ // In a real app, this would send the prompt to an AI service
42
+ console.log('Generating website for prompt:', prompt);
43
+
44
+ // Add visual feedback
45
+ this.innerHTML = '<i data-feather="loader"></i> Generating...';
46
+ feather.replace();
47
+
48
+ // Simulate API call
49
+ setTimeout(() => {
50
+ this.innerHTML = '<i data-feather="zap"></i> Generate Website';
51
+ feather.replace();
52
+ alert('Website generated successfully! In a real application, this would open your new AI-created website.');
53
+ }, 2000);
54
+ } else {
55
+ alert('Please describe your website first');
56
+ }
57
+ });
58
+ }
59
+ });
style.css CHANGED
@@ -1,28 +1,54 @@
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Shared styles across all pages */
2
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
3
+
4
  body {
5
+ font-family: 'Inter', sans-serif;
6
+ }
7
+
8
+ .font-space {
9
+ font-family: 'Space Grotesk', sans-serif;
10
  }
11
 
12
+ /* Custom gradients */
13
+ .bg-gradient-hero {
14
+ background: linear-gradient(135deg, #10b981 0%, #f59e0b 100%);
15
  }
16
 
17
+ /* Responsive textarea */
18
+ #prompt {
19
+ min-height: 150px;
 
 
20
  }
21
 
22
+ /* Animation for interactive elements */
23
+ .hover\:scale-105 {
24
+ transition: transform 0.2s ease-in-out;
 
 
 
25
  }
26
 
27
+ /* Custom shadow depths */
28
+ .shadow-xl {
29
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
30
  }
31
+
32
+ /* Focus states */
33
+ .focus\:ring-4:focus {
34
+ outline: none;
35
+ }
36
+
37
+ /* Responsive design adjustments */
38
+ @media (max-width: 768px) {
39
+ .text-5xl {
40
+ font-size: 2.5rem;
41
+ }
42
+
43
+ .text-7xl {
44
+ font-size: 3rem;
45
+ }
46
+
47
+ .text-4xl {
48
+ font-size: 2rem;
49
+ }
50
+
51
+ .text-2xl {
52
+ font-size: 1.5rem;
53
+ }
54
+ }