From 2350590a2236916dba68d2e9eccdebd0cabf3911 Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Mon, 27 Mar 2023 14:20:19 +0700 Subject: [PATCH] updated onboarding page --- src/App.css | 9 ++++ src/pages/onboarding/index.tsx | 99 +++++++++++++++++++++++++++++++++- tailwind.config.js | 1 + 3 files changed, 108 insertions(+), 1 deletion(-) diff --git a/src/App.css b/src/App.css index e9b61ab7..cd22b419 100644 --- a/src/App.css +++ b/src/App.css @@ -30,3 +30,12 @@ .border { background-clip: padding-box; } + +@keyframes loop { + 0% { + transform: translateX(0); + } + 100% { + transform: translateX(-50%); + } +} diff --git a/src/pages/onboarding/index.tsx b/src/pages/onboarding/index.tsx index a32867d1..1672d1d6 100644 --- a/src/pages/onboarding/index.tsx +++ b/src/pages/onboarding/index.tsx @@ -1,13 +1,110 @@ import BaseLayout from '@layouts/base'; import { ArrowRightIcon } from '@radix-ui/react-icons'; +import Image from 'next/image'; import Link from 'next/link'; import { JSXElementConstructor, ReactElement, ReactFragment, ReactPortal } from 'react'; +const PLEBS = [ + 'https://133332.xyz/p.jpg', + 'https://void.cat/d/3Bp6jSHURFNQ9u3pK8nwtq.webp', + 'https://i.imgur.com/f8SyhRL.jpg', + 'http://nostr.build/i/6369.jpg', + 'https://pbs.twimg.com/profile_images/1622010345589190656/mAPqsmtz_400x400.jpg', + 'https://media.tenor.com/l5arkXy9RfIAAAAd/thunder.gif', + 'https://nostr.build/i/p/nostr.build_0e412058980ed2ac4adf3de639304c9e970e2745ba9ca19c75f984f4f6da4971.jpeg', + 'https://nostr.build/i/nostr.build_864a019a6c1d3a90a17363553d32b71de618d250f02cf0a59ca19fb3029fd5bc.jpg', + 'https://void.cat/d/8zE9T8a39YfUVjrLM4xcpE.webp', + 'https://avatars.githubusercontent.com/u/89577423', + 'https://pbs.twimg.com/profile_images/1363180486080663554/iN-r_BiM_400x400.jpg', + 'https://void.cat/d/JUBBqXgCcGBEh7jUgJaayy', + 'https://phase1.attract-eu.com/wp-content/uploads/2020/03/ATTRACT_HPLM.png', + 'https://www.retro-synthwave.com/wp-content/uploads/2017/01/PowerGlove-23.jpg', + 'https://void.cat/d/KvAEMvYNmy1rfCH6a7HZzh.webp', + 'https://media.giphy.com/media/NqfMNCkyGwtXhKFlCR/giphy-downsized-large.gif', + 'https://i.imgur.com/VGpUNFS.jpg', + 'https://nostr.build/i/p/nostr.build_b39254db43d5557df99d1eb516f1c2f56a21a01b10c248f6eb66aa827c9a90f4.jpeg', + 'https://davidcoen.it/wp-content/uploads/2020/11/7004972-taglio.jpg', + 'https://pbs.twimg.com/profile_images/1570432066348515330/26PtCuwF_400x400.jpg', + 'https://nostr.build/i/nostr.build_9d33ee801aa08955be174554832952ab95a65d5e015176834c8aa9a4e2f2e3a5.jpg', + 'https://www.linkpicture.com/q/0FE78CFF-C931-4568-A7AA-DD8AEE889992.jpeg', + 'https://nostr.build/i/nostr.build_97d6e2d25dd92422eb3d6d645b7cee9ed9c614f331be7e6f7db9ccfdbc5ee260.png', + 'https://pbs.twimg.com/profile_images/1569570198348337152/-n1KD74u_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1600149653898596354/5PVe-r-J_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1639659216372658178/Dnn-Ysp-_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1554429112978120706/yr1hXl6R_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1615478486688272385/q2ECeZDX_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1638644441773748226/tNsA6RpG_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1607882836740120576/3Tg1mTYJ_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1401907430339002369/WKrP9Esn_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1523971278478131200/TMPzfvhE_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1626421539884204032/aj4tmzsk_400x400.png', + 'https://pbs.twimg.com/profile_images/1582771691779985408/C9MHYIgt_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1409612480465276931/38Vyx4e8_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1549826566787588098/MlduJCZO_400x400.jpg', + 'https://pbs.twimg.com/profile_images/539211568035004416/sBMjPR9q_400x400.jpeg', + 'https://pbs.twimg.com/profile_images/1548660003522887682/1QMHmles_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1362497143999787013/KLUoN1Vn_400x400.png', + 'https://pbs.twimg.com/profile_images/1600434913240563713/AssmMGwf_400x400.jpg', +]; + +const DURATION = 50000; +const ROWS = 7; +const PLEBS_PER_ROW = 20; + +const random = (min, max) => Math.floor(Math.random() * (max - min)) + min; +const shuffle = (arr) => [...arr].sort(() => 0.5 - Math.random()); + +const InfiniteLoopSlider = ({ children, duration, reverse }: { children: any; duration: any; reverse: any }) => { + return ( +
+
+ {children} + {children} +
+
+ ); +}; + export default function Page() { return (
-
+
+
+ {[...new Array(ROWS)].map((_, i) => ( + + {shuffle(PLEBS) + .slice(0, PLEBS_PER_ROW) + .map((tag) => ( +
+ {tag} +
+ ))} +
+ ))} +
+
+

Let's start! diff --git a/tailwind.config.js b/tailwind.config.js index d707e092..06650824 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -35,6 +35,7 @@ module.exports = { }, backgroundImage: { 'gradient-conic': 'conic-gradient(var(--tw-gradient-stops))', + fade: 'linear-gradient(120deg, #000, transparent 30%, transparent 70%, #000)', }, keyframes: { disco: {