Initial commit
This commit is contained in:
1
.env.production
Normal file
1
.env.production
Normal file
@@ -0,0 +1 @@
|
||||
DISABLE_ESLINT_PLUGIN=true
|
||||
62
.gitea/workflows/build.yml
Normal file
62
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,62 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'Branch to build'
|
||||
required: true
|
||||
default: 'main'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ gitea.event.inputs.branch }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 24
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
set -euo pipefail
|
||||
npm install --no-audit --silent 2>&1 | tee install.log
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=4096'
|
||||
|
||||
- name: Build (react-scripts build)
|
||||
env:
|
||||
CI: 'false'
|
||||
NODE_OPTIONS: '--max-old-space-size=4096'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
npm run build 2>&1 | tee build.log
|
||||
timeout-minutes: 5
|
||||
|
||||
- name: Verify build folder exists
|
||||
run: test -d build || (echo "No build folder. Check build logs above."; exit 1)
|
||||
|
||||
- name: Upload logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build-logs
|
||||
path: |
|
||||
install.log
|
||||
build.log
|
||||
npm-debug.log*
|
||||
if-no-files-found: ignore
|
||||
|
||||
- name: Build completed
|
||||
if: success()
|
||||
run: echo "Build completed successfully"
|
||||
41
package.json
Normal file
41
package.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "nestjs-website",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-scripts": "^5.0.1",
|
||||
"lucide-react": "^0.400.0",
|
||||
"framer-motion": "^11.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tailwindcss": "^3.4.0",
|
||||
"postcss": "^8.4.0",
|
||||
"autoprefixer": "^10.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
||||
6
postcss.config.js
Normal file
6
postcss.config.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
||||
1238
public/index.html
Normal file
1238
public/index.html
Normal file
File diff suppressed because it is too large
Load Diff
32
src/App.js
Normal file
32
src/App.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import React from 'react';
|
||||
import Header from './components/Header';
|
||||
import Hero from './components/Hero';
|
||||
import Features from './components/Features';
|
||||
import EverythingYouNeed from './components/EverythingYouNeed';
|
||||
import DeploySection from './components/DeploySection';
|
||||
import CoursesSection from './components/CoursesSection';
|
||||
import EnterpriseSection from './components/EnterpriseSection';
|
||||
import LivePreview from './components/LivePreview';
|
||||
import SupportSection from './components/SupportSection';
|
||||
import Newsletter from './components/Newsletter';
|
||||
import Footer from './components/Footer';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<Header />
|
||||
<Hero />
|
||||
<Features />
|
||||
<EverythingYouNeed />
|
||||
<DeploySection />
|
||||
<CoursesSection />
|
||||
<EnterpriseSection />
|
||||
<LivePreview />
|
||||
<SupportSection />
|
||||
<Newsletter />
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
55
src/components/CoursesSection.js
Normal file
55
src/components/CoursesSection.js
Normal file
@@ -0,0 +1,55 @@
|
||||
import React from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const CoursesSection = () => {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="py-20 bg-white">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="bg-gray-100 p-12 rounded-lg text-center">
|
||||
<h2 className="text-3xl font-bold mb-4">Official NestJS Courses</h2>
|
||||
<p className="text-nest-gray mb-8 max-w-2xl mx-auto">
|
||||
Learn everything you need to master NestJS and tackle modern backend applications at any scale.
|
||||
</p>
|
||||
<button className="btn-primary">
|
||||
See courses
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 1.0)}
|
||||
className="py-20 bg-white"
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<motion.div
|
||||
{...fadeUpPreset(0.2, 0.8)}
|
||||
className="bg-gray-100 p-12 rounded-lg text-center"
|
||||
>
|
||||
<h2 className="text-3xl font-bold mb-4">Official NestJS Courses</h2>
|
||||
<p className="text-nest-gray mb-8 max-w-2xl mx-auto">
|
||||
Learn everything you need to master NestJS and tackle modern backend applications at any scale.
|
||||
</p>
|
||||
<button className="btn-primary">
|
||||
See courses
|
||||
</button>
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default CoursesSection;
|
||||
86
src/components/DeploySection.js
Normal file
86
src/components/DeploySection.js
Normal file
@@ -0,0 +1,86 @@
|
||||
import React from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const DeploySection = () => {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="py-20 bg-nest-light-gray">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="grid md:grid-cols-2 gap-8">
|
||||
{/* Deploy Card */}
|
||||
<div className="bg-nest-dark text-white p-8 rounded-lg">
|
||||
<h3 className="text-2xl font-bold mb-4">Deploy, mau!</h3>
|
||||
<p className="text-gray-300 mb-6">
|
||||
Provision and manage your infrastracture on AWS without the hassle and extra DevOps work.
|
||||
</p>
|
||||
<button className="bg-white text-nest-dark px-6 py-2 rounded-full font-medium hover:bg-gray-100 transition-colors duration-300">
|
||||
Start now
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Explore Graph Card */}
|
||||
<div className="bg-nest-red text-white p-8 rounded-lg">
|
||||
<h3 className="text-2xl font-bold mb-4">Explore your graph</h3>
|
||||
<p className="text-red-100 mb-6">
|
||||
Identify dependencies and connections between modules, and dive deep into the inner workings of your classes.
|
||||
</p>
|
||||
<button className="bg-white text-nest-red px-6 py-2 rounded-full font-medium hover:bg-gray-100 transition-colors duration-300">
|
||||
Learn more
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 1.0)}
|
||||
className="py-20 bg-nest-light-gray"
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="grid md:grid-cols-2 gap-8">
|
||||
{/* Deploy Card */}
|
||||
<motion.div
|
||||
{...fadeUpPreset(0.2, 0.8)}
|
||||
className="bg-nest-dark text-white p-8 rounded-lg"
|
||||
>
|
||||
<h3 className="text-2xl font-bold mb-4">Deploy, mau!</h3>
|
||||
<p className="text-gray-300 mb-6">
|
||||
Provision and manage your infrastracture on AWS without the hassle and extra DevOps work.
|
||||
</p>
|
||||
<button className="bg-white text-nest-dark px-6 py-2 rounded-full font-medium hover:bg-gray-100 transition-colors duration-300">
|
||||
Start now
|
||||
</button>
|
||||
</motion.div>
|
||||
|
||||
{/* Explore Graph Card */}
|
||||
<motion.div
|
||||
{...fadeUpPreset(0.3, 0.8)}
|
||||
className="bg-nest-red text-white p-8 rounded-lg"
|
||||
>
|
||||
<h3 className="text-2xl font-bold mb-4">Explore your graph</h3>
|
||||
<p className="text-red-100 mb-6">
|
||||
Identify dependencies and connections between modules, and dive deep into the inner workings of your classes.
|
||||
</p>
|
||||
<button className="bg-white text-nest-red px-6 py-2 rounded-full font-medium hover:bg-gray-100 transition-colors duration-300">
|
||||
Learn more
|
||||
</button>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default DeploySection;
|
||||
63
src/components/EnterpriseSection.js
Normal file
63
src/components/EnterpriseSection.js
Normal file
@@ -0,0 +1,63 @@
|
||||
import React from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const EnterpriseSection = () => {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="py-20 bg-nest-red bg-support-pattern bg-cover bg-center bg-no-repeat relative">
|
||||
<div className="absolute inset-0 bg-nest-red/90"></div>
|
||||
<div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-white">
|
||||
<h2 className="text-4xl md:text-5xl font-bold mb-6">
|
||||
The open source platform designed for the future. Build enterprise.
|
||||
</h2>
|
||||
<p className="text-xl text-red-100 mb-8 max-w-3xl mx-auto">
|
||||
A complete development kit for building scalable server-side apps. Contact us to find out more about expertise consulting, on-site enterprise support, trainings, and private sessions.
|
||||
</p>
|
||||
<button className="bg-white text-nest-red px-8 py-3 rounded-full font-medium hover:bg-gray-100 transition-colors duration-300">
|
||||
Learn more about support offerings
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 1.0)}
|
||||
className="py-20 bg-nest-red bg-support-pattern bg-cover bg-center bg-no-repeat relative"
|
||||
>
|
||||
<div className="absolute inset-0 bg-nest-red/90"></div>
|
||||
<div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-white">
|
||||
<motion.h2
|
||||
{...fadeUpPreset(0.2, 0.8)}
|
||||
className="text-4xl md:text-5xl font-bold mb-6"
|
||||
>
|
||||
The open source platform designed for the future. Build enterprise.
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
{...fadeUpPreset(0.3, 0.8)}
|
||||
className="text-xl text-red-100 mb-8 max-w-3xl mx-auto"
|
||||
>
|
||||
A complete development kit for building scalable server-side apps. Contact us to find out more about expertise consulting, on-site enterprise support, trainings, and private sessions.
|
||||
</motion.p>
|
||||
<motion.button
|
||||
{...fadeUpPreset(0.4, 0.8)}
|
||||
className="bg-white text-nest-red px-8 py-3 rounded-full font-medium hover:bg-gray-100 transition-colors duration-300"
|
||||
>
|
||||
Learn more about support offerings
|
||||
</motion.button>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default EnterpriseSection;
|
||||
118
src/components/EverythingYouNeed.js
Normal file
118
src/components/EverythingYouNeed.js
Normal file
@@ -0,0 +1,118 @@
|
||||
import React from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const EverythingYouNeed = () => {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: "https://nestjs.com/puzzle.c9dfc495.svg",
|
||||
title: "MODULARITY",
|
||||
description: "Streamline upkeep by organizing applications into self-contained modules."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/rocket.518dadfa.svg",
|
||||
title: "SCALABILITY",
|
||||
description: "Scale seamlessly with efficient, battle-tested components."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/di.a0b12f44.svg",
|
||||
title: "DEPENDENCY INJECTION",
|
||||
description: "Elevate testability with a sophisticated dependency injection system."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/type-safety.34453790.svg",
|
||||
title: "TYPE SAFETY",
|
||||
description: "Mitigate errors through the robust type safety features of TypeScript."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/ecosystem.eaa69289.svg",
|
||||
title: "RICH ECOSYSTEM",
|
||||
description: "Explore a rich ecosystem offering versatile tools to craft solutions tailored to your needs."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/chip.3b61cda8.svg",
|
||||
title: "ENTERPRISE-READY",
|
||||
description: "Trusted by thousands of leading companies and organizations worldwide."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/microservices.e0074903.svg",
|
||||
title: "MICROSERVICES",
|
||||
description: "Create loosely coupled, independently deployable services for increased agility and scalability."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/api.67807f71.svg",
|
||||
title: "WEB APPS",
|
||||
description: "Build REST APIs, GraphQL APIs, Queues, and real-time & event-driven applications in no time."
|
||||
}
|
||||
];
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="py-20 bg-white">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="text-center mb-16">
|
||||
<h2 className="section-title">Everything you need..</h2>
|
||||
<p className="section-subtitle">
|
||||
Build robust, powerful, and scalable server-side applications and stop reinventing the wheel.
|
||||
</p>
|
||||
</div>
|
||||
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
|
||||
{features.map((feature, index) => (
|
||||
<div key={index} className="text-center p-6">
|
||||
<div className="mb-6">
|
||||
<img src={feature.icon} alt={feature.title} className="h-12 w-12 mx-auto" />
|
||||
</div>
|
||||
<h3 className="font-bold text-sm text-nest-dark mb-3">{feature.title}</h3>
|
||||
<p className="text-nest-gray text-sm leading-relaxed">{feature.description}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 1.0)}
|
||||
className="py-20 bg-white"
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<motion.div
|
||||
{...fadeUpPreset(0.2, 0.8)}
|
||||
className="text-center mb-16"
|
||||
>
|
||||
<h2 className="section-title">Everything you need..</h2>
|
||||
<p className="section-subtitle">
|
||||
Build robust, powerful, and scalable server-side applications and stop reinventing the wheel.
|
||||
</p>
|
||||
</motion.div>
|
||||
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
|
||||
{features.map((feature, index) => (
|
||||
<motion.div
|
||||
key={index}
|
||||
{...fadeUpPreset(index * 0.05, 0.6)}
|
||||
className="text-center p-6"
|
||||
>
|
||||
<div className="mb-6">
|
||||
<img src={feature.icon} alt={feature.title} className="h-12 w-12 mx-auto" />
|
||||
</div>
|
||||
<h3 className="font-bold text-sm text-nest-dark mb-3">{feature.title}</h3>
|
||||
<p className="text-nest-gray text-sm leading-relaxed">{feature.description}</p>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default EverythingYouNeed;
|
||||
78
src/components/Features.js
Normal file
78
src/components/Features.js
Normal file
@@ -0,0 +1,78 @@
|
||||
import React from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const Features = () => {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
const features = [
|
||||
{
|
||||
icon: "https://nestjs.com/3d.cfabe065.svg",
|
||||
title: "EXTENSIBLE",
|
||||
description: "Provides unparalleled flexibility through its meticulously crafted modular architecture."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/magic-wand.ff01fe1d.svg",
|
||||
title: "VERSATILE",
|
||||
description: "Serves as a robust, elegant, and well-structured foundation for all kinds of server-side applications."
|
||||
},
|
||||
{
|
||||
icon: "https://nestjs.com/quality.d1d04ce8.svg",
|
||||
title: "PROGRESSIVE",
|
||||
description: "Introduces design patterns and well-established solutions to the Node.js landscape."
|
||||
}
|
||||
];
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="py-20 bg-nest-light-gray">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="grid md:grid-cols-3 gap-12">
|
||||
{features.map((feature, index) => (
|
||||
<div key={index} className="text-center">
|
||||
<div className="mb-6">
|
||||
<img src={feature.icon} alt={feature.title} className="h-16 w-16 mx-auto" />
|
||||
</div>
|
||||
<h3 className="text-nest-red font-bold text-lg mb-4">{feature.title}</h3>
|
||||
<p className="text-nest-gray leading-relaxed">{feature.description}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 1.0)}
|
||||
className="py-20 bg-nest-light-gray"
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="grid md:grid-cols-3 gap-12">
|
||||
{features.map((feature, index) => (
|
||||
<motion.div
|
||||
key={index}
|
||||
{...fadeUpPreset(index * 0.1, 0.8)}
|
||||
className="text-center"
|
||||
>
|
||||
<div className="mb-6">
|
||||
<img src={feature.icon} alt={feature.title} className="h-16 w-16 mx-auto" />
|
||||
</div>
|
||||
<h3 className="text-nest-red font-bold text-lg mb-4">{feature.title}</h3>
|
||||
<p className="text-nest-gray leading-relaxed">{feature.description}</p>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default Features;
|
||||
61
src/components/Footer.js
Normal file
61
src/components/Footer.js
Normal file
@@ -0,0 +1,61 @@
|
||||
import React from 'react';
|
||||
import { Github, X } from 'lucide-react';
|
||||
|
||||
const Footer = () => {
|
||||
return (
|
||||
<footer className="bg-white py-12 border-t border-nest-border">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="text-center">
|
||||
{/* Social Links */}
|
||||
<div className="flex justify-center items-center gap-6 mb-6">
|
||||
<a href="#" className="text-nest-gray hover:text-nest-red transition-colors duration-200">
|
||||
<Github className="h-5 w-5" />
|
||||
</a>
|
||||
<a href="#" className="text-nest-gray hover:text-nest-red transition-colors duration-200">
|
||||
<X className="h-5 w-5" />
|
||||
</a>
|
||||
<a href="#" className="text-nest-gray hover:text-nest-red transition-colors duration-200">
|
||||
<svg className="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Footer Text */}
|
||||
<div className="text-sm text-nest-gray space-y-2">
|
||||
<p>Released under the MIT License</p>
|
||||
<p>
|
||||
Official NestJS Consulting{' '}
|
||||
<a href="https://trilon.io/" className="text-nest-red hover:underline">
|
||||
Trilon.io
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
Copyright © 2017- 2026{' '}
|
||||
<a href="#" className="text-nest-red hover:underline">
|
||||
Kamil Mysliwiec
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
Designed by{' '}
|
||||
<a href="#" className="text-nest-red hover:underline">
|
||||
Jakub Staron
|
||||
</a>
|
||||
, hosted by{' '}
|
||||
<a href="https://www.netlify.com/" className="text-nest-red hover:underline">
|
||||
Netlify
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="#" className="text-nest-red hover:underline">
|
||||
中文说明
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
86
src/components/Header.js
Normal file
86
src/components/Header.js
Normal file
@@ -0,0 +1,86 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Menu, X, ChevronDown, Github } from 'lucide-react';
|
||||
|
||||
const Header = () => {
|
||||
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
||||
|
||||
return (
|
||||
<header className="fixed top-0 left-0 right-0 z-50 bg-black/90 backdrop-blur-sm border-b border-gray-800">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex items-center justify-between h-16">
|
||||
{/* Logo */}
|
||||
<div className="flex items-center">
|
||||
<a href="https://nestjs.com/" className="flex items-center">
|
||||
<img
|
||||
src="https://nestjs.com/logo-small-gradient.0ed287ce.svg"
|
||||
alt="NestJS - A progressive Node.js framework"
|
||||
className="h-8 w-auto"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Desktop Navigation */}
|
||||
<nav className="hidden md:flex items-center space-x-8">
|
||||
<a href="#" className="text-white hover:text-nest-red transition-colors duration-200">
|
||||
DOCUMENTATION
|
||||
</a>
|
||||
<a href="#" className="text-white hover:text-nest-red transition-colors duration-200">
|
||||
ENTERPRISE
|
||||
</a>
|
||||
<div className="relative group">
|
||||
<button className="flex items-center text-white hover:text-nest-red transition-colors duration-200">
|
||||
<span className="bg-nest-red text-white text-xs px-2 py-1 rounded mr-2">NEW</span>
|
||||
RESOURCES
|
||||
<ChevronDown className="ml-1 h-4 w-4" />
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{/* Social Links */}
|
||||
<div className="hidden md:flex items-center space-x-4">
|
||||
<a href="#" className="text-white hover:text-nest-red transition-colors duration-200">
|
||||
<Github className="h-5 w-5" />
|
||||
</a>
|
||||
<a href="#" className="text-white hover:text-nest-red transition-colors duration-200">
|
||||
<X className="h-5 w-5" />
|
||||
</a>
|
||||
<a href="#" className="text-white hover:text-nest-red transition-colors duration-200">
|
||||
<svg className="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Mobile menu button */}
|
||||
<div className="md:hidden">
|
||||
<button
|
||||
onClick={() => setIsMenuOpen(!isMenuOpen)}
|
||||
className="text-white hover:text-nest-red transition-colors duration-200"
|
||||
>
|
||||
{isMenuOpen ? <X className="h-6 w-6" /> : <Menu className="h-6 w-6" />}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Mobile Navigation */}
|
||||
{isMenuOpen && (
|
||||
<div className="md:hidden">
|
||||
<div className="px-2 pt-2 pb-3 space-y-1 sm:px-3 bg-black/95">
|
||||
<a href="#" className="block px-3 py-2 text-white hover:text-nest-red transition-colors duration-200">
|
||||
DOCUMENTATION
|
||||
</a>
|
||||
<a href="#" className="block px-3 py-2 text-white hover:text-nest-red transition-colors duration-200">
|
||||
ENTERPRISE
|
||||
</a>
|
||||
<a href="#" className="block px-3 py-2 text-white hover:text-nest-red transition-colors duration-200">
|
||||
RESOURCES
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
export default Header;
|
||||
80
src/components/Hero.js
Normal file
80
src/components/Hero.js
Normal file
@@ -0,0 +1,80 @@
|
||||
import React from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
import { Github } from 'lucide-react';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const Hero = () => {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="relative min-h-screen bg-nest-dark bg-hero-pattern bg-cover bg-center bg-no-repeat flex items-center">
|
||||
<div className="absolute inset-0 bg-black/70"></div>
|
||||
<div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20">
|
||||
<div className="max-w-3xl">
|
||||
<h1 className="text-5xl md:text-7xl font-bold text-white mb-6">
|
||||
Hello, nest!
|
||||
</h1>
|
||||
<p className="text-xl md:text-2xl text-gray-300 mb-8 leading-relaxed">
|
||||
A progressive Node.js framework for building efficient, reliable and scalable server-side applications.
|
||||
</p>
|
||||
<div className="flex flex-col sm:flex-row gap-4">
|
||||
<button className="btn-primary">
|
||||
Documentation
|
||||
</button>
|
||||
<button className="btn-secondary flex items-center justify-center gap-2">
|
||||
<Github className="h-5 w-5" />
|
||||
Source code
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 0.8)}
|
||||
className="relative min-h-screen bg-nest-dark bg-hero-pattern bg-cover bg-center bg-no-repeat flex items-center"
|
||||
>
|
||||
<div className="absolute inset-0 bg-black/70"></div>
|
||||
<div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20">
|
||||
<div className="max-w-3xl">
|
||||
<motion.h1
|
||||
{...fadeUpPreset(0.2, 0.8)}
|
||||
className="text-5xl md:text-7xl font-bold text-white mb-6"
|
||||
>
|
||||
Hello, nest!
|
||||
</motion.h1>
|
||||
<motion.p
|
||||
{...fadeUpPreset(0.3, 0.8)}
|
||||
className="text-xl md:text-2xl text-gray-300 mb-8 leading-relaxed"
|
||||
>
|
||||
A progressive Node.js framework for building efficient, reliable and scalable server-side applications.
|
||||
</motion.p>
|
||||
<motion.div
|
||||
{...fadeUpPreset(0.4, 0.8)}
|
||||
className="flex flex-col sm:flex-row gap-4"
|
||||
>
|
||||
<button className="btn-primary">
|
||||
Documentation
|
||||
</button>
|
||||
<button className="btn-secondary flex items-center justify-center gap-2">
|
||||
<Github className="h-5 w-5" />
|
||||
Source code
|
||||
</button>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default Hero;
|
||||
50
src/components/LivePreview.js
Normal file
50
src/components/LivePreview.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import React from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const LivePreview = () => {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="py-20 bg-nest-dark text-white text-center">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<h2 className="text-3xl font-bold mb-4">Live preview</h2>
|
||||
<p className="text-gray-300 max-w-2xl mx-auto">
|
||||
See how your application may potentially look like without leaving your personal browser.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 1.0)}
|
||||
className="py-20 bg-nest-dark text-white text-center"
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<motion.h2
|
||||
{...fadeUpPreset(0.2, 0.8)}
|
||||
className="text-3xl font-bold mb-4"
|
||||
>
|
||||
Live preview
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
{...fadeUpPreset(0.3, 0.8)}
|
||||
className="text-gray-300 max-w-2xl mx-auto"
|
||||
>
|
||||
See how your application may potentially look like without leaving your personal browser.
|
||||
</motion.p>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default LivePreview;
|
||||
94
src/components/Newsletter.js
Normal file
94
src/components/Newsletter.js
Normal file
@@ -0,0 +1,94 @@
|
||||
import React, { useState } from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
import { Send } from 'lucide-react';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const Newsletter = () => {
|
||||
const [email, setEmail] = useState('');
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
const handleSubmit = (e) => {
|
||||
e.preventDefault();
|
||||
// Handle newsletter subscription
|
||||
console.log('Newsletter subscription:', email);
|
||||
};
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="py-20 bg-nest-light-gray">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
||||
<h2 className="text-3xl font-bold mb-4">Join our Newsletter</h2>
|
||||
<p className="text-nest-gray mb-8 max-w-2xl mx-auto">
|
||||
Subscribe to stay up to date with the latest Nest updates, features, and videos!
|
||||
</p>
|
||||
<form onSubmit={handleSubmit} className="max-w-md mx-auto flex gap-4">
|
||||
<input
|
||||
type="email"
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
placeholder="Enter your email"
|
||||
className="flex-1 px-4 py-3 border border-nest-border rounded-full focus:outline-none focus:ring-2 focus:ring-nest-red"
|
||||
required
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
className="bg-nest-red text-white px-6 py-3 rounded-full hover:bg-red-600 transition-colors duration-300 flex items-center gap-2"
|
||||
>
|
||||
<Send className="h-4 w-4" />
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 1.0)}
|
||||
className="py-20 bg-nest-light-gray"
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
||||
<motion.h2
|
||||
{...fadeUpPreset(0.2, 0.8)}
|
||||
className="text-3xl font-bold mb-4"
|
||||
>
|
||||
Join our Newsletter
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
{...fadeUpPreset(0.3, 0.8)}
|
||||
className="text-nest-gray mb-8 max-w-2xl mx-auto"
|
||||
>
|
||||
Subscribe to stay up to date with the latest Nest updates, features, and videos!
|
||||
</motion.p>
|
||||
<motion.form
|
||||
{...fadeUpPreset(0.4, 0.8)}
|
||||
onSubmit={handleSubmit}
|
||||
className="max-w-md mx-auto flex gap-4"
|
||||
>
|
||||
<input
|
||||
type="email"
|
||||
value={email}
|
||||
onChange={(e) => setEmail(e.target.value)}
|
||||
placeholder="Enter your email"
|
||||
className="flex-1 px-4 py-3 border border-nest-border rounded-full focus:outline-none focus:ring-2 focus:ring-nest-red"
|
||||
required
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
className="bg-nest-red text-white px-6 py-3 rounded-full hover:bg-red-600 transition-colors duration-300 flex items-center gap-2"
|
||||
>
|
||||
<Send className="h-4 w-4" />
|
||||
</button>
|
||||
</motion.form>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default Newsletter;
|
||||
161
src/components/SupportSection.js
Normal file
161
src/components/SupportSection.js
Normal file
@@ -0,0 +1,161 @@
|
||||
import React from 'react';
|
||||
import { motion, useReducedMotion } from 'framer-motion';
|
||||
|
||||
const fadeUpPreset = (delay = 0, duration = 1.2) => ({
|
||||
initial: { opacity: 0, y: 20 },
|
||||
whileInView: { opacity: 1, y: 0 },
|
||||
viewport: { once: true, amount: 0.2 },
|
||||
transition: { delay, duration, ease: "easeOut" }
|
||||
});
|
||||
|
||||
const SupportSection = () => {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
|
||||
const principalSponsors = [
|
||||
{ src: "https://nestjs.com/trilon.22c96544.svg", alt: "Trilon", link: "https://trilon.io/" },
|
||||
{ src: "https://nestjs.com/red-hat-logo.17d10010.svg", alt: "Red Hat", link: "https://www.redhat.com/" },
|
||||
{ src: "https://nestjs.com/jetbrains-logo.d24f46f1.svg", alt: "Jetbrains", link: "https://www.jetbrains.com/" }
|
||||
];
|
||||
|
||||
const goldSponsors = [
|
||||
{ src: "https://nestjs.com/movavi-logo.eee1bd94.svg", alt: "Movavi", link: "https://www.movavi.com/" },
|
||||
{ src: "https://nestjs.com/handsontable-logo.9006297e.svg", alt: "Handsontable", link: "https://handsontable.com/docs/react-data-grid/?utm_source=NestJS_homepage&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024" },
|
||||
{ src: "https://nestjs.com/arcjet-logo.79e2da28.svg", alt: "Arcjet", link: "https://arcjet.com/?ref=nestjs" },
|
||||
{ src: "https://nestjs.com/crawljobs-logo.53b333f7.svg", alt: "CrawlJobs", link: "https://www.crawljobs.com/" }
|
||||
];
|
||||
|
||||
const silverSponsors = [
|
||||
{ src: "https://nestjs.com/netlify-logo.9322c2d1.svg", alt: "Netlify", link: "https://www.netlify.com/" },
|
||||
{ src: "https://nestjs.com/swingdev-logo.168e0bec.svg", alt: "SwingDev", link: "https://www.swingdev.io/" },
|
||||
{ src: "https://nestjs.com/route4me-logo.d07e8982.svg", alt: "Route4Me", link: "https://www.route4me.com/" }
|
||||
];
|
||||
|
||||
if (shouldReduceMotion) {
|
||||
return (
|
||||
<section className="py-20 bg-white">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
||||
<h2 className="text-3xl font-bold mb-4">Support us</h2>
|
||||
<p className="text-nest-gray mb-12 max-w-3xl mx-auto">
|
||||
Nest is an MIT-licensed open-source project. Hence, it grows thanks to the sponsors and support by the amazing backers. Please, consider supporting us!
|
||||
</p>
|
||||
|
||||
{/* Principal Sponsors */}
|
||||
<div className="mb-12">
|
||||
<h3 className="text-sm font-bold text-nest-gray mb-6">PRINCIPAL SPONSORS</h3>
|
||||
<div className="flex justify-center items-center gap-8 flex-wrap">
|
||||
{principalSponsors.map((sponsor, index) => (
|
||||
<a key={index} href={sponsor.link} className="hover:opacity-80 transition-opacity duration-200">
|
||||
<img src={sponsor.src} alt={sponsor.alt} className="h-12" />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Gold Sponsors */}
|
||||
<div className="mb-12">
|
||||
<h3 className="text-sm font-bold text-nest-gray mb-6">GOLD SPONSORS</h3>
|
||||
<div className="flex justify-center items-center gap-6 flex-wrap">
|
||||
{goldSponsors.map((sponsor, index) => (
|
||||
<a key={index} href={sponsor.link} className="hover:opacity-80 transition-opacity duration-200">
|
||||
<img src={sponsor.src} alt={sponsor.alt} className="h-10" />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Silver Sponsors */}
|
||||
<div className="mb-12">
|
||||
<h3 className="text-sm font-bold text-nest-gray mb-6">SILVER SPONSORS</h3>
|
||||
<div className="flex justify-center items-center gap-6 flex-wrap">
|
||||
{silverSponsors.map((sponsor, index) => (
|
||||
<a key={index} href={sponsor.link} className="hover:opacity-80 transition-opacity duration-200">
|
||||
<img src={sponsor.src} alt={sponsor.alt} className="h-8" />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button className="btn-primary">
|
||||
Become a sponsor / backer
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.section
|
||||
{...fadeUpPreset(0.1, 1.0)}
|
||||
className="py-20 bg-white"
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
||||
<motion.h2
|
||||
{...fadeUpPreset(0.2, 0.8)}
|
||||
className="text-3xl font-bold mb-4"
|
||||
>
|
||||
Support us
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
{...fadeUpPreset(0.3, 0.8)}
|
||||
className="text-nest-gray mb-12 max-w-3xl mx-auto"
|
||||
>
|
||||
Nest is an MIT-licensed open-source project. Hence, it grows thanks to the sponsors and support by the amazing backers. Please, consider supporting us!
|
||||
</motion.p>
|
||||
|
||||
{/* Principal Sponsors */}
|
||||
<motion.div
|
||||
{...fadeUpPreset(0.4, 0.8)}
|
||||
className="mb-12"
|
||||
>
|
||||
<h3 className="text-sm font-bold text-nest-gray mb-6">PRINCIPAL SPONSORS</h3>
|
||||
<div className="flex justify-center items-center gap-8 flex-wrap">
|
||||
{principalSponsors.map((sponsor, index) => (
|
||||
<a key={index} href={sponsor.link} className="hover:opacity-80 transition-opacity duration-200">
|
||||
<img src={sponsor.src} alt={sponsor.alt} className="h-12" />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Gold Sponsors */}
|
||||
<motion.div
|
||||
{...fadeUpPreset(0.5, 0.8)}
|
||||
className="mb-12"
|
||||
>
|
||||
<h3 className="text-sm font-bold text-nest-gray mb-6">GOLD SPONSORS</h3>
|
||||
<div className="flex justify-center items-center gap-6 flex-wrap">
|
||||
{goldSponsors.map((sponsor, index) => (
|
||||
<a key={index} href={sponsor.link} className="hover:opacity-80 transition-opacity duration-200">
|
||||
<img src={sponsor.src} alt={sponsor.alt} className="h-10" />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Silver Sponsors */}
|
||||
<motion.div
|
||||
{...fadeUpPreset(0.6, 0.8)}
|
||||
className="mb-12"
|
||||
>
|
||||
<h3 className="text-sm font-bold text-nest-gray mb-6">SILVER SPONSORS</h3>
|
||||
<div className="flex justify-center items-center gap-6 flex-wrap">
|
||||
{silverSponsors.map((sponsor, index) => (
|
||||
<a key={index} href={sponsor.link} className="hover:opacity-80 transition-opacity duration-200">
|
||||
<img src={sponsor.src} alt={sponsor.alt} className="h-8" />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
<motion.button
|
||||
{...fadeUpPreset(0.7, 0.8)}
|
||||
className="btn-primary"
|
||||
>
|
||||
Become a sponsor / backer
|
||||
</motion.button>
|
||||
</div>
|
||||
</motion.section>
|
||||
);
|
||||
};
|
||||
|
||||
export default SupportSection;
|
||||
52
src/index.css
Normal file
52
src/index.css
Normal file
@@ -0,0 +1,52 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', system-ui, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.btn-primary {
|
||||
@apply bg-nest-red text-white px-8 py-3 rounded-full font-medium hover:bg-red-600 transition-colors duration-300;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
@apply border-2 border-white text-white px-8 py-3 rounded-full font-medium hover:bg-white hover:text-nest-dark transition-colors duration-300;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
@apply bg-white p-8 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
@apply text-3xl md:text-4xl font-bold text-center mb-4;
|
||||
}
|
||||
|
||||
.section-subtitle {
|
||||
@apply text-lg text-nest-gray text-center max-w-2xl mx-auto mb-16;
|
||||
}
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
.text-gradient {
|
||||
background: linear-gradient(135deg, #e0234e, #ff6b9d);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
}
|
||||
8
src/index.js
Normal file
8
src/index.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
|
||||
const container = document.getElementById('root');
|
||||
const root = createRoot(container);
|
||||
root.render(<App />);
|
||||
25
tailwind.config.js
Normal file
25
tailwind.config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
content: [
|
||||
"./src/**/*.{js,jsx,ts,tsx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
'nest-red': '#e0234e',
|
||||
'nest-dark': '#1a1a1a',
|
||||
'nest-gray': '#666666',
|
||||
'nest-light-gray': '#f5f5f5',
|
||||
'nest-border': '#e5e5e5'
|
||||
},
|
||||
fontFamily: {
|
||||
'sans': ['Inter', 'system-ui', 'sans-serif']
|
||||
},
|
||||
backgroundImage: {
|
||||
'hero-pattern': "url('https://nestjs.com/header.e5c9eff6.webp')",
|
||||
'support-pattern': "url('https://nestjs.com/support.1356a495.png')"
|
||||
}
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
5
vercel.json
Normal file
5
vercel.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"installCommand": "npm install",
|
||||
"buildCommand": "CI=false npm run build",
|
||||
"outputDirectory": "build"
|
||||
}
|
||||
Reference in New Issue
Block a user