Skip to content

Commit

Permalink
dg commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyagothi committed Nov 8, 2024
1 parent 771fa96 commit 0a71f93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/Pages/contributor.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useEffect, useState } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
import backicon from '../assets/svg/backicon.svg';
import { useNavigate } from 'react-router-dom';

const ContributorCard = ({ login, avatar_url, html_url, contributions, type }) => (
<motion.div
Expand Down Expand Up @@ -59,6 +61,8 @@ const contributor = () => {
const [repoStats, setRepoStats] = useState({});
const [loading, setLoading] = useState(true);
const [email, setEmail] = useState('');
const navigate = useNavigate();
const HomeClick = () => navigate('/');

useEffect(() => {
document.title = 'Station Saarthi | Contributors';
Expand Down Expand Up @@ -97,6 +101,9 @@ const contributor = () => {
return (
<div className="min-h-screen bg-gray-50">
{/* Hero Section */}
<button onClick={HomeClick} className='absolute top-0 left-0 z-[99]'>
<img src={backicon} alt="" className='h-[9vh]' />
</button>
<section className="relative h-[70vh] flex items-center justify-center text-center bg-gradient-to-r from-blue-600 to-purple-600">
<div className="absolute inset-0 bg-black opacity-50" />
<div className="relative z-10 max-w-4xl px-4 mx-auto space-y-6">
Expand Down

0 comments on commit 0a71f93

Please sign in to comment.