Skip to content
Open
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
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
# SAST Club Website

Welcome to the official repository of the **Society for Astrophysics and Space Technology (SAST)** website.
Our goal is to collaboratively build and maintain a beautiful, functional platform that reflects the spirit, achievements, and events of our club.
Welcome to the official repository of the **Society for Astrophysics and Space Technology (SAST)** website. Our goal is to collaboratively build and maintain a beautiful, functional platform that reflects the spirit, achievements, and events of our club.

---
## 🚀 Features

* **Events Calendar:** Stay up-to-date with all our upcoming events, workshops, and meetings.
* **Projects Showcase:** Explore the exciting projects our members are working on.
* **Astronomy News:** Get the latest news and discoveries in the world of astronomy.
* **Satellite Tracker:** Track satellites in real-time.
* **Member Profiles:** Get to know our talented members.
* **Contribution Rankings:** See who's making the biggest impact on our projects.

## 🛠️ Local Setup Instructions

Follow these steps to set up and run the project locally:

### Step 1: Clone the Repository

```bash
git clone https://github.com/SASTxNST/Website_SAST.git
cd Website_SAST
```

### Step 2: Install Dependencies

```bash
npm install
```

### Step 3: Start the Development Server
Make sure you're inside the `src` folder if that's where the app entry point is:

```bash
cd src
npm run dev
```

---

## ⚠️ Contribution Guidelines
The application will be available at `http://localhost:5173`.

**Only official SAST Club members are allowed to contribute to this repository.**
To get access, make sure to:
- **Follow** our GitHub organization [@SASTxNST](https://github.com/SASTxNST)
- Be a verified SAST club member
- Follow best practices while creating Pull Requests (PRs)
## 🤝 Contribution Guidelines

---
**Only official SAST Club members are allowed to contribute to this repository.** To get access, make sure to:

## Useful Links
* **Follow** our GitHub organization [@SASTxNST](https://github.com/SASTxNST)
* Be a verified SAST club member
* Follow best practices while creating Pull Requests (PRs)

- **GitHub Repo**: [https://github.com/SASTxNST/Website_SAST](https://github.com/SASTxNST/Website_SAST)
- **SAST GitHub Organization**: [https://github.com/SASTxNST](https://github.com/SASTxNST)
- **Live Website**: Coming Soon...
## 🔗 Useful Links

---
// Adding a commit
* **GitHub Repo:** [https://github.com/SASTxNST/Website_SAST](https://github.com/SASTxNST/Website_SAST)
* **SAST GitHub Organization:** [https://github.com/SASTxNST](https://github.com/SASTxNST)
* **Live Website:** Coming Soon...

Let’s build something extraordinary together
Let’s build something extraordinary together!
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./src/Landing_media/SAST.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SAST</title>
<title>SAST Website</title>
<link rel="stylesheet" href="./src/index.css">
</head>

Expand Down
20 changes: 18 additions & 2 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions src/AppContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import DiamondCursor from "./components/DiamondCursor.jsx";
import AstronomyNews from "./components/AstronomyNews.jsx";
import SatelliteTracker from "./components/tracking/SatelliteTracker.jsx";
import NotifierSat from "./components/NotifierSat.jsx";
import Register from "./pages/register.jsx";
import Login from "./pages/login.jsx";
import Footer from "./components/footer.jsx";
import Register from "./pages/Register.jsx";
import Login from "./pages/Login.jsx";
import Footer from "./components/Footer.jsx";
import ScrollToTop from "./components/ScrollToTop.jsx";
import Members from "./pages/Members.jsx";
import MemberProfile from "./pages/MemberProfile.jsx";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Landing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import videosource5 from "../Landing_media/spacerealastro.mov";
import img1 from "../Landing_media/All-possible-through-our-state-of-the-art-space-service-2160x2170-4-2160x1660.webp";
import img2 from "../Landing_media/frequent_lines.webp";
import helmet_png from "../Landing_media/helm.jpg";
import Footer from "./footer";
import Footer from "./Footer";
import useLenis from "../utils/lenis";
import useSettings from "../hooks/UseSettings";

Expand Down
23 changes: 14 additions & 9 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,32 @@ import logo from "../Landing_media/SAST.png";
const Navbar = () => {
const [isNavbarHidden, setIsNavbarHidden] = useState(false);
const [menuOpen, setMenuOpen] = useState(false);
const [isMobile, setIsMobile] = useState(typeof window !== "undefined" ? window.innerWidth < 768 : true);
const [isMobile, setIsMobile] = useState(false);

useEffect(() => {
let lastScrollY = typeof window !== "undefined" ? window.scrollY : 0;
const handleResize = () => {
const mobile = window.innerWidth < 768;
setIsMobile(mobile);
if (!mobile) {
setMenuOpen(false);
}
};

handleResize(); // Set initial value
window.addEventListener("resize", handleResize);

let lastScrollY = window.scrollY;
const handleScroll = () => {
const currentScrollY = window.scrollY;
setIsNavbarHidden(currentScrollY > lastScrollY);
lastScrollY = currentScrollY;
};

const handleResize = () => {
setIsMobile(window.innerWidth < 768);
if (window.innerWidth >= 768) setMenuOpen(false);
};

window.addEventListener("scroll", handleScroll);
window.addEventListener("resize", handleResize);

return () => {
window.removeEventListener("scroll", handleScroll);
window.removeEventListener("resize", handleResize);
window.removeEventListener("scroll", handleScroll);
};
}, []);

Expand Down
File renamed without changes.
File renamed without changes.