Files
aramesh-backend/frontend/src/components/Reveal.tsx
T
Behrad ad75f7a7bd پروژه کامل: فرانت متصل به API + داکرایز
- اتصال کامل فرانت به API: همه محتوای سایت (پروژه‌ها، مقالات، خدمات، برند و...) از بک‌اند خوانده می‌شود (SiteProvider + useSite)
- فرم تماس و خبرنامه متصل به بک‌اند و تست‌شده در مرورگر
- ساختار مونوریپو: frontend/ + backend/
- Dockerfile برای هر دو بخش + docker-compose (PostgreSQL + FastAPI + nginx)
- nginx با پروکسی /api — بدون نیاز به CORS در حالت داکر
- README کامل فارسی
2026-08-29 13:26:58 +03:30

23 lines
554 B
TypeScript

import React from 'react';
import { motion } from 'framer-motion';
type RevealProps = {
children: React.ReactNode;
delay?: number;
y?: number;
className?: string;
};
export function Reveal({ children, delay = 0, y = 28, className }: RevealProps) {
return (
<motion.div
className={className}
initial={{ opacity: 0, y }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-80px' }}
transition={{ duration: 0.7, delay, ease: [0.23, 1, 0.32, 1] }}>
{children}
</motion.div>);
}