├── .eslintrc.json ├── public ├── medias │ ├── 1.jpg │ ├── 2.jpg │ ├── 3.jpg │ ├── 4.jpg │ ├── 5.jpg │ ├── PPPangaia-Medium.ttf │ └── curve_footer.svg ├── vercel.svg └── next.svg ├── src ├── app │ ├── favicon.ico │ ├── ._globals.css │ ├── layout.js │ ├── globals.css │ └── page.js └── components │ ├── ._Footer.jsx │ └── Footer.jsx ├── jsconfig.json ├── next.config.mjs ├── postcss.config.js ├── .gitignore ├── tailwind.config.js ├── package.json └── README.md /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /public/medias/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/public/medias/1.jpg -------------------------------------------------------------------------------- /public/medias/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/public/medias/2.jpg -------------------------------------------------------------------------------- /public/medias/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/public/medias/3.jpg -------------------------------------------------------------------------------- /public/medias/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/public/medias/4.jpg -------------------------------------------------------------------------------- /public/medias/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/public/medias/5.jpg -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/._globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/src/app/._globals.css -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "paths": { 4 | "@/*": ["./src/*"] 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = {}; 3 | 4 | export default nextConfig; 5 | -------------------------------------------------------------------------------- /src/components/._Footer.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/src/components/._Footer.jsx -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /public/medias/PPPangaia-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/olivierlarose/text-along-path/HEAD/public/medias/PPPangaia-Medium.ttf -------------------------------------------------------------------------------- /src/app/layout.js: -------------------------------------------------------------------------------- 1 | import { Inter } from "next/font/google"; 2 | import "./globals.css"; 3 | 4 | 5 | export const metadata = { 6 | title: "Create Next App", 7 | description: "Generated by create next app", 8 | }; 9 | 10 | export default function RootLayout({ children }) { 11 | return ( 12 | 13 |
{children} 14 | 15 | ); 16 | } 17 | -------------------------------------------------------------------------------- /public/medias/curve_footer.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | @font-face { 6 | font-family: 'Main'; 7 | src: url('../../public/medias/PPPangaia-Medium.ttf'); 8 | } 9 | 10 | :root { 11 | --foreground-rgb: 0, 0, 0; 12 | --background-start-rgb: 214, 219, 220; 13 | --background-end-rgb: 255, 255, 255; 14 | } 15 | 16 | body { 17 | color: rgb(var(--foreground-rgb)); 18 | font-family: 'Main'; 19 | } 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | .yarn/install-state.gz 8 | 9 | # testing 10 | /coverage 11 | 12 | # next.js 13 | /.next/ 14 | /out/ 15 | 16 | # production 17 | /build 18 | 19 | # misc 20 | .DS_Store 21 | *.pem 22 | 23 | # debug 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | 28 | # local env files 29 | .env*.local 30 | 31 | # vercel 32 | .vercel 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | next-env.d.ts 37 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | module.exports = { 3 | content: [ 4 | "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", 5 | "./src/components/**/*.{js,ts,jsx,tsx,mdx}", 6 | "./src/app/**/*.{js,ts,jsx,tsx,mdx}", 7 | ], 8 | theme: { 9 | extend: { 10 | backgroundImage: { 11 | "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", 12 | "gradient-conic": 13 | "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", 14 | }, 15 | }, 16 | }, 17 | plugins: [], 18 | }; 19 | -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/page.js: -------------------------------------------------------------------------------- 1 | 'use client'; 2 | import { useEffect } from "react"; 3 | import Lenis from '@studio-freight/lenis' 4 | import Footer from "@/components/Footer"; 5 | 6 | export default function Home() { 7 | 8 | useEffect( () => { 9 | const lenis = new Lenis() 10 | 11 | function raf(time) { 12 | lenis.raf(time) 13 | requestAnimationFrame(raf) 14 | } 15 | 16 | requestAnimationFrame(raf) 17 | }, []) 18 | 19 | return ( 20 |
45 | })
46 | }
47 |