-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathdesign.prompt.txt
178 lines (148 loc) · 4.5 KB
/
design.prompt.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
claude-3-5-sonnet-20241022
You are Claude, an AI assistant powered by Anthropic's Claude-3.5-Sonnet model, specialized in software development.
You are a software architecture.
Your job to design an app. The app is usually very simple and can be always expressed in a python web server backend plus a single html page frontend.
The given input is the app description.
Use your imagination to design a fancy app with only one python server (backend) with only one html page (frontend).
You only write the design doc with high-level structure and psudocode, no need to write actual code.
The output backend design should be in <BACKEND_DESIGN></BACKEND_DESIGN> block.
The output frontend design should be in <FRONTEND_DESIGN></FRONTEND_DESIGN> block.
There should be exactly one <BACKEND_DESIGN> and one <FRONTEND_DESIGN>.
=== 0: user ===
# The problem to solve:
<PROBLEM>
make a landing page for https://finae.ai.
only one word "Failure-Is-Not-An-Error". Dark theme, make it futuristic and mystery.
</PROBLEM>
Based on given app description, generate <BACKEND_DESIGN> and <FRONTEND_DESIGN>.
<BACKEND_DESIGN> will be written in "backend_design.txt".
<FRONTEND_DESIGN> will be written in "frontend_design.txt".
=== Reply 0 ===
I'll design a minimalist but impactful landing page for finae.ai with a futuristic and mysterious theme.
<BACKEND_DESIGN>
Simple Flask server with minimal routes:
```python
# Main server structure
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
# Serve the single landing page
return render_template('index.html')
# Optional: API endpoint for any dynamic effects
@app.route('/api/glitch-effect')
def glitch_effect():
# Return random glitch parameters for dynamic effects
return {
'offset': random.randint(-5, 5),
'opacity': random.random()
}
# Configuration
app.config.update(
DEBUG=True,
STATIC_FOLDER='static'
)
```
The backend is intentionally minimal since this is primarily a static landing page.
</BACKEND_DESIGN>
<FRONTEND_DESIGN>
Single page dark-themed design with futuristic elements:
```html
<!-- Structure -->
<div class="container">
<div class="glitch-wrapper">
<h1 class="main-text" data-text="Failure-Is-Not-An-Error">
Failure-Is-Not-An-Error
</h1>
</div>
</div>
<!-- Styling -->
<style>
/* Color scheme */
:root {
--primary-color: #0a0a0a;
--accent-color: #00ff9d;
--glow-color: rgba(0, 255, 157, 0.5);
--text-color: #ffffff;
}
body {
background-color: var(--primary-color);
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'BladeRunner', monospace;
overflow: hidden;
}
/* Main text styling */
.main-text {
font-size: 4vw;
color: var(--text-color);
text-shadow: 0 0 10px var(--glow-color);
letter-spacing: 0.2em;
position: relative;
}
/* Glitch effect */
.glitch-wrapper {
position: relative;
animation: float 4s ease-in-out infinite;
}
/* Hover effects */
.main-text:hover {
color: var(--accent-color);
transition: color 0.3s ease;
}
/* Background grid */
.container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
var(--primary-color) 1px,
transparent 1px
) 0 0,
linear-gradient(
90deg,
var(--primary-color) 1px,
transparent 1px
) 0 0;
background-size: 30px 30px;
opacity: 0.1;
}
/* Animations */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}
/* Optional: JavaScript for dynamic effects */
<script>
document.addEventListener('mousemove', (e) => {
const text = document.querySelector('.main-text');
const { clientX, clientY } = e;
const centerX = window.innerWidth / 2;
const centerY = window.innerHeight / 2;
const angleX = (clientX - centerX) / centerX;
const angleY = (clientY - centerY) / centerY;
text.style.transform = `perspective(1000px)
rotateY(${angleX * 5}deg)
rotateX(${-angleY * 5}deg)`;
});
</script>
</style>
```
Key features:
1. Dark theme with neon accents
2. Glitch effect on text
3. Subtle floating animation
4. Interactive 3D rotation on mouse move
5. Background grid for depth
6. Responsive design
7. Custom font for futuristic look
8. Hover effects with color transition
9. Text shadow for glow effect
</FRONTEND_DESIGN>