UserWelcome.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <EHtml lang="en">
  3. <EHead />
  4. <EPreview>{{ preview }}</EPreview>
  5. <EBody :style="main">
  6. <EContainer :style="container">
  7. <ESection :style="box">
  8. <img :src="logo" height="50" :alt="siteTitle" />
  9. <EHr :style="hr" />
  10. <EText :style="paragraph"> {{ title }} </EText>
  11. <EText :style="paragraph"> <b>Email Address:</b> {{ email }} </EText>
  12. <EText :style="paragraph"> <b>Password:</b> {{ password }} </EText>
  13. <EText :style="paragraph"> {{ content }} </EText>
  14. <EButton px="10" py="10" :style="button" :href="buttonLink"> {{ buttonText }} </EButton>
  15. <EHr :style="hr" />
  16. <EText :style="footer"> <b>{{ siteTitle }}</b> </EText>
  17. <EText :style="footer"> Wiki.js, an open source project. </EText>
  18. </ESection>
  19. </EContainer>
  20. </EBody>
  21. </EHtml>
  22. </template>
  23. <script setup>
  24. const props = defineProps({
  25. preview: {
  26. type: String,
  27. default: '',
  28. },
  29. siteTitle: {
  30. type: String,
  31. default: ''
  32. },
  33. title: {
  34. type: String,
  35. default: '',
  36. },
  37. content: {
  38. type: String,
  39. default: '',
  40. },
  41. email: {
  42. type: String,
  43. default: ''
  44. },
  45. password: {
  46. type: String,
  47. default: ''
  48. },
  49. buttonLink: {
  50. type: String,
  51. default: '',
  52. },
  53. buttonText: {
  54. type: String,
  55. default: '',
  56. },
  57. logo: {
  58. type: String,
  59. default: ''
  60. }
  61. })
  62. const main = {
  63. backgroundColor: '#f6f9fc',
  64. fontFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif',
  65. }
  66. const container = {
  67. backgroundColor: '#ffffff',
  68. margin: '0 auto',
  69. padding: '20px 0 48px',
  70. marginBottom: '64px',
  71. }
  72. const box = {
  73. padding: '0 48px',
  74. }
  75. const hr = {
  76. borderColor: '#e6ebf1',
  77. margin: '20px 0',
  78. }
  79. const paragraph = {
  80. color: '#525f7f',
  81. fontSize: '16px',
  82. lineHeight: '24px',
  83. textAlign: 'left',
  84. }
  85. const button = {
  86. backgroundColor: '#656ee8',
  87. borderRadius: '5px',
  88. color: '#fff',
  89. fontSize: '16px',
  90. fontWeight: 'bold',
  91. textDecoration: 'none',
  92. textAlign: 'center',
  93. display: 'block',
  94. width: '100%',
  95. }
  96. const footer = {
  97. color: '#8898aa',
  98. fontSize: '12px',
  99. lineHeight: '16px',
  100. }
  101. </script>