Skip to content

Commit

Permalink
Merge pull request #100 from IEEEUCSC/udeesha_dev
Browse files Browse the repository at this point in the history
Added Hash link
  • Loading branch information
Udeesha-Prabhashana authored Feb 4, 2024
2 parents c630550 + dad2575 commit eeafca2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Frontend/src/Components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './Card.css'

// Data
import data from './data.json';
import { WidthFull } from '@mui/icons-material';
// import { WidthFull } from '@mui/icons-material';

const Carousel: React.FC = (): ReactElement => {
const maxScrollWidth = useRef<number>(0);
Expand Down
13 changes: 6 additions & 7 deletions Frontend/src/Components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ const Navbar: React.FC = () => {
</a>
)
))}

{/* Conditionally render Register Now button for non-mobile screens */}
{!isOpen && (
<a
href="/team"
className="relative rounded pt-3 px-3 py-1 overflow-hidden group bg-secondary hover:bg-gradient-to-r hover:from-violet-700 hover:to-purple-900 text-white hover:ring-1 hover:ring-offset-1 hover:ring-white transition-all ease-out duration-500 md:align-middle md:items-center mx-auto" // Add mt-2 to move the button up
>
<span className="absolute right-0 -pb-2 w-8 h-32 transition-all duration-1000 transform translate-x-12 bg-tertiary opacity-10 rotate-12 group-hover:-translate-x-40 ease"></span>
<span className="relative text-center p-2 pb-3 tracking-widest">Register Now</span>
</a>
<HashLink smooth to="/team" className="relative rounded px-3 py-2 overflow-hidden group bg-secondary hover:bg-gradient-to-r hover:from-violet-700 hover:to-purple-900 text-white hover:ring-1 hover:ring-offset-1 hover:ring-white transition-all ease-out duration-500 md:align-middle md:items-center mx-auto">
<span className="absolute right-0 w-8 h-32 -mt-12 transition-all duration-1000 transform translate-x-12 bg-tertiary opacity-10 rotate-12 group-hover:-translate-x-40 ease"></span>
<span className="relative text-center">Register Now</span>
</HashLink>

)}
</div>
Expand Down

0 comments on commit eeafca2

Please sign in to comment.