From ab293585725ca26c8b7889d787ad6dea8470a366 Mon Sep 17 00:00:00 2001 From: LiAohua Date: Sat, 14 Oct 2023 12:07:46 +0800 Subject: [PATCH] update with page optimized --- packages/nextjs/components/Header.tsx | 14 ++--- packages/nextjs/pages/eth-space.tsx | 13 +++-- packages/nextjs/pages/index copy.tsx | 73 --------------------------- packages/nextjs/pages/index.tsx | 20 +++++--- 4 files changed, 29 insertions(+), 91 deletions(-) delete mode 100644 packages/nextjs/pages/index copy.tsx diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx index 6019f7f..abf8617 100644 --- a/packages/nextjs/components/Header.tsx +++ b/packages/nextjs/components/Header.tsx @@ -27,11 +27,11 @@ export const menuLinks: HeaderMenuLink[] = [ // href: "/example-ui", // icon: , // }, - { - label: "ETH-SPACE", - href: "/", - icon: , - }, + // { + // label: "ETH-SPACE", + // href: "/", + // icon: , + // }, // { // label: "Block Explorer", // href: "/blockexplorer", @@ -106,8 +106,8 @@ export const Header = () => { SE2 logo
- Scaffold-ETH - Ethereum dev stack + AI-based Smart Contract Explorer + Search Smart Contracts in smarter way
    diff --git a/packages/nextjs/pages/eth-space.tsx b/packages/nextjs/pages/eth-space.tsx index d9a9543..7869e58 100644 --- a/packages/nextjs/pages/eth-space.tsx +++ b/packages/nextjs/pages/eth-space.tsx @@ -20,7 +20,7 @@ const ETHSpace: NextPage = () => { //从后端获取数据集列表 const fetchOptions = () => { - return ['eth-whitepaper', 'eth-contracts']; + return ['eth-smart-contracts', 'eth-smart-contracts-sliced', "eth-smart-contracts-analysis"]; }; //获取search prompt与dataset名字后向后端发request const handleonClick =()=>{ @@ -50,6 +50,7 @@ const ETHSpace: NextPage = () => {
    { @@ -89,9 +90,13 @@ const ETHSpace: NextPage = () => { }}>Search
    - - A search question example: Give me the examples about struct. The "type" in metadata should be "struct". - +
    + +

    A search question example:

    +

    * Give me some function examples about NFT

    +

    * 0x73c7448760517E3E6e416b2c130E3c6dB2026A1d

    +
    +
    diff --git a/packages/nextjs/pages/index copy.tsx b/packages/nextjs/pages/index copy.tsx deleted file mode 100644 index 4cac710..0000000 --- a/packages/nextjs/pages/index copy.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import Link from "next/link"; -import type { NextPage } from "next"; -import { BugAntIcon, MagnifyingGlassIcon, SparklesIcon } from "@heroicons/react/24/outline"; -import { MetaHeader } from "~~/components/MetaHeader"; -//se-2原先的home界面留存 -const Home: NextPage = () => { - return ( - <> - -
    -
    -

    - Welcome to - Scaffold-ETH 2 -

    -

    - Get started by editing{" "} - - packages/nextjs/pages/index.tsx - -

    -

    - Edit your smart contract{" "} - - YourContract.sol - {" "} - in{" "} - - packages/hardhat/contracts - -

    -
    - -
    -
    -
    - -

    - Tinker with your smart contract using the{" "} - - Debug Contract - {" "} - tab. -

    -
    -
    - -

    - Experiment with{" "} - - Example UI - {" "} - to build your own UI. -

    -
    -
    - -

    - Explore your local transactions with the{" "} - - Block Explorer - {" "} - tab. -

    -
    -
    -
    -
    - - ); -}; - -export default Home; diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx index d9a9543..f1b7603 100644 --- a/packages/nextjs/pages/index.tsx +++ b/packages/nextjs/pages/index.tsx @@ -20,7 +20,7 @@ const ETHSpace: NextPage = () => { //从后端获取数据集列表 const fetchOptions = () => { - return ['eth-whitepaper', 'eth-contracts']; + return ['eth-smart-contracts', 'eth-smart-contracts-sliced', "eth-smart-contracts-analysis"]; }; //获取search prompt与dataset名字后向后端发request const handleonClick =()=>{ @@ -31,11 +31,12 @@ const ETHSpace: NextPage = () => {
    -

    ETH-SPACE

    -

    AI-based Smart Contract Explorer

    +

    AI-based Smart Contract Explorer

    +

    -- Smart Contract Search Platform based on AI

    + -- Let AI fully assist smart contract developers