diff --git a/askeladd-dvm-marketplace/src/app/components/Navbar.tsx b/askeladd-dvm-marketplace/src/app/components/Navbar.tsx new file mode 100644 index 0000000..7fd10d1 --- /dev/null +++ b/askeladd-dvm-marketplace/src/app/components/Navbar.tsx @@ -0,0 +1,40 @@ +"use client"; + +import Link from 'next/link'; +import React, { useState } from 'react'; +const Navbar: React.FC = () => { + const [isOpen, setIsOpen] = useState(false); + return ( + + ); +}; + +export default Navbar; diff --git a/askeladd-dvm-marketplace/src/app/config-marketplace/page.tsx b/askeladd-dvm-marketplace/src/app/config-marketplace/page.tsx index c9ac42f..2d69a70 100644 --- a/askeladd-dvm-marketplace/src/app/config-marketplace/page.tsx +++ b/askeladd-dvm-marketplace/src/app/config-marketplace/page.tsx @@ -179,8 +179,7 @@ export default function Home() { {isLoading ? "PROCESSING..." : "CONNECT"} - {publicKey && publicKey != APPLICATION_PUBKEY_DVM ? -
+ {/*
@@ -190,9 +189,11 @@ export default function Home() {
-
+
*/} + + { - : publicKey && publicKey == APPLICATION_PUBKEY_DVM && + // : publicKey && publicKey == APPLICATION_PUBKEY_DVM &&

Askeladd DVM Marketplace

@@ -218,10 +219,10 @@ export default function Home() {

Selected event: {appKind}

@@ -241,16 +242,8 @@ export default function Home() {
} - - - - -
setOpenHowItWork(!openHowItWork)} - className="cursor-pointer my-5 p-5" + className="max-w-sm cursor-pointer my-5 p-1 m-1 whitespace-pre-line" >

How the ASKELADD DVM ZK works?

{!openHowItWork && @@ -260,22 +253,30 @@ export default function Home() { <>

As an User

-

User send a JOB_REQUEST with different params on the Nostr event:

-

You need theses params on the Nostr event:

+

User send a JOB_REQUEST with different params on the Nostr event.

It can change with all STWO Prover enabled on the Marketplace

+

You need theses params on the Nostr event:

+

Inputs

+

Request: {JSON.stringify({ "claim": "413300", - "log_size":"5" + "log_size": "5" })} " The input of the Program

-

Tags: {`["param", "input_name", "value"]`}

+

Tags: {`[ + ["param", "input_name", "value"] // The input of the Program + ]`}

}
-
+ +

Existing Config of DVM

Last config

{lastConfig && @@ -286,12 +287,9 @@ export default function Home() {

By Event KIND enabled on ASKELADD (WIP)

(5600, 6600 and more soon)

-

Admin config (WIP)

TODO

-

Others config

-
{events?.map((event, i) => { return ( diff --git a/askeladd-dvm-marketplace/src/app/layout.tsx b/askeladd-dvm-marketplace/src/app/layout.tsx index bcbd364..df88e56 100644 --- a/askeladd-dvm-marketplace/src/app/layout.tsx +++ b/askeladd-dvm-marketplace/src/app/layout.tsx @@ -1,6 +1,7 @@ -import { NostrProvider } from "@/context/NostrContext"; +import { NostrProvider } from "@/context/NostrContext"; import "./globals.css"; import { Inter } from "next/font/google"; +import Navbar from "./components/Navbar"; const inter = Inter({ subsets: ["latin"] }); @@ -17,8 +18,9 @@ export default function RootLayout({ return ( - {children} - + + + {children} );