quick first sketch of landing page

This commit is contained in:
mfahampshire
2024-09-05 16:03:46 +02:00
parent 2f4e74d180
commit d46c51a966
3 changed files with 94 additions and 1 deletions
@@ -0,0 +1,90 @@
import React from "react";
import { Ghost, Zap, Code, Soup } from "lucide-react";
export const LandingPage = () => {
const squares = [
{ text: "Network Docs", href: "/network", Icon: Ghost },
{
text: "Developers: Core Concepts, Integration Overview, Tools & Tutorials",
href: "/developers",
Icon: Zap,
},
{ text: "SDKs", href: "/sdk", Icon: Code },
{
text: "Operators: Setup Guides & Maintenance",
href: "/operators",
Icon: Soup,
},
];
return (
<div className="landing-page-container">
<p className="landing-page-intro">
Nym is a privacy platform. It provides strong network-level privacy
against sophisticated end-to-end attackers, and anonymous access control
using blinded, re-randomizable, decentralized credentials. Our goal is
to allow developers to build new applications, or upgrade existing apps,
with privacy features unavailable in other systems.
</p>
<div className="landing-page-grid">
{squares.map((square, index) => (
<a key={index} href={square.href} className="landing-page-square">
<square.Icon className="landing-page-icon" />
<span className="landing-page-text">{square.text}</span>
</a>
))}
</div>
<style jsx>{`
.landing-page-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1rem;
}
.landing-page-intro {
font-size: 1.125rem;
margin-bottom: 2rem;
}
.landing-page-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
max-width: 36rem;
margin: 0 auto;
}
.landing-page-square {
background-color: #000000;
color: white;
padding: 1rem;
border-radius: 0.5rem;
text-align: center;
cursor: pointer;
text-decoration: none;
transition: box-shadow 0.3s ease;
aspect-ratio: 1 / 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 3px solid #ff6600;
box-shadow: 0 0 10px #ff6600;
}
.landing-page-square:hover {
box-shadow: 0 0 20px #ff6600;
}
.landing-page-icon {
width: 12.5rem;
height: 12.5rem;
margin-bottom: 0.75rem;
color: #ff6600;
}
.landing-page-text {
font-size: 0.875rem;
font-weight: 600;
color: #ff6600;
}
`}</style>
</div>
);
};
+1
View File
@@ -34,6 +34,7 @@
"@nymproject/sdk-full-fat": ">=1.2.4-rc.2 || ^1",
"chain-registry": "^1.19.0",
"cosmjs-types": "^0.9.0",
"lucide-react": "^0.438.0",
"next": "^13.4.19",
"nextra": "latest",
"nextra-theme-docs": "latest",
+3 -1
View File
@@ -1 +1,3 @@
This should be the landing page with w/ever nav we want
import { LandingPage } from '../components/landing-page.tsx'
<LandingPage />