@@ -4,6 +4,8 @@ import CryptoMapBanner from '~/components/Banners/CryptoMapBanner.vue'
44import NimiqPayBanner from ' ~/components/Banners/NimiqPayBanner.vue'
55
66const swap = ref (false );
7+ const widgetRef = ref <HTMLElement | null >(null );
8+
79useSeoMeta ({
810 title: ' Buy and Sell Crypto - Cryptocity' ,
911 description: ' Buy and sell NIM, Bitcoin, USDC, and USDT with Euro, USD, CHF, and more on Cryptocity.' ,
@@ -17,6 +19,11 @@ defineOgImageComponent('NuxtSeo', {
1719const handleRedirect = () => {
1820 window .open (' https://wallet.nimiq.com/' , ' _blank' )
1921}
22+
23+ const scrollToWidget = () => {
24+ widgetRef .value ?.scrollIntoView ({ behavior: ' smooth' , block: ' center' });
25+ };
26+
2027 </script >
2128
2229<template >
@@ -31,27 +38,33 @@ const handleRedirect = () => {
3138 <!-- Component 1: Title & Text (Mobile Order 1) -->
3239 <div class =" space-y-1 mb-3 order-1 md:order-none text-center md:text-left " >
3340 <h1 class =" pb-6 text-5xl/16 max-w-full md:max-w-[398px] text-wrap text-neutral px-4 md:px-0" >
34- Buy and Sell Crypto
41+ {{ !swap?' Buy and Sell Crypto' :'Swap Your Crypto' }}
3542 </h1 >
3643 <h3
3744 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" >
38- Buy and Sell NIM with
39- Euro, USD, CHF, and more!
45+
46+ {{ !swap ? 'Buy and Sell NIM with Euro, USD, CHF, and more!' : 'Swap Your Crypto, Swap 5520+ cryptos to NIM and back!' }}
4047 </h3 >
41- <div class =" pb-20" >
48+ <div class =" pb-20" @click = " scrollToWidget " >
4249 <SliderToggle v-model =" swap" />
4350 </div >
4451 </div >
4552
4653 <div
47- 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" @click = " handleRedirect " >
54+ 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" >
4855 <div class =" col-span-1" >
49- <p class =" text-netural mb-2 max-w-[165px]" >
50- {{ !swap ? ' Get your self-hosted wallet in 30 sec!' : 'Swap Your Crypto, Swap 5520+ cryptos to NIM and back!' }}
56+ <p class =" text-netural mb-3 max-w-[165px]" >
57+ Get your self-hosted wallet in 30 sec!
5158 </p >
52- <NuxtLink to =" https://wallet.nimiq.com/" target =" _blank" rel =" noopener noreferrer" class =" text-blue" >
59+
60+ <NuxtLink to =" https://wallet.nimiq.com/" target =" _blank" rel =" noopener noreferrer" class =" text-blue crypto-map-desktop" >
5361 Create
5462 </NuxtLink >
63+
64+ <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" >
65+ <span >Create</span >
66+ <div class =" i-lucide-arrow-right text-lg" ></div >
67+ </button >
5568 </div >
5669
5770 <div class =" col-span-1 flex flex-col items-center justify-center pl-4" >
@@ -76,18 +89,22 @@ const handleRedirect = () => {
7689 </div >
7790
7891 <!-- Right Column: Widget (Mobile Order 2) -->
79- <div class =" flex justify-center order-2 md:col-span-1 md:order-none" >
92+ <div class =" flex justify-center order-2 md:col-span-1 md:order-none" ref = " widgetRef " >
8093 <CoinifyWidget v-if =" !swap" />
8194 <LetsexchangeWidget v-else />
8295 </div >
8396
8497 <!-- Component 3: Supported Currencies (Mobile Order 3 - At Bottom) -->
8598 <div
86- 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" @click =" handleRedirect" >
99+ 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] h-[126px] font-semibold cursor-pointer"
100+ @click =" handleRedirect" >
87101 <div class =" col-span-1" >
88- <p class =" text-netural mb-2 max-w-[165px] " > {{ !swap ? 'Get your self-hosted wallet in 30 sec!' : 'Swap Your Crypto, Swap 5520 + cryptos to NIM and back!' }}</p >
89- <!-- TODO: link from design is using gradiant blue -->
90- <NuxtLink to =" https://wallet.nimiq.com/" target =" _blank" rel =" noopener noreferrer" class =" text-blue" >Create
102+ <p class =" text-netural mb-3 max-w-[165px] " > Get your self-hosted wallet in 30 sec! </p >
103+
104+
105+
106+ <NuxtLink to =" https://wallet.nimiq.com/" target =" _blank" rel =" noopener noreferrer" class =" text-blue" >
107+ Create
91108 </NuxtLink >
92109
93110 </div >
@@ -97,8 +114,10 @@ const handleRedirect = () => {
97114 height =" 26" />
98115 <img class =" icon md:grayscale md:brightness-100 transition" src =" /bitcoin.svg" alt =" Bitcoin" width =" 26"
99116 height =" 26" />
100- <img class =" icon md:grayscale md:brightness-100 transition" src =" /usdc.svg" alt =" USDC" width =" 26" height =" 26" />
101- <img class =" icon md:grayscale md:brightness-100 transition" src =" /usdt.svg" alt =" USDT" width =" 26" height =" 26" />
117+ <img class =" icon md:grayscale md:brightness-100 transition" src =" /usdc.svg" alt =" USDC" width =" 26"
118+ height =" 26" />
119+ <img class =" icon md:grayscale md:brightness-100 transition" src =" /usdt.svg" alt =" USDT" width =" 26"
120+ height =" 26" />
102121 </div >
103122 <span class =" text-neutral uppercase text-[9px] font-bold tracking-widest pl-1" >Supported currencies</span >
104123
@@ -116,4 +135,20 @@ const handleRedirect = () => {
116135.hover-icons :hover .icon {
117136 filter : none ;
118137}
138+
139+ .hover-icons :hover button .crypto-map-desktop {
140+ display : none ;
141+ }
142+
143+ .hover-icons button .crypto-map-desktop {
144+ display : flex ;
145+ }
146+
147+ .hover-icons :hover a .crypto-map-desktop {
148+ display : block ;
149+ }
150+
151+ .hover-icons a .crypto-map-desktop {
152+ display : none ;
153+ }
119154 </style >
0 commit comments