import { ref, computed, createElementBlock, openBlock, createElementVNode, toDisplayString } from "vue";
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
const _hoisted_1 = { class: "welcome-page" };
const _hoisted_2 = { class: "welcome-content" };
const _hoisted_3 = { class: "greeting-section" };
const _hoisted_4 = { class: "greeting" };
const _hoisted_5 = { class: "date" };
const _sfc_main = {
  __name: "WelcomeView",
  setup(__props) {
    const userName = ref("用户");
    const greeting = computed(() => {
      const hour = (/* @__PURE__ */ new Date()).getHours();
      if (hour < 12) return "上午好";
      if (hour < 18) return "下午好";
      return "晚上好";
    });
    const currentDate = computed(() => {
      const now = /* @__PURE__ */ new Date();
      const weekDays = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
      return `${now.getFullYear()}年${now.getMonth() + 1}月${now.getDate()}日 ${weekDays[now.getDay()]}`;
    });
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        _cache[0] || (_cache[0] = createElementVNode("div", { class: "bg-decoration" }, [
          createElementVNode("div", { class: "circle circle-1" }),
          createElementVNode("div", { class: "circle circle-2" })
        ], -1)),
        createElementVNode("div", _hoisted_2, [
          createElementVNode("div", _hoisted_3, [
            createElementVNode("h1", _hoisted_4, toDisplayString(greeting.value) + ", " + toDisplayString(userName.value), 1),
            createElementVNode("p", _hoisted_5, toDisplayString(currentDate.value), 1)
          ])
        ])
      ]);
    };
  }
};
const WelcomeView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d5cd7883"]]);
export {
  WelcomeView as default
};
