Skip to content

Commit

Permalink
fix: can't direct access /contact/* content
Browse files Browse the repository at this point in the history
  • Loading branch information
fanesz committed Nov 27, 2024
1 parent 7a4b5ca commit 2876d9c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
9 changes: 5 additions & 4 deletions src/common/components/dropdown.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Popover, PopoverButton, PopoverPanel } from "@headlessui/react";
import { useState } from "react";
import { useNavigate } from "react-router-dom";

export const Dropdown = ({ label, listMenu }) => {
const navigate = useNavigate();
const [dropdown, setDropdown] = useState(false);
Expand Down Expand Up @@ -37,13 +38,13 @@ export const Dropdown = ({ label, listMenu }) => {
</PopoverButton>
<PopoverPanel className="flex flex-col z-50 bg-dark-blue rounded-b-lg gap-3 lg:fixed py-3 px-5">
{listMenu.map((data, index) => (
<a
<span
key={index}
href={data.link}
className="text-white hover:text-gray-400"
onClick={() => navigate(data.link)}
className="text-white hover:text-gray-400 cursor-pointer"
>
{data.name}
</a>
</span>
))}
</PopoverPanel>
</Popover>
Expand Down
2 changes: 1 addition & 1 deletion src/views/home/components/jumbotron.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Jumbotron = () => {

<div className="lg:w-1/4 w-40 mx-auto lg:mx-0">
<a
className="btn w-full rounded-full text-white p-3"
className="btn w-full rounded-full text-white p-3 cursor-pointer"
style={{ backgroundColor: "#1f4287" }}
href="https://docs.google.com/forms/d/e/1FAIpQLSfgIcdM-wJ9MLHXz6x4cyQyxvnhcUSrk6v3p4awjuxj4a86pw/viewform"
target="_blank"
Expand Down

0 comments on commit 2876d9c

Please sign in to comment.