@@ -3,6 +3,8 @@ import CryptoMapBanner from '~/components/Banners/CryptoMapBanner.vue'
33import NimiqPayBanner from ' ~/components/Banners/NimiqPayBanner.vue'
44
55const swap = ref (false )
6+ const widgetRef = ref <HTMLElement | null >(null )
7+
68useSeoMeta ({
79 title: ' Buy and Sell Crypto - Cryptocity' ,
810 description: ' Buy and sell NIM, Bitcoin, USDC, and USDT with Euro, USD, CHF, and more on Cryptocity.' ,
@@ -12,6 +14,14 @@ defineOgImageComponent('NuxtSeo', {
1214 description: ' Buy and sell NIM, Bitcoin, USDC, and USDT with Euro, USD, CHF, and more on Cryptocity.' ,
1315 colorMode: ' light' ,
1416})
17+
18+ function handleRedirect() {
19+ window .open (' https://wallet.nimiq.com/' , ' _blank' )
20+ }
21+
22+ function scrollToWidget() {
23+ widgetRef .value ?.scrollIntoView ({ behavior: ' smooth' , block: ' center' })
24+ }
1525 </script >
1626
1727<template >
@@ -24,30 +34,34 @@ defineOgImageComponent('NuxtSeo', {
2434 <!-- Component 1: Title & Text (Mobile Order 1) -->
2535 <div class =" space-y-1 mb-3 order-1 md:order-none text-center md:text-left " >
2636 <h1 class =" pb-6 text-5xl/16 max-w-full md:max-w-[398px] text-wrap text-neutral px-4 md:px-0" >
27- Buy and Sell Crypto
37+ {{ !swap ? ' Buy and Sell Crypto' : 'Swap Your Crypto' }}
2838 </h1 >
2939 <h3
3040 class =" pb-8 text-xl/8 max-w-full md:max-w-[248px] text-wrap font-semibold text-neutral opacity-60 px-4 md:px-0"
3141 >
32- Buy and Sell NIM with
33- Euro, USD, CHF, and more!
42+ {{ !swap ? 'Buy and Sell NIM with Euro, USD, CHF, and more!' : 'Swap Your Crypto, Swap 5520+ cryptos to NIM and back!' }}
3443 </h3 >
35- <div class =" pb-20" >
44+ <div class =" pb-20" @click = " scrollToWidget " >
3645 <SliderToggle v-model =" swap" />
3746 </div >
3847 </div >
3948
40- <NuxtLink
41- to =" https://wallet.nimiq.com" external target =" _blank"
42- class =" hover-icons grid grid-cols-2 border-2 border-gray-200 rounded-xl px-8 py-5 max-w-full md:max-w-[398px] font-semibold hidden md:flex cursor-pointer"
49+ <div
50+ class =" hover-icons grid grid-cols-2 border-2 border-gray-200 rounded-xl px-8 py-5 max-w-full md:max-w-[398px] h-[126px] font-semibold hidden md:flex cursor-pointer"
4351 >
4452 <div class =" col-span-1" >
45- <p class =" text-netural mb-2 max-w-[165px]" >
46- {{ !swap ? ' Get your self-hosted wallet in 30 sec!' : 'Swap Your Crypto, Swap 5520+ cryptos to NIM and back!' }}
53+ <p class =" text-netural mb-3 max-w-[165px]" >
54+ Get your self-hosted wallet in 30 sec!
4755 </p >
48- <NuxtLink to =" https://wallet.nimiq.com/" target =" _blank" rel =" noopener noreferrer" class =" text-blue" >
56+
57+ <NuxtLink to =" https://wallet.nimiq.com/" target =" _blank" rel =" noopener noreferrer" class =" text-blue crypto-map-desktop" >
4958 Create
5059 </NuxtLink >
60+
61+ <button class =" nq-pill-blue crypto-map-desktop px-3 py-1 text-md mx-auto md:mx-0 flex items-center gap-1 " @click =" handleRedirect" >
62+ <span >Create</span >
63+ <div class =" i-lucide-arrow-right text-lg" />
64+ </button >
5165 </div >
5266
5367 <div class =" col-span-1 flex flex-col items-center justify-center pl-4" >
@@ -73,17 +87,17 @@ defineOgImageComponent('NuxtSeo', {
7387 Supported currencies
7488 </span >
7589 </div >
76- </NuxtLink >
90+ </div >
7791 </div >
7892
7993 <!-- Right Column: Widget (Mobile Order 2) -->
80- <div class =" flex justify-center order-2 md:col-span-1 md:order-none" >
94+ <div ref = " widgetRef " class =" flex justify-center order-2 md:col-span-1 md:order-none" >
8195 <CoinifyWidget v-if =" !swap" />
8296 <LetsexchangeWidget v-else />
8397 </div >
8498
8599 <!-- Component 3: Supported Currencies (Mobile Order 3 - At Bottom) -->
86- <NuxtLink
100+ <div
87101 to =" https://wallet.nimiq.com" target =" _blank" external
88102 class =" hover-icons mt-[150px] mb-[200px] flex md:hidden grid grid-cols-2 border-2 border-gray-200 rounded-xl px-10 py-5 order-3 md:order-none max-w-full md:max-w-[398px] font-semibold cursor-pointer"
89103 >
@@ -111,7 +125,7 @@ defineOgImageComponent('NuxtSeo', {
111125 </div >
112126 <span class =" text-neutral uppercase text-[9px] font-bold tracking-widest pl-1" >Supported currencies</span >
113127 </div >
114- </NuxtLink >
128+ </div >
115129 </div >
116130 <CryptoMapBanner />
117131 <NimiqPayBanner />
@@ -123,4 +137,20 @@ defineOgImageComponent('NuxtSeo', {
123137.hover-icons :hover .icon {
124138 filter : none ;
125139}
140+
141+ .hover-icons :hover button .crypto-map-desktop {
142+ display : none ;
143+ }
144+
145+ .hover-icons button .crypto-map-desktop {
146+ display : flex ;
147+ }
148+
149+ .hover-icons :hover a .crypto-map-desktop {
150+ display : block ;
151+ }
152+
153+ .hover-icons a .crypto-map-desktop {
154+ display : none ;
155+ }
126156 </style >
0 commit comments