Skip to content

Commit

Permalink
fix: tips.tsx styling (#381)
Browse files Browse the repository at this point in the history
* feat: Add tips link to footer

* feat: add TailwindCSS to Tip.tsx

* cleanup: delete tips.css

* fix: image responsiveness for mobile and xl sizes
  • Loading branch information
danyalasif authored Aug 16, 2022
1 parent bd902ab commit 4f99033
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
3 changes: 3 additions & 0 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ const FooterMenu = () => {
<Link to="/organizations" className="link link-hover">
Organizations
</Link>
<Link to="/tips" className="link link-hover">
Tips
</Link>
</article>
</Footer>
);
Expand Down
16 changes: 9 additions & 7 deletions src/components/tips/Tips.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { PawHubContainer } from "components/layout/Grid/PetCardFlex";
import { Button } from "react-daisyui";
import { Link } from "react-router-dom";

import AdoptionPet from "./adoption-pet.jpg";

export default function Tips() {
return (
<PawHubContainer>
<div className=" ">
<h1 className="mb-4 text-decoration-underline">
<h1 className="text-5xl font-bold font-amatic mb-10">
Tips to adopting Pets
</h1>
<p>
Expand All @@ -33,7 +33,7 @@ export default function Tips() {
</div>
<hr />
{/* ------------------------------------------------- */}
<div className="tips__PawHubContainer">
<div className="text-center mt-8">
<h1 className="mb-4" text-decoration-underline>
Final steps to guide you on how to best adopt or rehome a dog
</h1>
Expand Down Expand Up @@ -74,14 +74,14 @@ export default function Tips() {
</a>
.
</p>
<p className="tips__paragraph-bold">
<p className="font-bold">
Pawternity Hub wants to help you stay safe and help you find a friend
that can keep you company during the pandemic. Check out the links
below for more information about adoption during Covid-19.
</p>
</div>
<hr />
<div className="tips__PawHubContainer">
<div className="text-center mt-8">
<h5>
When you finally get your new pup home, be the best dog owner you can
be! Have fun with your dog, love your dog, and include him in your
Expand All @@ -94,11 +94,13 @@ export default function Tips() {
</h5>
<img
src={AdoptionPet}
className="adoption__pet mb-2 d-block mx-auto "
className="w-[350px] lg:w-[50%] rounded-[2%] mb-2 d-block mx-auto "
alt="Adoption pet"
/>

<Button color="primary">Adopt</Button>
<Link to="/pets" className="btn btn-primary">
Adopt
</Link>
</div>
</PawHubContainer>
);
Expand Down
19 changes: 0 additions & 19 deletions src/components/tips/tips.css

This file was deleted.

0 comments on commit 4f99033

Please sign in to comment.