Skip to content

Commit

Permalink
add radio button
Browse files Browse the repository at this point in the history
  • Loading branch information
OGreeni committed Dec 7, 2023
1 parent dc97c14 commit 93f1d1a
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 29 deletions.
50 changes: 25 additions & 25 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions frontend/src/app/components/RadioButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
interface RadioButtonProps {
value: string;
}

export default function RadioButton(props: RadioButtonProps) {
const { value } = props;

return (
<input
type="radio"
value={value}
className="bg-[#D9D9D9] focus:ring-secondary text-secondary"
/>
);
}
26 changes: 22 additions & 4 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ import { useState } from "react";
import SectionTitle from "@/app/components/SectionTitle";
import InfoCard from "./components/homepage/InfoCard";
import Button from "./components/Button";
import Checkbox from "@/app/components/Checkbox";
import RadioButton from "@/app/components/RadioButton";

// TODO: add HTML semantic elements.
export default function Home() {
return (
<div className="flex flex-col gap-14 leading-10">
<RadioButton value={"awd"} />
<section className="h-[515px] w-full relative">
<Image
src="/images/animals.jpeg"
Expand Down Expand Up @@ -41,7 +44,10 @@ export default function Home() {
We Provide
</div>
<div className="flex justify-center gap-12 mt-10">
<InfoCard title="Pet Food" icon="streamline:nature-ecology-bone-pet-dog-bone-food-snack" />
<InfoCard
title="Pet Food"
icon="streamline:nature-ecology-bone-pet-dog-bone-food-snack"
/>
<InfoCard title="Pet Supplies" icon="tennis-ball" />
<InfoCard title="Pet Medical Services" icon="med-services" />
</div>
Expand Down Expand Up @@ -77,9 +83,21 @@ export default function Home() {
<Button text="Learn More" />
</div>
<div className="flex justify-center gap-6 me-[105px] mt-4">
<InfoCard icon="gg:check-o" title="1. Eligibility" description="See if you qualify to receive our services" />
<InfoCard icon="ant-design:form-outlined" title="2. Register" description="Fill out our Program Interest Form" />
<InfoCard icon="bi:box-fill" title="3. Connect" description="Get Connected with AniMeals Services" />
<InfoCard
icon="gg:check-o"
title="1. Eligibility"
description="See if you qualify to receive our services"
/>
<InfoCard
icon="ant-design:form-outlined"
title="2. Register"
description="Fill out our Program Interest Form"
/>
<InfoCard
icon="bi:box-fill"
title="3. Connect"
description="Get Connected with AniMeals Services"
/>
</div>
</section>
<section className="pv-10 flex gap-5 flex-col">
Expand Down

0 comments on commit 93f1d1a

Please sign in to comment.