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 Issue of build and add recruitment page. #3

Merged
merged 1 commit into from
Feb 17, 2025
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
6 changes: 3 additions & 3 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Code2, Users, Trophy, Home, LogIn, LogOut, UserPlus, User, FolderGit2, InfoIcon } from 'lucide-react';
import { Code2, Users, Trophy, Home, LogIn, LogOut, UserPlus, User, FolderGit2 } from 'lucide-react';
import { Link, useLocation, useNavigate } from 'react-router-dom';
import { useAuth } from '../contexts/AuthContext';
import { toast } from 'react-toastify';
Expand Down Expand Up @@ -39,7 +39,7 @@ export default function Navbar() {
<NavLinkMobile to="/coins" icon={<Code2 className="w-4 h-4" />} text="Dev Coins" active={isActive('/coins')} />
<NavLinkMobile to="/members" icon={<Users className="w-4 h-4" />} text="Members" active={isActive('/members')} />
<NavLinkMobile to="/leaderboard" icon={<Trophy className="w-4 h-4" />} text="Leaderboard" active={isActive('/leaderboard')} />
<NavLinkMobile to="/about" icon={<InfoIcon className="w-4 h-4" />} text="About Us" active={isActive('/about')} />
<NavLinkMobile to="https://recruitment.nstsdc.org/" icon={<UserPlus className="w-4 h-4" />} text="Recruitment" active={isActive('/recruitment')} />
</ul>
</div>
<Link to="/" className="btn btn-ghost normal-case text-xl gap-2 ml-2">
Expand All @@ -55,7 +55,7 @@ export default function Navbar() {
<NavLink to="/coins" icon={<Code2 className="w-4 h-4" />} text="Dev Coins" active={isActive('/coins')} />
<NavLink to="/members" icon={<Users className="w-4 h-4" />} text="Members" active={isActive('/members')} />
<NavLink to="/leaderboard" icon={<Trophy className="w-4 h-4" />} text="Leaderboard" active={isActive('/leaderboard')} />
<NavLink to="/about" icon={<InfoIcon className="w-4 h-4" />} text="About Us" active={isActive('/about')} />
<NavLink to="https://recruitment.nstsdc.org/" icon={<UserPlus className="w-4 h-4" />} text="Recruitment" active={isActive('recruitment')} />
</ul>
</div>

Expand Down
13 changes: 11 additions & 2 deletions src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Code2, FolderKanban, Github, Terminal } from 'lucide-react';
import { Code2, FolderKanban, Github, Terminal, UserPlus } from 'lucide-react';
import { Link } from 'react-router-dom';

export default function HomePage() {
Expand Down Expand Up @@ -86,7 +86,16 @@ export default function HomePage() {
Learn modern technologies, build amazing projects, and grow your skills with like-minded developers.
</p>
<div className="flex gap-6 flex-wrap justify-center lg:justify-start">
<Link to="/signup" className="btn btn-primary">Get Started</Link>
<a
href="https://recruitment.nstsdc.org/"
target="_blank"
rel="noopener noreferrer"
className="btn btn-primary"
>
<UserPlus className="w-5 h-5 mr-2" />
Join
</a>

<a
href="https://github.com/nst-sdc"
target="_blank"
Expand Down
12 changes: 12 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,16 @@ export default defineConfig({
optimizeDeps: {
exclude: ['lucide-react'],
},
build: {
chunkSizeWarningLimit: 1000,
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
return id.toString().split('node_modules/')[1].split('/')[0];
}
}
}
}
}
});