Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: models, trust and blogs section #12

Open
wants to merge 40 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
0f95d40
chore: added zustand package
manavbabber Nov 5, 2024
9aa6e7f
fix: smooth scoll config and removed trust section
manavbabber Nov 5, 2024
6cdebf6
fix: override mesh blocks with the loop
manavbabber Nov 5, 2024
b9dfacf
fix: 3d models effects and animations
manavbabber Nov 6, 2024
89e9175
fix: smooth scroll and model fadeout effects
manavbabber Nov 6, 2024
6f896e5
fix: blogs and explore arrow cursor issue
manavbabber Nov 7, 2024
39e536a
fix: line effects on astronaut section
manavbabber Nov 7, 2024
bb69098
fix: blogs section and satellite model
manavbabber Nov 8, 2024
2fed252
fix: slowed scroll speed
manavbabber Nov 8, 2024
7495bdd
fix: slow fadeout models
manavbabber Nov 8, 2024
d1a6edf
fix: navbar and blog card boundary
manavbabber Nov 8, 2024
bcb8df3
fix: navbar smooth scroll and url id override
manavbabber Nov 8, 2024
7120414
feat(wip): partners section
manavbabber Nov 9, 2024
70a8c9f
feat: trust section effects
manavbabber Nov 11, 2024
17aaba8
chore: satellite model naming issue
manavbabber Nov 11, 2024
b73ade3
fix: trust section border and margins
manavbabber Nov 13, 2024
5b469eb
fix: product cards
manavbabber Nov 13, 2024
12fb09f
fix: about line and service line touch
manavbabber Nov 13, 2024
216016e
fix: gradient on all screens and product card image contain
manavbabber Nov 14, 2024
f4b34a2
fix: navbar smooth transition expand
manavbabber Nov 14, 2024
e1dbd9b
fix: margin, position and font properties
manavbabber Nov 14, 2024
fbcfdd2
fix: border corner component and about block margin
manavbabber Nov 14, 2024
965c420
chore: added third block in product section
manavbabber Dec 25, 2024
c3b8724
fix: z-index issue on line numbers
manavbabber Dec 25, 2024
8b1e9a5
fix: navbar cursor issue
manavbabber Dec 25, 2024
3b11115
fix: local state management on home screen and added border corners a…
manavbabber Dec 26, 2024
7a5dce1
fix: fourth section number responsive and fifth section heading sticky
manavbabber Dec 26, 2024
a93261e
fix: blog section background effect
manavbabber Dec 27, 2024
7954851
fix: scroll to top on refresh
manavbabber Dec 27, 2024
31d2103
chore: removed console
manavbabber Dec 27, 2024
d5164cc
fix: component name error
manavbabber Dec 30, 2024
be7ac9e
fix: topline about section
manavbabber Dec 30, 2024
c0ad132
fix: added publish date and animated arrows to blogs
manavbabber Dec 30, 2024
27b6b34
fix: blog section gap
manavbabber Jan 1, 2025
f6bae1f
feat: hide models on mobile and fixed content alignment on product se…
manavbabber Jan 1, 2025
339e92e
feat: hide nav section on mobile screen
manavbabber Jan 1, 2025
847a922
fix: aerius model to have fadein effect and shift it to top
manavbabber Jan 1, 2025
7ff2dcc
fix: nav hidden until corners are not loaded
manavbabber Jan 1, 2025
d831dd7
fix: astronaut model to match the angles, camera rotation, lighting, …
manavbabber Jan 3, 2025
5215bad
fix: satellite model
manavbabber Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=31536000, immutable',
},
],
},
];
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'letsenhance.io',
port: '',
pathname: '/static/**',
},
{
protocol: 'https',
hostname: 'encrypted-tbn0.gstatic.com',
port: '',
pathname: '/images/**',
},
{
protocol: 'https',
hostname: 'labs.sigma.software',
port: '',
pathname: '/investment/**',
},
],
},
};

export default nextConfig;
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@
"@react-three/fiber": "^8.16.8",
"@types/three": "^0.165.0",
"aos": "^2.3.4",
"clsx": "^2.1.1",
"framer-motion": "^11.11.11",
"gsap": "^3.12.5",
"lenis": "^1.1.6",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
"react-fast-marquee": "^1.6.4",
"three": "^0.165.0"
"tailwind-merge": "^2.5.4",
"three": "^0.165.0",
"zustand": "^5.0.1"
},
"devDependencies": {
"@types/aos": "^3.0.7",
Expand Down
86 changes: 77 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/models/Astronaut1.glb
Binary file not shown.
17 changes: 8 additions & 9 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Loader from '@/components/Loader/loader';
import CustomCursor from '@/components/customCursor/customCursor';

import { useLoading } from '../context/loadingContext';
import { useEffect } from 'react';
import { useEffect, useState } from 'react';
import { useProgress } from '@react-three/drei';

import Lenis from 'lenis';
Expand All @@ -26,6 +26,7 @@ gsap.registerPlugin(ScrollTrigger);
export default function Home() {
const { progress } = useProgress();
const { isLoaded, setIsLoaded } = useLoading();
const [isCornersLoaded, setIsCornersLoaded] = useState(false);

useEffect(() => {
if (progress === 100) {
Expand All @@ -36,23 +37,21 @@ export default function Home() {
useEffect(() => {
const lenis = new Lenis({
lerp: 0.1,
wheelMultiplier: 0.6,
touchMultiplier: 0.6,
wheelMultiplier: 0.4,
touchMultiplier: 0.4,
});
lenis.scrollTo(0, { immediate: true });

function raf(time: number) {
lenis.raf(time);
requestAnimationFrame(raf);
}

requestAnimationFrame(raf);

lenis.on('scroll', ScrollTrigger.update);

gsap.ticker.add((time) => {
lenis.raf(time * 1000);
});

gsap.ticker.lagSmoothing(0);

return () => {
Expand All @@ -69,16 +68,16 @@ export default function Home() {
{isLoaded && <CustomCursor />}
<main className='relative flex flex-col items-center justify-between'>
<div className='fixed -z-20 h-screen w-screen bg-black'></div>
{isLoaded && <BordersCorner />}
<HeroSection loaded={isLoaded} />
{isLoaded && <BordersCorner setIsCornersLoaded={setIsCornersLoaded} />}
<HeroSection loaded={isCornersLoaded} />
<AeriusLogoSection />
<AboutUsSection />
<ServicesSection />
<ProductSection />
<TrustSection />
<OurWritingsSection />
<FooterSection />
<ScrollSpy />
<ScrollSpy loaded={isCornersLoaded} />
</main>
</>
);
Expand Down
Loading