解决已知问题

This commit is contained in:
宇阳
2024-10-15 13:31:34 +08:00
parent 2b9133d517
commit 24d4dd2361
5 changed files with 25 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
.CopyrightComponent {
}

View File

@@ -1,15 +1,12 @@
import { getUserDataAPI } from "@/api/user";
import "./index.scss"
const Copyright = async () => {
const { data } = await getUserDataAPI()
return (
<div className="CopyrightComponent">
<div className="p-3 space-y-2 border-l-[3px] border-primary bg-[#ecf7fe] rounded-md text-sm text-black-b">
<p>{data?.name}</p>
<p> {data?.name} !</p>
</div>
<div className="p-3 space-y-2 border-l-[3px] border-primary bg-[#ecf7fe] rounded-md text-sm text-black-b">
<p>{data?.name}</p>
<p> {data?.name} !</p>
</div>
);
};

View File

@@ -2,5 +2,4 @@
padding: 0px;
margin: 0px;
width: 100%;
height: 100vh;
}

View File

@@ -76,6 +76,12 @@ export default () => {
<ModalHeader className="flex flex-col gap-1"></ModalHeader>
<ModalBody>
<div className="mx-auto mb-4 p-3 space-y-2 border-l-[3px] border-primary bg-[#ecf7fe] rounded-md text-sm text-black-b">
<p>1</p>
<p>210</p>
<p>3 80% ()</p>
</div>
<Controller
name="title"
control={control}

View File

@@ -1,23 +1,25 @@
import Link from "next/link";
import { Metadata } from "next";
import { getWebDataAPI } from "@/api/project";
import { getWebListAPI, getWebTypeListAPI } from '@/api/web'
import { Web } from "@/types/app/web";
import Swiper from "@/components/Swiper";
import Starry from "@/components/Starry";
import ApplyForAdd from "./components/ApplyForAdd";
import { ToastContainer } from "react-toastify";
export const metadata: Metadata = {
title: "朋友圈",
description: "Generated by create next app",
title: "朋友圈"
};
export default async () => {
const { data: web } = await getWebDataAPI();
const { data: linkList } = await getWebListAPI()
const { data: typeList } = await getWebTypeListAPI()
let data: { [string: string]: { order: number, list: Web[] } } = {}
// 给每个数据进行分组处理
@@ -52,6 +54,17 @@ export default async () => {
</Swiper>
<div className="relative -top-20 xs:-top-20 sm:-top-32 md:-top-36 w-[90%] xl:w-[1200px] p-10 pt-2 mx-auto bg-white dark:bg-black-b border dark:border-black-b rounded-2xl space-y-8 transition-colors">
<div>
<h3 className="w-full text-center text-xl p-4 dark:text-white transition-colors"></h3>
<div className="mx-auto p-3 space-y-2 border-l-[3px] border-primary bg-[#ecf7fe] rounded-md text-sm text-black-b">
<p>{web.title}</p>
<p>{web.description}</p>
<p>{web.favicon}</p>
<p>{web.url}</p>
</div>
</div>
{
Object.keys(data)?.map((type, index) => (
<div key={index}>