fix: update home page background image and remove unnecessary redirect code chore: update pnpm lock file with new dependencies for auto-animate and svg spinners delete: remove unused images from public directory refactor: modify course and user types for better clarity and structure feat: implement course API with CRUD operations and teacher team management feat: create user authentication page with login functionality and validation feat: add login state management with Pinia for user session handling style: create reusable UI components for cards and tabs chore: implement HTTP utility for API requests with error handling
26 lines
559 B
Vue
26 lines
559 B
Vue
<script lang="ts" setup>
|
|
defineProps<{
|
|
icon?: string;
|
|
title?: string;
|
|
description?: string;
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="py-12 flex flex-col items-center justify-center gap-6 rounded-md bg-muted text-muted-foreground"
|
|
>
|
|
<Icon v-if="icon" :name="icon" size="48px" />
|
|
<div class="flex flex-col items-center gap-2">
|
|
<p class="text-base">{{ title }}</p>
|
|
<slot>
|
|
<p class="text-sm">
|
|
{{ description || "没有数据" }}
|
|
</p>
|
|
</slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped></style>
|