Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

style up survery area a bit

Scott Petrovicac3eb0a8b7d8
diff --git a/src/dialog.css b/src/dialog.css
index ce8c309..33e7694 100644
--- a/src/dialog.css
+++ b/src/dialog.css
@@ -234,14 +234,16 @@
}
.download-success-dialog-body {
-color: var(--text-primary);
+ color: var(--text-primary);
font-size: 1rem;
line-height: 1.5;
- display: flex;
+ display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}
+
+
.download-success-dialog-body > p {
grid-column: 1 / -1;
margin: 0 0 1rem 0;
@@ -265,7 +267,7 @@ color: var(--text-primary);
.download-success-section p {
margin: 1rem 0;
- color: var(--text-alternate);
+ color: var(--text-primary);
font-size: 1.1rem;
line-height: 1.4;
}
@@ -283,7 +285,7 @@ color: var(--text-primary);
display: flex;
gap: 0.5rem;
justify-content: center;
- margin: 1rem 0;
+ margin: 0;
}
.star-button {
@@ -314,6 +316,32 @@ font-size: 2rem;
opacity: 1;
}
+/* ── Download Success Feedback Textarea ── */
+
+.download-success-feedback-textarea {
+ padding: 1rem;
+ background-color: var(--bg-primary);
+ border: 1px solid var(--bg-tertiary);
+ font-family: 'Jost', sans-serif;
+ resize: vertical;
+ flex-grow: 1;
+ min-height: 50px;
+ max-height: 50px;
+ resize: none;
+ margin-bottom: 1rem;
+}
+
+.download-success-feedback-textarea::placeholder {
+ color: var(--text-primary);
+ opacity: 1;
+ font-style: italic;
+}
+
+.download-success-feedback-textarea:focus {
+ outline: none;
+ border-color: var(--button-primary-bg);
+}
+
@media (max-width: 768px) {
.download-success-dialog-body {
grid-template-columns: 1fr;
diff --git a/src/lib/components/download-success/DownloadSuccessDialog.ts b/src/lib/components/download-success/DownloadSuccessDialog.ts
index b82aebd..860cd01 100644
--- a/src/lib/components/download-success/DownloadSuccessDialog.ts
+++ b/src/lib/components/download-success/DownloadSuccessDialog.ts
@@ -9,14 +9,6 @@ export class DownloadSuccessDialog {
<div class="download-success-dialog-content">
<h2>Export Successful</h2>
<div class="download-success-dialog-body">
- <div class="download-success-section">
- <h3>How was your experience</h3>
- <p>Quick question: Are you enjoying Mesh2Motion? We'd love to hear your feedback!
- It only takes 2 minutes to answer our brief survey.</p>
- <div class="star-rating-container"></div>
- <button class="download-success-survey-btn">Take Survey</button>
- </div>
-
<div class="download-success-section">
<h3>Support the Project</h3>
<p>If you find Mesh2Motion helpful, consider donating to help us keep improving the tool
@@ -24,6 +16,13 @@ export class DownloadSuccessDialog {
<a href="https://support.mesh2motion.org/" class="button">Learn More</a>
</div>
+ <div class="download-success-section">
+ <h3>Share Your Feedback</h3>
+ <div class="star-rating-container"></div>
+ <textarea class="download-success-feedback-textarea" placeholder="Add optionalal feedback. (500 character max)" rows="4" maxlength="500"></textarea>
+ <button class="download-success-survey-btn">Submit</button>
+ </div>
+
<div class="download-success-section">
<h3>Join Our Community</h3>
<p>Have questions or want to share your creations? Join us on Discord to connect with
@@ -32,6 +31,7 @@ export class DownloadSuccessDialog {
Join Discord Server
</a>
</div>
+
</div>
<a href="#" class="download-success-dialog-close">Not today, maybe tomorrow</a>
</div>