File tree Expand file tree Collapse file tree 6 files changed +21
-6
lines changed
Expand file tree Collapse file tree 6 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 11import {
2- repositoryUrl ,
2+ documentationUrl ,
33} from "../contents/constants" ;
4+
45import { useTranslation } from "react-i18next" ;
6+ import { Icon } from "design-react-kit" ;
57
68// let timer = null;
79// let lastGen = null;
@@ -45,11 +47,20 @@ export const Head = (): JSX.Element => {
4547 < div className = "content__head__title" > { t ( "editor.title" ) } </ div >
4648 < div className = "content__head__help" >
4749 < div >
48- < a href = { repositoryUrl } rel = "noopener noreferrer" target = "_blank" >
50+ < a href = { documentationUrl } rel = "noopener noreferrer" target = "_blank" >
51+ < Icon icon = "it-info-circle" />
4952 { t ( "editor.needhelp" ) }
5053 </ a >
5154 </ div >
5255 < div >
56+ < a
57+ href = "https://github.com/italia/publiccode-editor"
58+ rel = "noopener noreferrer"
59+ target = "_blank"
60+ >
61+ < Icon icon = "it-github" />
62+ { t ( "editor.source_code" ) }
63+ </ a >
5364 { /* {info && (
5465 <span className="content__head__status">
5566 {t("editor.lastgeneration")}: {info}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export const {
88 // eslint-disable-next-line no-undef
99} = process . env ;
1010
11- export const repositoryUrl = `https://docs.italia.it/italia/developers-italia/publiccodeyml/it/master/ ` ;
11+ export const documentationUrl = `https://yml.publiccode.tools ` ;
1212export const versionsUrl = `https://api.github.com/repos/${ REPOSITORY } /contents/version` ;
1313export const SAMPLE_YAML_URL = `https://raw.githubusercontent.com/italia/publiccode-editor/master/publiccode.yml` ;
1414export const elasticUrl = ELASTIC_URL || "" ;
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ $head-background-color: #fdfdfd;
2929
3030.content__head__help {
3131 margin : 10px 20px 0 ;
32- height : 100 % ;
32+ height : 40 px ;
3333
3434 display : flex ;
35- flex-direction : column ;
35+ flex-direction : row ;
3636 align-items : flex-end ;
37- justify-content : space-around ;
37+ justify-content : space-between ;
3838 text-align : right ;
3939
4040 a {
@@ -44,6 +44,7 @@ $head-background-color: #fdfdfd;
4444 font-size : 16px ;
4545 font-weight : bold ;
4646 line-height : 24px ;
47+ padding-left : 2rem ;
4748 }
4849}
4950
Original file line number Diff line number Diff line change 33 "cancel" : " Cancel" ,
44 "title" : " publiccode.yml Editor" ,
55 "needhelp" : " Need Help?" ,
6+ "source_code" : " Source code" ,
67 "lastgeneration" : " Last generation" ,
78 "addlanguage" : " add language to the publiccode.yml file..." ,
89 "readmore" : " Read more" ,
Original file line number Diff line number Diff line change 33 "cancel" : " Cancel" ,
44 "title" : " publiccode.yml Editor" ,
55 "needhelp" : " Need Help?" ,
6+ "source_code" : " Source code" ,
67 "lastgeneration" : " Last generation" ,
78 "addlanguage" : " add language to the publiccode.yml file..." ,
89 "readmore" : " Read more" ,
Original file line number Diff line number Diff line change 33 "cancel" : " Annulla" ,
44 "title" : " publiccode.yml Editor" ,
55 "needhelp" : " Aiuto?" ,
6+ "source_code" : " Codice sorgente" ,
67 "lastgeneration" : " Ultimo aggiornamento" ,
78 "addlanguage" : " aggiungi lingua al file publiccode.yml..." ,
89 "readmore" : " Leggi di più" ,
You can’t perform that action at this time.
0 commit comments