@@ -7,28 +7,39 @@ import AngularLogo from "../../../../public/icons/angularjs-logo.svg";
7
7
import ReactLogo from "../../../../public/icons/reactjs-logo.svg" ;
8
8
import GitLogo from "../../../../public/icons/git-logo.svg" ;
9
9
import OtherLogo from "../../../../public/icons/other-logo.svg" ;
10
+ import AddIcon from "../../../../public/icons/add-icon.svg" ;
10
11
11
- import { Technology } from "./Technology" ;
12
+ import { Technology , TechnologyLink } from "./Technology" ;
12
13
13
14
const technologyFilters = [
14
- { href : "html" , title : "HTML" , icon : < HTMLLogo /> } ,
15
- { href : "css" , title : "CSS" , icon : < CSSLogo /> } ,
16
- { href : "js" , title : "JS" , icon : < JavaScriptLogo /> } ,
17
- { href : "angular" , title : "Angular" , icon : < AngularLogo /> } ,
18
- { href : "react" , title : "React" , icon : < ReactLogo /> } ,
19
- { href : "git" , title : "Git" , icon : < GitLogo /> } ,
20
- { href : "other" , title : "Inne" , icon : < OtherLogo /> } ,
15
+ { technology : "html" , technologyTitle : "HTML" , icon : < HTMLLogo /> } ,
16
+ { technology : "css" , technologyTitle : "CSS" , icon : < CSSLogo /> } ,
17
+ { technology : "js" , technologyTitle : "JS" , icon : < JavaScriptLogo /> } ,
18
+ { technology : "angular" , technologyTitle : "Angular" , icon : < AngularLogo /> } ,
19
+ { technology : "react" , technologyTitle : "React" , icon : < ReactLogo /> } ,
20
+ { technology : "git" , technologyTitle : "Git" , icon : < GitLogo /> } ,
21
+ { technology : "other" , technologyTitle : "Inne" , icon : < OtherLogo /> } ,
21
22
] as const ;
22
23
23
24
export const TechnologyFilter = ( ) => {
24
25
return (
25
26
< QuestionsSidebarSection title = "Wybierz technologię" >
26
27
< ul className = "flex justify-between gap-x-4 overflow-x-auto px-4 pb-4 sm:flex-wrap sm:gap-x-0 sm:gap-y-5 sm:overflow-x-visible sm:p-0 small-filters:gap-y-2" >
27
28
{ technologyFilters . map ( ( tech ) => (
28
- < li key = { tech . href } className = "pt-1" >
29
+ < li key = { tech . technology } className = "pt-1" >
29
30
< Technology { ...tech } />
30
31
</ li >
31
32
) ) }
33
+ < li className = "pt-1" >
34
+ < TechnologyLink
35
+ href = "https://github.com/typeofweb/devfaq/issues/new"
36
+ icon = { < AddIcon className = "text-green-700" /> }
37
+ title = "Czegoś brakuje? Zasugeruj dodanie nowej technologii"
38
+ label = "Dodaj"
39
+ target = "_blank"
40
+ transparent = { true }
41
+ />
42
+ </ li >
32
43
</ ul >
33
44
</ QuestionsSidebarSection >
34
45
) ;
0 commit comments