-
Notifications
You must be signed in to change notification settings - Fork 36
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
1 parent
c987e0e
commit d6b6105
Showing
17 changed files
with
113 additions
and
351 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const BinaryCode = () => { | ||
return ( | ||
<div | ||
className="opacity-20 text-vanilla-100 font-bold font-['Inter']" | ||
style={{ position: "relative",paddingLeft: "70%", top: "-300px" }} | ||
><p style={{fontSize:48}}> | ||
01111001010111100101 | ||
<br /> 110111010110111100101 | ||
<br /> 1101110101101111001{" "} | ||
<br /> | ||
<br /> 10111100101</p> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
type GeneralFilterProps = { | ||
filter: string | number | readonly string[] | undefined; | ||
setFilter: (filter: string | number | readonly string[] | undefined) => void; | ||
}; | ||
|
||
export const GeneralFilter = ({ filter, setFilter }: GeneralFilterProps) => { | ||
return ( | ||
<input type="text" value={filter} onChange={(e) => setFilter(e.target.value)} placeholder="Search Repositories" className="flex-1 mx-2 border rounded-sm p-2 mb-4" /> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Select from "react-select"; | ||
|
||
type LanguageFilterProps = { | ||
setSelectedLanguages: (languages: string[]) => void; | ||
languageOptions: { value: string; label: string }[]; | ||
}; | ||
|
||
export const LanguageFilter = ({ setSelectedLanguages, languageOptions }: LanguageFilterProps) => { | ||
return ( | ||
<> | ||
<label className="p-2">Filter by Language</label> | ||
<Select isMulti closeMenuOnSelect={false} className="flex-1 mx-2 rounded-sm p-2 mb-4" onChange={(selectedOptions) => setSelectedLanguages(selectedOptions.map((option) => option.value))} options={languageOptions} classNamePrefix="select" /> | ||
</> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Select from "react-select"; | ||
|
||
type SDGFilterProps = { | ||
setSelectedTopics: (topics: string[]) => void; | ||
topicOptions: { value: string; label: string }[]; | ||
}; | ||
|
||
export const SDGFilter = ({ setSelectedTopics, topicOptions }: SDGFilterProps) => { | ||
return ( | ||
<> | ||
<label className="p-2">Sustainable Development Goal (SDG)</label> | ||
<Select | ||
isMulti | ||
className="flex-1 mx-2 rounded-sm p-2 mb-4" | ||
options={topicOptions} | ||
getOptionLabel={(option) => option.label} | ||
getOptionValue={(option) => option.value ?? ""} | ||
onChange={(selectedOptions) => | ||
setSelectedTopics(selectedOptions.map((option) => option.value ?? "")) | ||
} | ||
/> | ||
</> | ||
); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.