|
| 1 | +--- |
| 2 | +/** |
| 3 | + * /feedback — the in-app "Send feedback" landing page. |
| 4 | + * |
| 5 | + * The desktop and /try builds open this URL in a browser instead of a |
| 6 | + * mailto: link. Email is the main path so people without a GitHub account |
| 7 | + * still have a way to write. Varve never attaches diagnostics or files here. |
| 8 | + */ |
| 9 | +import Button from '../components/Button.astro'; |
| 10 | +import ContactChannel from '../components/ContactChannel.astro'; |
| 11 | +import Layout from '../layouts/Layout.astro'; |
| 12 | +import { CONTACTS, VARVE_URLS } from '@varve/shared'; |
| 13 | +import { siteUrl } from '../lib/siteUrl'; |
| 14 | +
|
| 15 | +const feedbackUrl = siteUrl('/feedback'); |
| 16 | +
|
| 17 | +const feedbackSchema = { |
| 18 | + '@context': 'https://schema.org', |
| 19 | + '@type': 'WebPage', |
| 20 | + '@id': `${feedbackUrl}#webpage`, |
| 21 | + url: feedbackUrl, |
| 22 | + name: 'Send feedback to Varve', |
| 23 | + description: |
| 24 | + 'Email Varve what happened, share an idea, or write to feedback@varve.studio. The app sends nothing automatically. You choose what to share.', |
| 25 | + inLanguage: 'en', |
| 26 | + mainEntity: { |
| 27 | + '@type': 'Organization', |
| 28 | + name: 'Varve', |
| 29 | + url: siteUrl('/'), |
| 30 | + email: CONTACTS.feedback, |
| 31 | + }, |
| 32 | +}; |
| 33 | +--- |
| 34 | + |
| 35 | +<Layout |
| 36 | + title="Send feedback" |
| 37 | + description="Email Varve what happened, share an idea, or write to feedback@varve.studio. The app sends nothing automatically. You choose what to share." |
| 38 | + structuredData={feedbackSchema} |
| 39 | +> |
| 40 | + <div class="container-custom"> |
| 41 | + <div class="feedback-page"> |
| 42 | + <h1 class="page-hero-title">Send feedback</h1> |
| 43 | + <p class="page-hero-sub"> |
| 44 | + The app sends nothing automatically. You choose what to share. |
| 45 | + </p> |
| 46 | + <p class="feedback-note"> |
| 47 | + You only need to say what happened. A screenshot helps. Everything else |
| 48 | + is optional. |
| 49 | + </p> |
| 50 | + |
| 51 | + <ol class="feedback-choices"> |
| 52 | + <li class="feedback-choice site-card site-card--surface"> |
| 53 | + <h2>Something broke?</h2> |
| 54 | + <ContactChannel |
| 55 | + id="feedback" |
| 56 | + headingLevel={3} |
| 57 | + purpose="Email us what happened. A screenshot helps." |
| 58 | + /> |
| 59 | + <p class="feedback-secondary"> |
| 60 | + Have a GitHub account?{' '} |
| 61 | + <a href={VARVE_URLS.newIssueChoose}>You can also post it there.</a> |
| 62 | + </p> |
| 63 | + </li> |
| 64 | + <li class="feedback-choice site-card site-card--surface"> |
| 65 | + <h2>Have an idea or a question?</h2> |
| 66 | + <p>Write it in your own words.</p> |
| 67 | + <Button href={VARVE_URLS.discussions} variant="secondary"> |
| 68 | + Post on the Varve forum (GitHub account needed) |
| 69 | + </Button> |
| 70 | + </li> |
| 71 | + </ol> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | +</Layout> |
| 75 | + |
| 76 | +<style> |
| 77 | + .feedback-page { |
| 78 | + max-width: 760px; |
| 79 | + margin: 0 auto; |
| 80 | + padding: 3rem 0 4rem; |
| 81 | + } |
| 82 | + |
| 83 | + .feedback-page .page-hero-sub { |
| 84 | + margin-bottom: 0.75rem; |
| 85 | + } |
| 86 | + |
| 87 | + .feedback-note { |
| 88 | + color: var(--text-secondary); |
| 89 | + line-height: 1.7; |
| 90 | + margin: 0 0 2.5rem; |
| 91 | + max-width: 56ch; |
| 92 | + } |
| 93 | + |
| 94 | + .feedback-choices { |
| 95 | + list-style: none; |
| 96 | + margin: 0; |
| 97 | + padding: 0; |
| 98 | + display: grid; |
| 99 | + gap: 1.25rem; |
| 100 | + } |
| 101 | + |
| 102 | + .feedback-choice { |
| 103 | + padding: 1.5rem; |
| 104 | + } |
| 105 | + |
| 106 | + .feedback-choice h2 { |
| 107 | + font-size: var(--type-interface-title-size); |
| 108 | + font-weight: 700; |
| 109 | + color: var(--text-primary); |
| 110 | + margin-bottom: 0.5rem; |
| 111 | + } |
| 112 | + |
| 113 | + .feedback-choice p { |
| 114 | + color: var(--text-secondary); |
| 115 | + line-height: 1.7; |
| 116 | + margin-bottom: 1rem; |
| 117 | + max-width: 56ch; |
| 118 | + } |
| 119 | + |
| 120 | + .feedback-secondary { |
| 121 | + margin-top: 1rem; |
| 122 | + margin-bottom: 0; |
| 123 | + font-size: var(--type-interface-caption-size); |
| 124 | + } |
| 125 | + |
| 126 | + .feedback-secondary a { |
| 127 | + color: var(--text-link); |
| 128 | + } |
| 129 | + |
| 130 | + .feedback-secondary a:hover { |
| 131 | + color: var(--text-link-hover); |
| 132 | + } |
| 133 | + |
| 134 | + .feedback-choice :global(.contact-channel) { |
| 135 | + padding-top: 0; |
| 136 | + padding-bottom: 0; |
| 137 | + border-top: none; |
| 138 | + } |
| 139 | + |
| 140 | + .feedback-choice :global(.contact-channel-title) { |
| 141 | + position: absolute; |
| 142 | + width: 1px; |
| 143 | + height: 1px; |
| 144 | + overflow: hidden; |
| 145 | + clip-path: inset(50%); |
| 146 | + white-space: nowrap; |
| 147 | + } |
| 148 | +</style> |
0 commit comments