Primer commit

This commit is contained in:
santiago
2025-06-18 18:11:39 -06:00
parent d2ac1a3576
commit 4a564c75e6
13 changed files with 402 additions and 158 deletions
+45
View File
@@ -0,0 +1,45 @@
* {
padding: none;
margin: none;
}
.icon-circle {
position: relative;
width: 300px;
height: 300px;
margin: 2rem auto;
border-radius: 50%;
}
.central-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2rem;
background: white;
padding: 1rem;
border-radius: 50%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
z-index: 1;
}
.floating-icon {
position: absolute;
width: 40px;
height: 40px;
background: white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
top: 50%;
left: 50%;
transform: rotate(calc(45deg * var(--i))) translate(130px) rotate(calc(-45deg * var(--i)));
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
.floating-icon i {
font-size: 1.25rem;
color: #7c3aed; /* Morado como el diseño */
}
+60
View File
@@ -0,0 +1,60 @@
// IconCircle.tsx
'use client';
import React from 'react';
import { motion } from 'framer-motion';
import './IconCircle.css';
const iconClasses = [
'bi bi-graph-up',
'bi bi-lightning-fill',
'bi bi-currency-exchange',
'bi bi-globe2',
'bi bi-bar-chart-line-fill',
'bi bi-arrow-left-right',
'bi bi-bank',
'bi bi-boxes',
];
interface IconCircleProps {
delay?: number;
}
const IconCircle: React.FC<IconCircleProps> = ({ delay = 0 }) => {
return (
<div className="icon-circle">
<motion.div
className="central-icon"
initial={{ scale: 0 }}
animate={{ scale: 1, rotate: 1080 }}
transition={{ duration: 1, delay }}
>
<i className="bi bi-stars"></i>
</motion.div>
{iconClasses.map((iconClass, i) => (
<motion.div
key={i}
className="floating-icon"
initial={{
transform: 'translate(0, 0) scale(0)',
opacity: 0,
}}
animate={{
transform: `rotate(${i * 45}deg) translate(130px) rotate(-${i * 45}deg)`,
scale: 1,
opacity: 1,
}}
transition={{
delay: delay + 0.5 + i * 0.1, // empieza después del centro
duration: 0.5,
type: 'spring',
}}
>
<i className={iconClass}></i>
</motion.div>
))}
</div>
);
};
export default IconCircle;
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

+136 -15
View File
@@ -1,21 +1,142 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--background: #ffffff;
--foreground: #171717;
* {
padding: none;
margin: none;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
/* Fondo general y tipografía */
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background: radial-gradient(circle at center, #f8f4ff, #e3d6ff);
color: #1a1a1a;
text-align: center;
}
/* Header */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 2rem;
background: transparent;
font-weight: bold;
}
header div:first-child {
font-size: 1.5rem;
color: #5b2edd;
}
.nav-links {
background-color: white;
padding: 10px;
border-radius: 50px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* sombra suave */
display: flex;
gap: 1rem; /* espacio entre los <a> */
}
header a {
margin: 0 0.75rem;
text-decoration: none;
color: #333;
font-weight: 500;
}
header button {
margin-left: 0.5rem;
padding: 0.4rem 1rem;
border-radius: 20px;
border: none;
font-weight: 600;
cursor: pointer;
}
header button:first-of-type {
background-color: white;
border: 1px solid #ccc;
color: #555;
}
header button:last-of-type {
background-color: #5b2edd;
color: white;
}
/* Texto principal */
strong {
display: block;
font-size: 2.5rem;
margin: 2rem 0 1rem;
}
p {
font-size: 1rem;
color: #555;
max-width: 600px;
margin: 0 auto 1rem;
}
/* Botón principal */
div > button {
margin-top: 1rem;
background-color: #5b2edd;
color: white;
padding: 0.7rem 2rem;
border: none;
border-radius: 25px;
font-size: 1rem;
cursor: pointer;
}
/* Texto de "years of reliability" */
div > div {
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
margin-top: 0.5rem;
}
div > div p {
margin: 0;
font-size: 0.9rem;
color: #888;
}
/* Scroll hint */
body > p:last-of-type {
margin-top: 2rem;
font-size: 0.85rem;
color: #aaa;
letter-spacing: 1px;
}
.circle-background {
position: fixed;
top: none;
left: none;
width: 100vw;
height: 100vh;
z-index: -1; /* para que esté detrás de todo */
pointer-events: none; /* no interfiere con el contenido */
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
.circle {
position: absolute;
background: radial-gradient(circle, rgb(255, 255, 255), transparent);
border-radius: 50%;
pointer-events: none;
backdrop-filter: blur(2px);
}
+10 -31
View File
@@ -1,34 +1,13 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { FC, PropsWithChildren } from "react";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
const RootLayout: FC<PropsWithChildren> = ({children}) => {
return (
<html>
<body>
{children}
</body>
</html>
);
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
</body>
</html>
);
}
export default RootLayout;
+79 -97
View File
@@ -1,101 +1,83 @@
import Image from "next/image";
'use client';
export default function Home() {
return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
<li className="mb-2">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
app/page.tsx
</code>
.
</li>
<li>Save and see your changes instantly.</li>
</ol>
import './globals.css';
import 'bootstrap-icons/font/bootstrap-icons.css';
import IconCircle from './IconCircle';
import { motion } from 'framer-motion';
<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
const Home = () => {
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 1 }}
className="page-wrapper"
>
<div className="circle-background">
{[150, 300, 450, 600].map((size, i) => (
<motion.div
key={i}
className="circle"
initial={{ scale: 0 }}
animate={{ scale: 3 }}
transition={{
delay: 1 + i * 0.3, // empieza después de la animación del texto
duration: 2,
ease: 'easeOut',
}}
style={{
width: size,
height: size,
}}
/>
))}
</div>
</main>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org
</a>
</footer>
</div>
{/* ⬇️ Tu contenido principal */}
<motion.header
initial={{ x: -100, opacity: 0 }}
animate={{ x: 0, opacity: 1 }}
transition={{ duration: 1.5, ease: 'easeOut' }}
>
<div className="first-child">Alchemy Markets</div>
<div className="nav-links">
<a href="">Trading</a>
<a href="">Platforms</a>
<a href="">Tools & Education</a>
<a href="">About Us</a>
<a href="">Partners</a>
</div>
<div className="first-child">
<button className="first-of-type">Log in</button>
<button className="first-of-type">Sign up</button>
</div>
</motion.header>
<motion.main
initial={{ y: 50, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
transition={{ delay: 1, duration: 1 }}
>
<IconCircle delay={2} />
<strong>Explore markets ready for trading</strong>
<p>
Explore 300+ trading instruments across 10+ asset classes with Alchemy Markets. Trade Forex, Stocks, Indices, and more!
</p>
<div>
<button>Start Trading</button>
<div>
<i></i>
<p>Years of reliability</p>
</div>
</div>
<p>SCROLL TO EXPLORE</p>
</motion.main>
</motion.div>
);
}
};
export default Home;
+63 -3
View File
@@ -8,9 +8,11 @@
"name": "frame-motion",
"version": "0.1.0",
"dependencies": {
"next": "15.1.8",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"bootstrap-icons": "^1.13.1",
"framer-motion": "^12.12.2",
"next": "^15.1.8",
"react": "^19.1.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
@@ -1848,6 +1850,22 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/bootstrap-icons": {
"version": "1.13.1",
"resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.13.1.tgz",
"integrity": "sha512-ijombt4v6bv5CLeXvRWKy7CuM3TRTuPEuGaGKvTV5cz65rQSY8RQ2JcHt6b90cBBAC7s8fsf2EkQDldzCoXUjw==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/twbs"
},
{
"type": "opencollective",
"url": "https://opencollective.com/bootstrap"
}
],
"license": "MIT"
},
"node_modules/brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
@@ -3090,6 +3108,33 @@
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/framer-motion": {
"version": "12.12.2",
"resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.12.2.tgz",
"integrity": "sha512-qCszZCiGWkilL40E3VuhIJJC/CS3SIBl2IHyGK8FU30nOUhTmhBNWPrNFyozAWH/bXxwzi19vJHIGVdALF0LCg==",
"license": "MIT",
"dependencies": {
"motion-dom": "^12.12.1",
"motion-utils": "^12.12.1",
"tslib": "^2.4.0"
},
"peerDependencies": {
"@emotion/is-prop-valid": "*",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@emotion/is-prop-valid": {
"optional": true
},
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
}
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
@@ -4192,6 +4237,21 @@
"node": ">=16 || 14 >=14.17"
}
},
"node_modules/motion-dom": {
"version": "12.12.1",
"resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.12.1.tgz",
"integrity": "sha512-GXq/uUbZBEiFFE+K1Z/sxdPdadMdfJ/jmBALDfIuHGi0NmtealLOfH9FqT+6aNPgVx8ilq0DtYmyQlo6Uj9LKQ==",
"license": "MIT",
"dependencies": {
"motion-utils": "^12.12.1"
}
},
"node_modules/motion-utils": {
"version": "12.12.1",
"resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.12.1.tgz",
"integrity": "sha512-f9qiqUHm7hWSLlNW8gS9pisnsN7CRFRD58vNjptKdsqFLpkVnX00TNeD6Q0d27V9KzT7ySFyK1TZ/DShfVOv6w==",
"license": "MIT"
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+9 -7
View File
@@ -9,19 +9,21 @@
"lint": "next lint"
},
"dependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0",
"next": "15.1.8"
"bootstrap-icons": "^1.13.1",
"framer-motion": "^12.12.2",
"next": "^15.1.8",
"react": "^19.1.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"typescript": "^5",
"@eslint/eslintrc": "^3",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^9",
"eslint-config-next": "15.1.8",
"@eslint/eslintrc": "^3"
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
-1
View File
@@ -1 +0,0 @@
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>

Before

Width:  |  Height:  |  Size: 391 B

-1
View File
@@ -1 +0,0 @@
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

-1
View File
@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.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@ -1 +0,0 @@
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>

Before

Width:  |  Height:  |  Size: 128 B

-1
View File
@@ -1 +0,0 @@
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>

Before

Width:  |  Height:  |  Size: 385 B