Skip to content

Commit 2350f25

Browse files
committed
updated project
1 parent 2ef7e32 commit 2350f25

14 files changed

Lines changed: 691 additions & 386 deletions

README.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,56 @@
11
# learnhub
2-
learnhub Educaiton Website
2+
3+
**Master New Skills Online — Anytime, Anywhere.**
4+
Join over 50,000+ students learning from world-class mentors. Transform your career with industry-leading courses.
5+
6+
## ✅ What is LearnHub
7+
8+
LearnHub is a static website template for an online learning platform — showcasing courses, mentors, community features, pricing plans and more.
9+
It’s designed to help learners explore courses, join communities, and pursue new skills through web-development, design, data science, marketing, and more.
10+
11+
## Getting Started
12+
13+
1. Clone or download the repository
14+
2. Install dependencies: `npm install`
15+
3. Run the development server: `npm dev`
16+
4. Open your browser and navigate to `http://localhost:3000`
17+
18+
## Features
19+
20+
- Showcases a variety of courses (Web Development, UI/UX Design, Data Science, Digital Marketing, etc.) with course details, duration, price, and enrollment call-to-action.
21+
- Display of mentors / instructors with their expertise and ratings.
22+
- Community section: allows students to connect, form study-groups, participate in discussions, join live sessions, collaborate on projects, and get peer support.
23+
- Testimonials section to highlight user success stories.
24+
- Transparent pricing plans: free tier, pro subscription, and enterprise/team plans.
25+
- Modern responsive design, clean UI — ready to deploy as a static website (e.g. via GitHub Pages).
26+
27+
## Folder Structure
28+
29+
```
30+
inapp/
31+
├── src/
32+
│ ├── assest/ # Static assets
33+
│ │ ├── images/ # Images
34+
│ │ ├── js/ # JS
35+
│ │ ├── scss/ # CSS and styling
36+
│ └── Homepage # Index.html
37+
├── vite.config.js/ # Config Files
38+
├── package.json # Project dependencies
39+
├── README.md # Documentation
40+
└── .gitignore # Git ignore file
41+
```
42+
43+
## Requirements
44+
45+
- Node.js 14+
46+
- npm or yarn
47+
- Modern web browser
48+
49+
50+
## Support Contact
51+
52+
For support, please reach out to:
53+
54+
- Contact us: [Codescandy](https://codescandy.com/contact-us/)
55+
56+
We are here to help you with any questions or issues you may have!
24.1 KB
Loading
126 KB
Loading
21.8 KB
Loading
519 Bytes
Loading
1.25 KB
Loading
15 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

src/assets/images/hero-img.jpg

15.9 MB
Loading

src/assets/js/custom.js

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
11

22

33

4-
import "./glight.js"
4+
import "./glight.js"
5+
6+
7+
8+
// Smooth Scroll
9+
document.querySelectorAll('.nav-link[href^="#"]').forEach(link => {
10+
link.addEventListener('click', function (e) {
11+
e.preventDefault();
12+
13+
const target = document.querySelector(this.getAttribute('href'));
14+
if (target) {
15+
window.scrollTo({
16+
top: target.offsetTop - 80, // adjust for sticky navbar height
17+
behavior: "smooth"
18+
});
19+
}
20+
});
21+
});
22+
23+
// Active link on scroll
24+
const sections = document.querySelectorAll("section[id]");
25+
const navLinks = document.querySelectorAll(".nav-link");
26+
27+
window.addEventListener("scroll", () => {
28+
let scrollPos = window.scrollY + 100; // offset
29+
30+
sections.forEach(sec => {
31+
if (scrollPos >= sec.offsetTop && scrollPos < sec.offsetTop + sec.offsetHeight) {
32+
navLinks.forEach(link => {
33+
link.classList.remove("active");
34+
if (link.getAttribute("href") === `#${sec.id}`) {
35+
link.classList.add("active");
36+
}
37+
});
38+
}
39+
});
40+
});

0 commit comments

Comments
 (0)