Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Survey.tsx 2.7 KB

You have to be logged in to leave a comment. Sign In
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
  1. import { ThumbsdownIcon, ThumbsupIcon } from '@primer/octicons-react'
  2. import { useTranslation } from 'components/hooks/useTranslation'
  3. export const Survey = () => {
  4. const { t } = useTranslation('survey')
  5. return (
  6. <form className="js-survey f5">
  7. <h2 data-help-start data-help-yes data-help-no className="mb-1 f4">
  8. {t`able_to_find`}
  9. </h2>
  10. <p className="f6">
  11. <a href="/github/site-policy/github-privacy-statement">Privacy policy</a>
  12. </p>
  13. <p className="radio-group" data-help-start data-help-yes data-help-no>
  14. <input
  15. hidden
  16. id="survey-yes"
  17. type="radio"
  18. name="survey-vote"
  19. value="Yes"
  20. aria-label={t('yes')}
  21. />
  22. <label className="btn x-radio-label mr-1" htmlFor="survey-yes">
  23. <ThumbsupIcon size={24} className="color-text-tertiary" />
  24. </label>
  25. <input
  26. hidden
  27. id="survey-no"
  28. type="radio"
  29. name="survey-vote"
  30. value="No"
  31. aria-label={t`no`}
  32. />
  33. <label className="btn x-radio-label" htmlFor="survey-no">
  34. <ThumbsdownIcon size={24} className="color-text-tertiary" />
  35. </label>
  36. </p>
  37. <p className="color-text-secondary f6" hidden data-help-yes>
  38. {t('yes_feedback')}
  39. </p>
  40. <p className="color-text-secondary f6" hidden data-help-no>
  41. {t('no_feedback')}
  42. </p>
  43. <input type="text" className="d-none" name="survey-token" aria-hidden="true" />
  44. <p hidden data-help-no>
  45. <label className="d-block mb-1 f6" htmlFor="survey-comment">
  46. <span>{t('comment_label')}</span>
  47. <span className="text-normal color-text-tertiary float-right ml-1">{t('optional')}</span>
  48. </label>
  49. <textarea
  50. className="form-control input-sm width-full"
  51. name="survey-comment"
  52. id="survey-comment"
  53. ></textarea>
  54. </p>
  55. <p>
  56. <label className="d-block mb-1 f6" htmlFor="survey-email" hidden data-help-no>
  57. {t('email_label')}
  58. <span className="text-normal color-text-tertiary float-right ml-1">{t('optional')}</span>
  59. </label>
  60. <input
  61. type="email"
  62. className="form-control input-sm width-full"
  63. name="survey-email"
  64. id="survey-email"
  65. placeholder={t('email_placeholder')}
  66. hidden
  67. data-help-yes
  68. data-help-no
  69. />
  70. </p>
  71. <p className="text-right" hidden data-help-yes data-help-no>
  72. <button type="submit" className="btn btn-sm">
  73. {t('send')}
  74. </button>
  75. </p>
  76. <p className="color-text-secondary f6" hidden data-help-end>
  77. {t('feedback')}
  78. </p>
  79. </form>
  80. )
  81. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...