A site that creates prompts for nude boys images
Browse files- README.md +8 -5
- components/footer.js +156 -0
- components/header.js +147 -0
- index.html +122 -19
- script.js +44 -0
- style.css +83 -17
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: PromptCraft Studio
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: yellow
|
| 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://huggingface.co/deepsite).
|
components/footer.js
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
footer {
|
| 11 |
+
background-color: #f9fafb;
|
| 12 |
+
border-top: 1px solid #e5e7eb;
|
| 13 |
+
padding: 40px 0 20px;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
.container {
|
| 17 |
+
max-width: 1200px;
|
| 18 |
+
margin: 0 auto;
|
| 19 |
+
padding: 0 16px;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.footer-content {
|
| 23 |
+
display: grid;
|
| 24 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 25 |
+
gap: 32px;
|
| 26 |
+
margin-bottom: 32px;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.footer-column h3 {
|
| 30 |
+
font-size: 1.125rem;
|
| 31 |
+
font-weight: 600;
|
| 32 |
+
margin-bottom: 16px;
|
| 33 |
+
color: #1f2937;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.footer-column ul {
|
| 37 |
+
list-style: none;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.footer-column ul li {
|
| 41 |
+
margin-bottom: 12px;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.footer-column ul li a {
|
| 45 |
+
text-decoration: none;
|
| 46 |
+
color: #6b7280;
|
| 47 |
+
transition: color 0.3s ease;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.footer-column ul li a:hover {
|
| 51 |
+
color: #3b82f6;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.social-links {
|
| 55 |
+
display: flex;
|
| 56 |
+
gap: 16px;
|
| 57 |
+
margin-top: 16px;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.social-links a {
|
| 61 |
+
display: inline-flex;
|
| 62 |
+
align-items: center;
|
| 63 |
+
justify-content: center;
|
| 64 |
+
width: 36px;
|
| 65 |
+
height: 36px;
|
| 66 |
+
border-radius: 50%;
|
| 67 |
+
background-color: #e5e7eb;
|
| 68 |
+
color: #4b5563;
|
| 69 |
+
transition: all 0.3s ease;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.social-links a:hover {
|
| 73 |
+
background-color: #3b82f6;
|
| 74 |
+
color: white;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.copyright {
|
| 78 |
+
padding-top: 24px;
|
| 79 |
+
border-top: 1px solid #e5e7eb;
|
| 80 |
+
text-align: center;
|
| 81 |
+
color: #6b7280;
|
| 82 |
+
font-size: 0.875rem;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
@media (max-width: 768px) {
|
| 86 |
+
.footer-content {
|
| 87 |
+
grid-template-columns: 1fr;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
</style>
|
| 91 |
+
|
| 92 |
+
<footer>
|
| 93 |
+
<div class="container">
|
| 94 |
+
<div class="footer-content">
|
| 95 |
+
<div class="footer-column">
|
| 96 |
+
<h3>PromptCraft Studio</h3>
|
| 97 |
+
<p class="text-gray-600">Creating the perfect prompts for your AI-generated artwork needs.</p>
|
| 98 |
+
<div class="social-links">
|
| 99 |
+
<a href="#"><i data-feather="twitter"></i></a>
|
| 100 |
+
<a href="#"><i data-feather="instagram"></i></a>
|
| 101 |
+
<a href="#"><i data-feather="github"></i></a>
|
| 102 |
+
<a href="#"><i data-feather="linkedin"></i></a>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<div class="footer-column">
|
| 107 |
+
<h3>Resources</h3>
|
| 108 |
+
<ul>
|
| 109 |
+
<li><a href="#">Prompt Guide</a></li>
|
| 110 |
+
<li><a href="#">AI Art Tutorials</a></li>
|
| 111 |
+
<li><a href="#">Model Comparisons</a></li>
|
| 112 |
+
<li><a href="#">Community Gallery</a></li>
|
| 113 |
+
</ul>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<div class="footer-column">
|
| 117 |
+
<h3>Company</h3>
|
| 118 |
+
<ul>
|
| 119 |
+
<li><a href="#">About Us</a></li>
|
| 120 |
+
<li><a href="#">Blog</a></li>
|
| 121 |
+
<li><a href="#">Careers</a></li>
|
| 122 |
+
<li><a href="#">Contact</a></li>
|
| 123 |
+
</ul>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
<div class="footer-column">
|
| 127 |
+
<h3>Legal</h3>
|
| 128 |
+
<ul>
|
| 129 |
+
<li><a href="#">Terms of Service</a></li>
|
| 130 |
+
<li><a href="#">Privacy Policy</a></li>
|
| 131 |
+
<li><a href="#">Cookie Policy</a></li>
|
| 132 |
+
<li><a href="#">Licensing</a></li>
|
| 133 |
+
</ul>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<div class="copyright">
|
| 138 |
+
<p>© 2023 PromptCraft Studio. All rights reserved.</p>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
</footer>
|
| 142 |
+
`;
|
| 143 |
+
|
| 144 |
+
// Initialize Feather Icons
|
| 145 |
+
const script = document.createElement('script');
|
| 146 |
+
script.src = "https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js";
|
| 147 |
+
script.onload = () => {
|
| 148 |
+
if (this.shadowRoot) {
|
| 149 |
+
feather.replace();
|
| 150 |
+
}
|
| 151 |
+
};
|
| 152 |
+
this.shadowRoot.appendChild(script);
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
customElements.define('custom-footer', CustomFooter);
|
components/header.js
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomHeader extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
header {
|
| 11 |
+
background-color: white;
|
| 12 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
| 13 |
+
position: sticky;
|
| 14 |
+
top: 0;
|
| 15 |
+
z-index: 100;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
.container {
|
| 19 |
+
max-width: 1200px;
|
| 20 |
+
margin: 0 auto;
|
| 21 |
+
padding: 0 16px;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
nav {
|
| 25 |
+
display: flex;
|
| 26 |
+
justify-content: space-between;
|
| 27 |
+
align-items: center;
|
| 28 |
+
padding: 16px 0;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.logo {
|
| 32 |
+
font-size: 1.5rem;
|
| 33 |
+
font-weight: 700;
|
| 34 |
+
color: #3b82f6;
|
| 35 |
+
text-decoration: none;
|
| 36 |
+
display: flex;
|
| 37 |
+
align-items: center;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.logo i {
|
| 41 |
+
margin-right: 8px;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.nav-links {
|
| 45 |
+
display: flex;
|
| 46 |
+
list-style: none;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.nav-links li {
|
| 50 |
+
margin-left: 24px;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.nav-links a {
|
| 54 |
+
text-decoration: none;
|
| 55 |
+
color: #4b5563;
|
| 56 |
+
font-weight: 500;
|
| 57 |
+
transition: color 0.3s ease;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.nav-links a:hover {
|
| 61 |
+
color: #3b82f6;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.nav-buttons {
|
| 65 |
+
display: flex;
|
| 66 |
+
gap: 12px;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.btn-outline {
|
| 70 |
+
padding: 8px 16px;
|
| 71 |
+
border-radius: 6px;
|
| 72 |
+
font-weight: 500;
|
| 73 |
+
cursor: pointer;
|
| 74 |
+
transition: all 0.3s ease;
|
| 75 |
+
border: 1px solid #d1d5db;
|
| 76 |
+
background: white;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.btn-outline:hover {
|
| 80 |
+
background-color: #f9fafb;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.btn-primary {
|
| 84 |
+
padding: 8px 16px;
|
| 85 |
+
border-radius: 6px;
|
| 86 |
+
font-weight: 500;
|
| 87 |
+
cursor: pointer;
|
| 88 |
+
transition: all 0.3s ease;
|
| 89 |
+
background-color: #3b82f6;
|
| 90 |
+
color: white;
|
| 91 |
+
border: none;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.btn-primary:hover {
|
| 95 |
+
background-color: #2563eb;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
@media (max-width: 768px) {
|
| 99 |
+
.nav-links {
|
| 100 |
+
display: none;
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
</style>
|
| 104 |
+
|
| 105 |
+
<header>
|
| 106 |
+
<div class="container">
|
| 107 |
+
<nav>
|
| 108 |
+
<a href="/" class="logo">
|
| 109 |
+
<i data-feather="aperture"></i>
|
| 110 |
+
<span>PromptCraft</span>
|
| 111 |
+
</a>
|
| 112 |
+
|
| 113 |
+
<ul class="nav-links">
|
| 114 |
+
<li><a href="/">Home</a></li>
|
| 115 |
+
<li><a href="#">Gallery</a></li>
|
| 116 |
+
<li><a href="#">Resources</a></li>
|
| 117 |
+
<li><a href="#">About</a></li>
|
| 118 |
+
</ul>
|
| 119 |
+
|
| 120 |
+
<div class="nav-buttons">
|
| 121 |
+
<button class="btn-outline">
|
| 122 |
+
<i data-feather="log-in"></i>
|
| 123 |
+
<span>Login</span>
|
| 124 |
+
</button>
|
| 125 |
+
<button class="btn-primary">
|
| 126 |
+
<i data-feather="user-plus"></i>
|
| 127 |
+
<span>Sign Up</span>
|
| 128 |
+
</button>
|
| 129 |
+
</div>
|
| 130 |
+
</nav>
|
| 131 |
+
</div>
|
| 132 |
+
</header>
|
| 133 |
+
`;
|
| 134 |
+
|
| 135 |
+
// Initialize Feather Icons
|
| 136 |
+
const script = document.createElement('script');
|
| 137 |
+
script.src = "https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js";
|
| 138 |
+
script.onload = () => {
|
| 139 |
+
if (this.shadowRoot) {
|
| 140 |
+
feather.replace();
|
| 141 |
+
}
|
| 142 |
+
};
|
| 143 |
+
this.shadowRoot.appendChild(script);
|
| 144 |
+
}
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
customElements.define('custom-header', CustomHeader);
|
index.html
CHANGED
|
@@ -1,19 +1,122 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>PromptCraft Studio</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
</head>
|
| 12 |
+
<body class="bg-gray-50 text-gray-800">
|
| 13 |
+
<custom-header></custom-header>
|
| 14 |
+
|
| 15 |
+
<main class="container mx-auto px-4 py-8">
|
| 16 |
+
<section class="text-center mb-12">
|
| 17 |
+
<h1 class="text-4xl md:text-5xl font-bold mb-4">AI Image Prompt Generator</h1>
|
| 18 |
+
<p class="text-lg max-w-2xl mx-auto">Create detailed prompts for AI-generated artwork. Our tool helps you craft precise descriptions for your creative projects.</p>
|
| 19 |
+
</section>
|
| 20 |
+
|
| 21 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12">
|
| 22 |
+
<div class="bg-white rounded-xl shadow-lg p-6">
|
| 23 |
+
<h2 class="text-2xl font-bold mb-4">Prompt Builder</h2>
|
| 24 |
+
<form id="promptForm" class="space-y-4">
|
| 25 |
+
<div>
|
| 26 |
+
<label class="block text-sm font-medium mb-1">Subject Description</label>
|
| 27 |
+
<input type="text" id="subject" placeholder="e.g., young man, teenager" class="w-full p-3 border border-gray-300 rounded-lg">
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
<div>
|
| 31 |
+
<label class="block text-sm font-medium mb-1">Style & Art Type</label>
|
| 32 |
+
<select id="style" class="w-full p-3 border border-gray-300 rounded-lg">
|
| 33 |
+
<option>Photorealistic</option>
|
| 34 |
+
<option>Digital Art</option>
|
| 35 |
+
<option>Oil Painting</option>
|
| 36 |
+
<option>Sketch</option>
|
| 37 |
+
<option>Anime</option>
|
| 38 |
+
<option>3D Render</option>
|
| 39 |
+
</select>
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<div>
|
| 43 |
+
<label class="block text-sm font-medium mb-1">Setting/Background</label>
|
| 44 |
+
<input type="text" id="setting" placeholder="e.g., studio, outdoors, fantasy landscape" class="w-full p-3 border border-gray-300 rounded-lg">
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
<div>
|
| 48 |
+
<label class="block text-sm font-medium mb-1">Lighting</label>
|
| 49 |
+
<select id="lighting" class="w-full p-3 border border-gray-300 rounded-lg">
|
| 50 |
+
<option>Natural Light</option>
|
| 51 |
+
<option>Studio Lighting</option>
|
| 52 |
+
<option>Golden Hour</option>
|
| 53 |
+
<option>Blue Hour</option>
|
| 54 |
+
<option>Dramatic Lighting</option>
|
| 55 |
+
<option>Soft Lighting</option>
|
| 56 |
+
</select>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<div>
|
| 60 |
+
<label class="block text-sm font-medium mb-1">Additional Details</label>
|
| 61 |
+
<textarea id="details" placeholder="e.g., clothing style, expression, accessories" rows="3" class="w-full p-3 border border-gray-300 rounded-lg"></textarea>
|
| 62 |
+
</div>
|
| 63 |
+
|
| 64 |
+
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-4 rounded-lg transition duration-300">
|
| 65 |
+
Generate Prompt
|
| 66 |
+
</button>
|
| 67 |
+
</form>
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
+
<div class="bg-white rounded-xl shadow-lg p-6">
|
| 71 |
+
<h2 class="text-2xl font-bold mb-4">Generated Prompt</h2>
|
| 72 |
+
<div class="mb-4 flex justify-between items-center">
|
| 73 |
+
<span class="text-sm text-gray-500">Copy your prompt:</span>
|
| 74 |
+
<button id="copyBtn" class="flex items-center text-sm bg-gray-100 hover:bg-gray-200 py-1 px-3 rounded">
|
| 75 |
+
<i data-feather="copy" class="mr-1"></i> Copy
|
| 76 |
+
</button>
|
| 77 |
+
</div>
|
| 78 |
+
<div id="promptOutput" class="bg-gray-50 border border-gray-200 rounded-lg p-4 min-h-[200px]">
|
| 79 |
+
<p class="text-gray-500 italic">Your generated prompt will appear here...</p>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<section class="bg-white rounded-xl shadow-lg p-6 mb-12">
|
| 85 |
+
<h2 class="text-2xl font-bold mb-4">Recent Prompts</h2>
|
| 86 |
+
<div id="recentPrompts" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
| 87 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 88 |
+
<p class="text-sm text-gray-600 mb-2">Photorealistic portrait of a young man with short brown hair, wearing a white t-shirt, natural lighting, studio background</p>
|
| 89 |
+
<div class="flex justify-between text-xs text-gray-500">
|
| 90 |
+
<span>2 hours ago</span>
|
| 91 |
+
<span class="cursor-pointer text-blue-600">Copy</span>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 95 |
+
<p class="text-sm text-gray-600 mb-2">Anime style character of a teenage boy with blue eyes, wearing casual clothes, sitting in a park during golden hour</p>
|
| 96 |
+
<div class="flex justify-between text-xs text-gray-500">
|
| 97 |
+
<span>1 day ago</span>
|
| 98 |
+
<span class="cursor-pointer text-blue-600">Copy</span>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
<div class="border border-gray-200 rounded-lg p-4">
|
| 102 |
+
<p class="text-sm text-gray-600 mb-2">Oil painting of a young man with curly hair, wearing a leather jacket, dramatic lighting, urban background</p>
|
| 103 |
+
<div class="flex justify-between text-xs text-gray-500">
|
| 104 |
+
<span>3 days ago</span>
|
| 105 |
+
<span class="cursor-pointer text-blue-600">Copy</span>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
</section>
|
| 110 |
+
</main>
|
| 111 |
+
|
| 112 |
+
<custom-footer></custom-footer>
|
| 113 |
+
|
| 114 |
+
<script src="components/header.js"></script>
|
| 115 |
+
<script src="components/footer.js"></script>
|
| 116 |
+
<script src="script.js"></script>
|
| 117 |
+
<script>
|
| 118 |
+
feather.replace();
|
| 119 |
+
</script>
|
| 120 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 121 |
+
</body>
|
| 122 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
const promptForm = document.getElementById('promptForm');
|
| 3 |
+
const promptOutput = document.getElementById('promptOutput');
|
| 4 |
+
const copyBtn = document.getElementById('copyBtn');
|
| 5 |
+
|
| 6 |
+
promptForm.addEventListener('submit', function(e) {
|
| 7 |
+
e.preventDefault();
|
| 8 |
+
|
| 9 |
+
const subject = document.getElementById('subject').value || 'young person';
|
| 10 |
+
const style = document.getElementById('style').value;
|
| 11 |
+
const setting = document.getElementById('setting').value || 'neutral background';
|
| 12 |
+
const lighting = document.getElementById('lighting').value;
|
| 13 |
+
const details = document.getElementById('details').value;
|
| 14 |
+
|
| 15 |
+
let prompt = `${style} depiction of ${subject}`;
|
| 16 |
+
|
| 17 |
+
if (details) {
|
| 18 |
+
prompt += `, ${details}`;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
prompt += `, set in ${setting}, with ${lighting.toLowerCase()}`;
|
| 22 |
+
|
| 23 |
+
promptOutput.innerHTML = `<p class="text-gray-800">${prompt}</p>`;
|
| 24 |
+
});
|
| 25 |
+
|
| 26 |
+
copyBtn.addEventListener('click', function() {
|
| 27 |
+
const promptText = promptOutput.innerText;
|
| 28 |
+
if (promptText && !promptText.includes('appear here')) {
|
| 29 |
+
navigator.clipboard.writeText(promptText)
|
| 30 |
+
.then(() => {
|
| 31 |
+
const originalText = copyBtn.innerHTML;
|
| 32 |
+
copyBtn.innerHTML = '<i data-feather="check" class="mr-1"></i> Copied!';
|
| 33 |
+
feather.replace();
|
| 34 |
+
setTimeout(() => {
|
| 35 |
+
copyBtn.innerHTML = originalText;
|
| 36 |
+
feather.replace();
|
| 37 |
+
}, 2000);
|
| 38 |
+
})
|
| 39 |
+
.catch(err => {
|
| 40 |
+
console.error('Failed to copy: ', err);
|
| 41 |
+
});
|
| 42 |
+
}
|
| 43 |
+
});
|
| 44 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
.card {
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
}
|
| 25 |
|
| 26 |
-
.card
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 2 |
+
|
| 3 |
+
:root {
|
| 4 |
+
--primary-color: #3b82f6;
|
| 5 |
+
--secondary-color: #8b5cf6;
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
* {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
body {
|
| 15 |
+
font-family: 'Inter', sans-serif;
|
| 16 |
+
line-height: 1.6;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.container {
|
| 20 |
+
max-width: 1200px;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.btn-primary {
|
| 24 |
+
background-color: var(--primary-color);
|
| 25 |
+
color: white;
|
| 26 |
+
border: none;
|
| 27 |
+
padding: 12px 24px;
|
| 28 |
+
border-radius: 8px;
|
| 29 |
+
font-weight: 600;
|
| 30 |
+
cursor: pointer;
|
| 31 |
+
transition: all 0.3s ease;
|
| 32 |
}
|
| 33 |
|
| 34 |
+
.btn-primary:hover {
|
| 35 |
+
background-color: #2563eb;
|
| 36 |
+
transform: translateY(-2px);
|
| 37 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 38 |
}
|
| 39 |
|
| 40 |
+
.btn-secondary {
|
| 41 |
+
background-color: var(--secondary-color);
|
| 42 |
+
color: white;
|
| 43 |
+
border: none;
|
| 44 |
+
padding: 12px 24px;
|
| 45 |
+
border-radius: 8px;
|
| 46 |
+
font-weight: 600;
|
| 47 |
+
cursor: pointer;
|
| 48 |
+
transition: all 0.3s ease;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.btn-secondary:hover {
|
| 52 |
+
background-color: #7c3aed;
|
| 53 |
+
transform: translateY(-2px);
|
| 54 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 55 |
}
|
| 56 |
|
| 57 |
.card {
|
| 58 |
+
background: white;
|
| 59 |
+
border-radius: 12px;
|
| 60 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
| 61 |
+
padding: 24px;
|
| 62 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 63 |
}
|
| 64 |
|
| 65 |
+
.card:hover {
|
| 66 |
+
transform: translateY(-5px);
|
| 67 |
+
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
|
| 68 |
}
|
| 69 |
+
|
| 70 |
+
.gradient-bg {
|
| 71 |
+
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.text-gradient {
|
| 75 |
+
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
|
| 76 |
+
-webkit-background-clip: text;
|
| 77 |
+
-webkit-text-fill-color: transparent;
|
| 78 |
+
background-clip: text;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
footer {
|
| 82 |
+
background-color: #f9fafb;
|
| 83 |
+
border-top: 1px solid #e5e7eb;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
@media (max-width: 768px) {
|
| 87 |
+
.container {
|
| 88 |
+
padding: 0 16px;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.card {
|
| 92 |
+
padding: 16px;
|
| 93 |
+
}
|
| 94 |
+
}
|