-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
117 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
import { useState } from "react"; | ||
import Service from "../service-instance/Service"; | ||
import serviceStyles from "@/styles/serviceform.module.scss" | ||
import Service from "../service-instance/Service" | ||
|
||
export default function ServiceForm({ setService }:any) { | ||
export default function ServiceForm({ setService }: any) { | ||
// const [service, setService] = useState<string>(''); | ||
// console.log("service", service); | ||
const handleSubmit = (event: React.FormEvent) => { | ||
event.preventDefault(); | ||
event.preventDefault() | ||
} | ||
|
||
return ( | ||
<div className={serviceStyles.form} onSubmit={handleSubmit} > | ||
<Service value={'Farmer'} setService={setService} /> | ||
<Service value={'Service Provider'} setService={setService} /> | ||
<Service value={'Input Seller'} setService={setService} /> | ||
<Service value={'Investor'} setService={setService} /> | ||
<Service value={'Direct-to-Farm Buyer'} setService={setService} /> | ||
<Service value={'Processing Storage'} setService={setService} /> | ||
<div className=" m-auto flex w-3/6 flex-col justify-center align-middle "> | ||
<div className=" mb-4 mt-8"> | ||
<h1 className="signup-text mb-4 mt-8 text-3xl"> | ||
Firstly, who are you? | ||
</h1> | ||
</div> | ||
|
||
<div className={serviceStyles.form} onSubmit={handleSubmit}> | ||
<Service value={"Farmer"} setService={setService} /> | ||
<Service value={"Service Provider"} setService={setService} /> | ||
<Service value={"Input Seller"} setService={setService} /> | ||
<Service value={"Investor"} setService={setService} /> | ||
<Service value={"Direct-to-Farm Buyer"} setService={setService} /> | ||
<Service value={"Processing Storage"} setService={setService} /> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,60 @@ | ||
.service { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 360px; | ||
height: 104px; | ||
// margin: 40px; | ||
position: relative; | ||
background: #ffffff; | ||
box-shadow: 0px 1px 7px rgba(100, 111, 112, 0.17); | ||
border-radius: 10px; | ||
transition: transform 0.2s ease-in-out; | ||
|
||
&:hover { | ||
border: 1px solid #45dfa9; | ||
transform: translateY(-3px); | ||
cursor: pointer; | ||
} | ||
|
||
.description { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
flex-direction: row; | ||
align-items: center; | ||
width: 360px; | ||
height: 88px; | ||
margin: 40px; | ||
position: relative; | ||
background: #FFFFFF; | ||
box-shadow: 0px 1px 7px rgba(100, 111, 112, 0.17); | ||
border-radius: 10px; | ||
transition: transform 0.2s ease-in-out; | ||
|
||
&:hover { | ||
border: 1px solid #45DFA9; | ||
transform: translateY(-3px); | ||
cursor: pointer; | ||
} | ||
|
||
.description { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
padding: 12px 24px 12px 16px; | ||
gap: 16px; | ||
} | ||
|
||
input[type="radio"] { | ||
position: absolute; | ||
right: 10px; | ||
top: 10px; | ||
width: 20px; | ||
height: 20px; | ||
accent-color: #03656B; | ||
mix-blend-mode: multiply; | ||
} | ||
|
||
|
||
|
||
|
||
.icon { | ||
background: linear-gradient(180deg, rgba(69, 223, 169, 0.23) 20.14%, rgba(255, 255, 255, 0) 100%); | ||
border: 1px solid linear-gradient(180deg, rgba(69, 223, 169, 0.23) 20.14%, rgba(255, 255, 255, 0) 100%); | ||
border-radius: 50%; | ||
width: 30px; | ||
height: 30px; | ||
padding: 7px; | ||
} | ||
|
||
padding: 12px 24px 12px 16px; | ||
gap: 16px; | ||
} | ||
|
||
input[type="radio"] { | ||
position: absolute; | ||
right: 10px; | ||
top: 50px; | ||
width: 20px; | ||
height: 20px; | ||
accent-color: #03656b; | ||
mix-blend-mode: multiply; | ||
} | ||
|
||
.icon { | ||
background: linear-gradient( | ||
180deg, | ||
rgba(69, 223, 169, 0.23) 20.14%, | ||
rgba(255, 255, 255, 0) 100% | ||
); | ||
border: 1px solid | ||
linear-gradient( | ||
180deg, | ||
rgba(69, 223, 169, 0.23) 20.14%, | ||
rgba(255, 255, 255, 0) 100% | ||
); | ||
border-radius: 50%; | ||
width: 30px; | ||
height: 30px; | ||
padding: 7px; | ||
} | ||
} | ||
|
||
|
||
|
||
:export { | ||
myClass: string; | ||
} | ||
myClass: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
|
||
|
||
.form{ | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
place-items: center; | ||
gap: 10px; | ||
justify-content: center; | ||
.form { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
place-items: center; | ||
gap: 10px; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$primary-color: #45dfa9; | ||
$secondary-color: #02575d; | ||
$secondary-color-60: #3a868a; | ||
$tertiary-color: #03656b; | ||
$tertiary-color-60: #98c0c3; | ||
$tertiary-color-80: #bed6cd; | ||
$progress-color: #ffb84c; | ||
$neutral-color: #edf0f0; | ||
$primary-font: "Inter Tight", sans-serif; |