diff --git a/src/components/DnD.vue b/src/components/DnD.vue new file mode 100644 index 0000000..e710f0c --- /dev/null +++ b/src/components/DnD.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/src/components/SiteSettings.vue b/src/components/SiteSettings.vue index e00a0d7..c493f05 100644 --- a/src/components/SiteSettings.vue +++ b/src/components/SiteSettings.vue @@ -52,7 +52,16 @@ :items="templates" @change="(item) => (activeTemplateName = item.name)" :active-name="activeTemplateName" - /> + > + + diff --git a/src/components/Switcher.vue b/src/components/Switcher.vue index d2a6f45..0fdf6e1 100644 --- a/src/components/Switcher.vue +++ b/src/components/Switcher.vue @@ -7,6 +7,7 @@ > {{ item.name }} + diff --git a/src/router/index.ts b/src/router/index.ts index dc1267e..dd1c944 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,6 +1,6 @@ import { createRouter, createWebHistory } from "vue-router"; import Landing from "../views/Landing.vue"; -import { mintCollection, myDomains } from "./routes"; +import { addTemplate, mintCollection, myDomains } from "./routes"; /* /find - bar + table @@ -79,11 +79,17 @@ const router = createRouter({ props: true, }, { - path: "/mint-collection", + path: "/mint-collection/:domain", name: mintCollection, component: () => import("../views/MintCollection.vue"), props: true, }, + { + path: "/add-template/:domain", + name: addTemplate, + component: () => import("../views/AddTemplate.vue"), + props: true, + }, ], }); diff --git a/src/router/routes.ts b/src/router/routes.ts index 658de0d..3ceca6c 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -1,2 +1,3 @@ export const myDomains = "my-domains"; export const mintCollection = "mint-collection"; +export const addTemplate = "add-template"; diff --git a/src/views/AddTemplate.vue b/src/views/AddTemplate.vue new file mode 100644 index 0000000..32f28bf --- /dev/null +++ b/src/views/AddTemplate.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/src/views/Explore.vue b/src/views/Explore.vue index a510cda..864b575 100644 --- a/src/views/Explore.vue +++ b/src/views/Explore.vue @@ -35,10 +35,12 @@ is owned by
you
- View nft - - Mint a subdomain collection - +
+ View nft + + Mint a subdomain collection + +

@@ -293,9 +295,11 @@ export default { }); }, updSettingsComponent() { - this.$refs.site_settings.set_site_rec(this.site_rec); - this.$refs.site_settings.saved_constructor_params = - this.saved_constructor_params; + if (this.$refs.site_settings) { + this.$refs.site_settings.set_site_rec(this.site_rec); + this.$refs.site_settings.saved_constructor_params = + this.saved_constructor_params; + } }, }, watch: { @@ -389,4 +393,29 @@ export default { .wallet-record-field { font-family: "Inconsolata", monospace; } + +.button { + border: 0; + border-radius: 0.5rem; + height: 3rem; + background-color: #e36464; + display: flex; + justify-content: center; + align-items: center; + place-items: center; + color: #363e5e; + font-size: 1.3rem; + font-weight: 500; + padding: 0 1rem; + cursor: pointer; + margin-left: 1rem; + margin-top: 1rem; + margin-bottom: 1rem; +} + +.buttons { + display: flex; + align-items: center; + justify-content: center; +} diff --git a/src/views/MintCollection.vue b/src/views/MintCollection.vue index 4cb5122..ead09b6 100644 --- a/src/views/MintCollection.vue +++ b/src/views/MintCollection.vue @@ -30,7 +30,7 @@ }}).
Any users also will be able to buy domains from this collection.

- +