Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ module.exports = {
extends: ["airbnb", "prettier"],
plugins: ["prettier"],
overrides: [
{
files: [
"src/pages/TheHailMaryDirective/components/Asteroid.jsx",
"src/pages/TheHailMaryDirective/components/PlanetSystem.jsx",
"src/pages/TheHailMaryDirective/components/RoleSection.jsx",
"src/pages/TheHailMaryDirective/components/SpaceCanvas.jsx",
"src/pages/TheHailMaryDirective/components/Spaceship.jsx",
],
rules: {
"react/no-unknown-property": "off",
},
},
{
env: {
node: true,
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"dependencies": {
"@fontsource/league-gothic": "^5.0.18",
"@fontsource/poppins": "^5.0.8",
"@react-three/drei": "^9.122.0",
"@react-three/fiber": "^8.18.0",
"@vitejs/plugin-react": "^4.2.1",
"baffle": "^0.3.6",
"canvas": "^3.0.0",
Expand All @@ -33,6 +35,7 @@
"react-router-dom": "^6.22.1",
"react-toastify": "^10.0.4",
"swiper": "^11.1.15",
"three": "^0.186.1",
"vite": "^5.1.0"
},
"devDependencies": {
Expand Down
Binary file added public/Astronaut.glb
Binary file not shown.
138 changes: 138 additions & 0 deletions public/GeodesicDome.gltf

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions public/Planet_1.gltf

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions public/Planet_10.gltf

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions public/Planet_11.gltf

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions public/Planet_6.gltf

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions public/Planet_7.gltf

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions public/Planet_8.gltf

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions public/Planet_9.gltf

Large diffs are not rendered by default.

168 changes: 168 additions & 0 deletions public/Rock_3.gltf

Large diffs are not rendered by default.

150 changes: 150 additions & 0 deletions public/Spaceship_RaeTheRedPanda.gltf

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";
import { AnimatePresence } from "framer-motion";
import { HashRouter as Router, Routes, Route } from "react-router-dom";
import { HashRouter as Router, Routes, Route, useLocation } from "react-router-dom";
import { ToastContainer } from "react-toastify";
import routes from "@/routes/index";
import Navbar from "@/components/Navbar/index";
Expand All @@ -17,9 +17,15 @@ const navLinks = [
{ name: "Gallery", path: "/gallery" },
{ name: "Events", path: "/events" },
{ name: "Contact Us", path: "/contact" },
{ name: "Symbitech 2025", path: "/symbitech2025" },
{ name: "SymbiTech", path: "/symbitech" },
];

function RouteFooter() {
const { pathname } = useLocation();

return pathname === "/symbitech" ? null : <Footer />;
}

function App() {
const [loading, setLoading] = useState(true);

Expand Down Expand Up @@ -48,7 +54,7 @@ function App() {
/>
))}
</Routes>
<Footer />
<RouteFooter />
</Router>
)}
</AnimatePresence>
Expand Down
11 changes: 5 additions & 6 deletions src/components/Footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@ function Footer() {
{ name: "Gallery", path: "/gallery" },
{ name: "Events", path: "/events" },
{ name: "Contact", path: "/contact" },
{ name: "SymbiTech2025", path: "/symbitech2025" },
{ name: "SymbiTech", path: "/symbitech" },
].map((link) => (
<li
key={link.name}
className={`cursor-pointer ${
location.pathname === link.path
? "text-secondary-light"
: ""
}`}
className={`cursor-pointer ${location.pathname === link.path
? "text-secondary-light"
: ""
}`}
>
<Link to={link.path} onClick={handleLinkClick}>
{link.name}
Expand Down
9 changes: 7 additions & 2 deletions src/components/PageTransition/index.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { motion } from "framer-motion";
import PropTypes from "prop-types";

function PageTransition({ children }) {
function PageTransition({ children, overlayClassName }) {
return (
<>
<motion.div
initial={{ y: "-100%" }}
animate={{ y: ["-100%", "0%", "-100%"] }}
transition={{ duration: 0.8, ease: "easeOut" }}
className="z-50 absolute h-screen w-full bg-primary top-0 left-0"
className={`${overlayClassName} absolute h-screen w-full bg-primary top-0 left-0`}
/>

<motion.div
Expand All @@ -24,6 +24,11 @@ function PageTransition({ children }) {

PageTransition.propTypes = {
children: PropTypes.node.isRequired,
overlayClassName: PropTypes.string,
};

PageTransition.defaultProps = {
overlayClassName: "z-50",
};

export default PageTransition;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
WEBVTT

00:00:00.000 --> 00:00:30.000
[Radio static and transmission noise]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/pages/TheHailMaryDirective/assets/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/pages/TheHailMaryDirective/assets/react.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/pages/TheHailMaryDirective/assets/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions src/pages/TheHailMaryDirective/components/Asteroid.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { useRef, useContext } from 'react';
import { useFrame } from '@react-three/fiber';
import { useGLTF } from '@react-three/drei';
import * as THREE from 'three';
import ScrollContext from '../context/ScrollContext';

export default function Asteroid() {
const { scene } = useGLTF('/Rock_3.gltf');
const rockRef = useRef();
const lightRef = useRef();
const { progress } = useContext(ScrollContext);

useFrame(() => {
const p = progress.current;

// Spin the asteroid
rockRef.current.rotation.x += 0.002;
rockRef.current.rotation.y += 0.003;

// Grow and move closer as scroll progresses
// Scale: lerp 0.3 -> 2.5 (per PRD)
const targetScale = THREE.MathUtils.lerp(0.3, 2.5, p);
rockRef.current.scale.set(targetScale, targetScale, targetScale);

// Position: start distant [8, 3, -20], move closer but stay off to the right
rockRef.current.position.x = THREE.MathUtils.lerp(8, 4, p);
rockRef.current.position.y = THREE.MathUtils.lerp(3, -6, p);
rockRef.current.position.z = THREE.MathUtils.lerp(-20, -10, p);

// Adjust ominous glow
if (lightRef.current) {
lightRef.current.intensity = THREE.MathUtils.lerp(1, 10, p);
}
});

return (
<group ref={rockRef}>
<primitive object={scene} />
<pointLight ref={lightRef} color="#ff2a2a" distance={40} />
</group>
);
}

useGLTF.preload('/Rock_3.gltf');
Loading
Loading