Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/styles/globals.css
  • Loading branch information
Wade-1080 committed Apr 4, 2024
2 parents 14f5991 + 0ed43d7 commit 09dbf4a
Show file tree
Hide file tree
Showing 35 changed files with 633 additions and 48 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Sync to Remote Repository

on:
push:
branches:
- main # 或者你的默认分支名称

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v2

- name: Push to remote repository
uses: ad-m/github-push-action@master # 把 `main` 改成 `master` 或具体的版本号
with:
github_token: ${{ secrets.GIT_TOKEN }}
github_url: ${{ secrets.GIT_REPO_URL}}
repository: yonote # 你的远程仓库URL
branch: main
force: true # 使用 "true" 强制推送(当你想要你的变化覆盖远程仓库时)
tags: true # 也推送tags
Binary file added public/images/dialog/Close-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/dialog/check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/dialog/haibao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/dialog/link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/dialog/pay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/nav/book.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/images/nav/book_active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/images/nav/find.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/images/nav/find_active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/images/nav/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/images/nav/user_active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/subscribe/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/images/subscribe/like.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/images/subscribe/manage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/subscribe/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/subscribe/see.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/subscribe/user1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/subscribe/user2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions public/images/subscribe/vip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/wallet/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/wallet/detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 0 additions & 28 deletions src/app/_components/common/Navbar.jsx

This file was deleted.

42 changes: 42 additions & 0 deletions src/app/_components/common/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"use client";
'use strict';
import React from 'react';
import Link from 'next/link';

const Navbar = () => {
const [currentNaver, setCurrentNaver] = React.useState<number>(1);
const Page1 = () => {
const [c, setC] = React.useState<undefined>(undefined);
return (
<div>
1
</div>)
};
const Page2 = () => {
const [c, setC] = React.useState<undefined>(undefined);
return (
<div>
2
</div>)
};
return (
<nav className='flex justify-center'>
<div className='flex flex-row justify-center w-61.25 h-13 text-center text-2.5 bg-[#FFF] border-rd-13 shadow-[0px_1px_4px_2px_rgba(0,0,0,0.05)] overflow-hidden'>
<Link href="find" className='flex-1 text-[#b5b5b5] font-500 mt-1 '>
<img src={"/images/nav/find.svg"} alt={"find"} className='m-auto w-6 h-6'></img>
<div className='lh-5.5'>发现</div>
</Link>
<Link href="subscribe" className='flex-1 text-[#b5b5b5] font-500 mt-1'>
<img src={"/images/nav/book.svg"} alt={"subscribe"} className='m-auto w-6 h-6'></img>
<div className='lh-5.5'>订阅</div>
</Link>
<Link href="user" className='flex-1 text-[#b5b5b5] font-500 mt-1 '>
<img src={"/images/nav/user.svg"} alt={"use"} className='m-auto w-6 h-6'></img>
<div className='lh-5.5'>我的</div>
</Link>
</div>
</nav>
);
};

export default Navbar;
33 changes: 33 additions & 0 deletions src/app/_components/dialog/dialog.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react'; // 引入 React

// 定义 GeneralModal 组件,接收 isOpen 和 children 作为 props
const GeneralModal = ({ isOpen, onClick, children }: { isOpen: boolean, onClick: () => void | null, children: React.ReactNode }) => {
// 如果 isOpen 是 false,则不显示模态框,直接返回 null
if (!isOpen) {
return null;
}

// 定义 modalClass 函数,返回模态框的样式类名字符串
const modalClass = (): string => {
// 返回样式类名字符串
return "w-80 h-80";
}

// 渲染模态框
return (
<div className="fixed top-0 left-0 w-full h-full flex justify-center items-center bg-white z-101">
{/* 模态框 */}
<div className={"rounded-3px border border-gray-300 shadow-md relative " + modalClass()}>
{/* 返回按钮 */}

{/* 模态框的内容 */}
{children}
<div className='w-15 shrink-0 b-1 border-black flex mt-100% ml-80% border-rd-10 justify-center'>
<button onClick={onClick} className='text-4'>返回</button>
</div>
</div>
</div>
);
};

export default GeneralModal; // 导出 GeneralModal 组件
Loading

0 comments on commit 09dbf4a

Please sign in to comment.