Skip to content

Commit

Permalink
update: UI/UX of footer
Browse files Browse the repository at this point in the history
add: companyDataConstants
  • Loading branch information
isarojdahal committed Oct 5, 2024
1 parent da03f17 commit 1292135
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 39 deletions.
23 changes: 8 additions & 15 deletions src/UI/pages/Contact.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from "@tanstack/react-router";
import { RectButton } from "./RectButton";
import { companyDataConstants } from '@/constants/companyData.constant'
import { RectButton } from './RectButton'

export const Contact = () => {
return (
Expand All @@ -13,21 +13,14 @@ export const Contact = () => {
type="text"
value="[email protected]"
></input>
<RectButton
tailwind_class="btn-primary rounded-l-none h-full absolute top-0 right-0 border-black dark:border-white active:scale-100"
label="Send Email"
/>
</div>
<div className="mx-auto">
<Link to={"/faq"}>
<a href={`mailto:${companyDataConstants.email}`}>
<RectButton
tailwind_class="btn-secondary border bg-yellow-tertiary border-black dark:border-white"
label="Need help?"
tailwind_class="btn-primary rounded-l-none h-full absolute top-0 right-0 border-black dark:border-white active:scale-100"
label="Send Email"
/>
</Link>
</a>
</div>
<div></div>
</div>
// </div>
);
};
)
}
51 changes: 27 additions & 24 deletions src/UI/pages/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
import { Button } from '@/UI/shadcn/ui/button'
import { Link } from '@tanstack/react-router'
import { companyDataConstants } from '@/constants/companyData.constant'
import { Linkedin, MapPin } from 'lucide-react'

export const Footer = () => {
return (
<footer className="max-w-4xl mx-auto w-full grid sm:grid-cols-2 gap-8 pt-8">
<div className="space-y-4">
<h2 className="text-2xl font-semibold tracking-tight">CONTACT US</h2>
<p>Lokanthali, Bhaktapur</p>
<p className="flex items-center gap-2">
<MapPin className="h-5 w-5" />
Bhaktapur, Nepal
</p>
</div>
<div className="space-y-4">
<h2 className="text-2xl font-semibold tracking-tight">FOLLOW US</h2>
<div className="flex gap-4">
<Link
to="https://linkedin.com/company/28softwares"
target="_blank"
rel="noreferrer"
>
<Button variant="ghost" size="icon" className="hover:bg-gray-800">
<Linkedin className="h-6 w-6" />
<span className="sr-only">LinkedIn</span>
</Button>
</Link>
<footer className="p-10">
<div className="flex gap-10">
<div className="space-y-4">
<h2 className="text-2xl font-semibold tracking-tight">CONTACT US</h2>
<p>{companyDataConstants.address}</p>
<p className="flex items-center gap-2">
<MapPin className="h-5 w-5" />
Bhaktapur, Nepal
</p>
</div>
<div className="space-y-4">
<h2 className="text-2xl font-semibold tracking-tight">FOLLOW US</h2>
<div className="flex gap-4">
<a
href={companyDataConstants.socials.linkedin}
target="_blank"
rel="noreferrer"
>
<Button variant="ghost" size="icon" className="hover:bg-gray-800">
<Linkedin className="h-6 w-6" />
<span className="sr-only">LinkedIn</span>
</Button>
</a>
</div>
</div>
</div>

<div className="flex justify-center font-ubuntu pb-10 text-center">
Copyright © 2024 | 28Softwares
Copyright © {companyDataConstants.foundedYear} -{' '}
{new Date().getFullYear()} | 28Softwares Pvt. Ltd.
</div>
</footer>
)
Expand Down
11 changes: 11 additions & 0 deletions src/constants/companyData.constant.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const companyDataConstants = {
name: '28Softwares',
address: 'Lokanthali, Bhaktapur',
location: 'Bhaktapur, Nepal',
foundedYear: 2024,
email: '[email protected]',

socials: {
linkedin: 'https://linkedin.com/company/28softwares/',
},
}

0 comments on commit 1292135

Please sign in to comment.