App.vue 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <script setup>
  2. </script>
  3. <template>
  4. <div id="app">
  5. <main class="app-main">
  6. <router-view />
  7. </main>
  8. </div>
  9. </template>
  10. <style scoped>
  11. .app-header {
  12. display: flex;
  13. align-items: center;
  14. gap: 12px;
  15. height: 56px;
  16. padding: 0 16px;
  17. background: #2e7d32;
  18. color: #fff;
  19. position: sticky;
  20. top: 0;
  21. z-index: 100;
  22. }
  23. .back-btn {
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. width: 48px;
  28. height: 48px;
  29. background: rgba(255, 255, 255, 0.1);
  30. color: #fff;
  31. border-radius: 50%;
  32. margin-right: 4px;
  33. }
  34. .back-btn:hover {
  35. background: rgba(255, 255, 255, 0.2);
  36. }
  37. .brand {
  38. font-weight: 600;
  39. font-size: 18px;
  40. }
  41. .title {
  42. font-size: 16px;
  43. opacity: 0.9;
  44. }
  45. .app-main {
  46. flex: 1;
  47. width: 100%;
  48. max-width: 1200px;
  49. margin: 0 auto;
  50. }
  51. @media (max-width: 768px) {
  52. .app-main {
  53. padding: 12px;
  54. }
  55. .brand {
  56. font-size: 16px;
  57. }
  58. .title {
  59. font-size: 14px;
  60. }
  61. }
  62. </style>