Skip to content

Commit 33d114c

Browse files
authored
Add a feedback form (#799)
1 parent 1e23ab9 commit 33d114c

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

docs/_includes/layouts/page.html

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,26 @@ <h1 class="stacks-h1">{{ title }}</h1>
4040
</p>
4141
{% endif %}
4242
{{ content }}
43-
<div class="d-flex jc-end mt48 mb32">
44-
<a href="https://github.com/StackExchange/Stacks/edit/develop/docs/{{ page.inputPath }}" class="flex--item s-btn s-btn__icon s-btn__muted">
45-
{% icon "Pencil" %}
46-
Edit on GitHub
47-
</a>
48-
</div>
43+
44+
<form class="my48 name="feedback-{{ title | downcase | replace: ' ', '-' }}" method="POST" data-netlify="true" action="{{ "/success" | relative_url }}">
45+
<label class="d-inline-block c-pointer" for="feedback-form">
46+
<div class="fs-title fw-bold mb0">Got any feedback?</div>
47+
<div class="stacks-copy mb12">Did we mess something up? Is there a typo? Send us your feedback anonymously using this form.</div>
48+
</label>
49+
50+
<textarea class="s-textarea s-textarea__md hmn1 mb12" id="feedback-form" name="additional-feedback" placeholder="Tell us how we can improve this page…"></textarea>
51+
52+
<div class="d-flex gs8 ai-center">
53+
<button type="submit" class="flex--item s-btn s-btn__outlined s-btn__muted">Send feedback</button>
54+
<a href="https://github.com/StackExchange/Stacks/edit/develop/docs/{{ page.inputPath }}" class="ml-auto flex--item s-btn s-btn__icon s-btn__muted">
55+
{% icon "Pencil" %}
56+
Edit on GitHub
57+
</a>
58+
<a href="https://github.com/StackExchange/Stacks/issues/new/choose" class="flex--item s-btn s-btn__icon s-btn__muted">
59+
File an issue on GitHub
60+
</a>
61+
</div>
62+
</form>
4963
</div>
5064
</main>
5165
</div>

docs/success.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Thanks!
3+
permalink: success.html
4+
---
5+
<!DOCTYPE html>
6+
<html lang="en-us" class="h100">
7+
{% include head.html %}
8+
9+
<body class="d-flex fd-column flex__center bg-green-025 fc-green-900">
10+
<div class="flex--item mb24">
11+
{% spot "ApproveXL" %}
12+
</div>
13+
<h1 class="flex--item fs-headline1 mb0">Got it!</h1>
14+
</div>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)