survey-detail.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="main">
  3. <div class="content">
  4. <sub-header />
  5. <div class="left">
  6. <hero-sub-title :type="4" />
  7. <div class="detail">
  8. <div class="back" @click="$router.go(-1)"></div>
  9. <div class="info"></div>
  10. </div>
  11. </div>
  12. <side-menu />
  13. </div>
  14. </div>
  15. </template>
  16. <script setup>
  17. import { watchEffect, ref } from "vue";
  18. import { useFullscreen } from "@vueuse/core";
  19. import subHeader from "../components/subHeader";
  20. import sideMenu from "../components/sideMenu";
  21. import heroSubTitle from "../components/heroSubTitle";
  22. import { useInfoStore } from "../store/info";
  23. const title = ref("detail");
  24. watchEffect(() => {
  25. document.title = title.value;
  26. });
  27. </script>
  28. <style lang="scss" scoped>
  29. .detail {
  30. --main-show-case-background: #ddd5d5;
  31. --main-detail-margin: 1.875rem;
  32. --main-detail-padding: 1.875rem;
  33. margin: var(--main-detail-margin);
  34. margin-bottom: 0;
  35. flex: 1;
  36. border-radius: 0.8125rem;
  37. padding: 2rem 3rem 4rem 3rem;
  38. overflow-y: scroll;
  39. background-image: var(--main-detail-background-img);
  40. background-size: cover;
  41. background-position: top 100%;
  42. background-repeat: no-repeat;
  43. .back {
  44. background-image: url("/img/back_arrow.png");
  45. width: 7.5rem;
  46. height: 1.875rem;
  47. background-repeat: no-repeat;
  48. background-size: contain;
  49. margin-bottom: 0.75rem;
  50. }
  51. .info {
  52. max-width: 66.8125rem;
  53. margin: 0 auto;
  54. font-size: 20px;
  55. .title {
  56. font-size: 1.875rem;
  57. line-height: 3.75rem;
  58. margin: 1.2rem 0;
  59. }
  60. .text {
  61. font-weight: 400;
  62. color: #6e6e6e;
  63. line-height: 2.125rem;
  64. font-size: 1.25rem;
  65. }
  66. }
  67. .show-case {
  68. max-width: 66.8125rem;
  69. height: 34.1875rem;
  70. background: var(--main-show-case-background);
  71. }
  72. }
  73. </style>