Skip to content

Commit

Permalink
Added routing for clients and routing data
Browse files Browse the repository at this point in the history
  • Loading branch information
Hooobot committed Nov 14, 2023
1 parent 2e395a9 commit 1423a0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Clients.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const Clients = () => {
setClients(getClients());
}, []);

const handleClientImageClick = (url) => {
window.open(url, "_blank");
};

return (
<div className="pt-20">
<h2 className="text-4xl xl:text-7xl pt-10 drop-shadow-xl text-center py-20">
Expand All @@ -18,12 +22,14 @@ const Clients = () => {
<div className="flex items-center justify-center pb-40">
{clients.map((client) => (
<Image
onClick={() => handleClientImageClick(client.url)}
key={client.id}
alt={client.alt}
src={client.src}
width={client.width}
height={client.height}
className={client.className}
style={{ cursor: "pointer" }}
/>
))}
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/data/webData.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ const data = {
width: 500,
height: 500,
className: "h-full w-1/3 lg:w-1/4 ",
hasWebsite: true,
url: "https://hawaiizoningatlas.com/",
},
{
id: 2,
Expand All @@ -149,6 +151,8 @@ const data = {
width: 500,
height: 500,
className: "h-full w-1/3 lg:w-1/4 ",
hasWebsite: true,
url: "https://www.civilbeatlawcenter.org/",
},
],
focus: [
Expand Down

0 comments on commit 1423a0e

Please sign in to comment.