Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching feature #4

Merged
merged 18 commits into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/Flags/En.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const En = (props) => {
<Icon viewBox="0 0 640 480" {...props}>
<defs>
<clipPath id="a">
<path fill-opacity=".7" d="M-85.3 0h682.6v512H-85.3z"/>
<path fillOpacity=".7" d="M-85.3 0h682.6v512H-85.3z"/>
Copy link
Owner Author

@kalwalt kalwalt Mar 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i get an error with these svg attributes: fill-opacity, clip-path, stroke-width, fill-rule, respectively to change in fillOpacity, clipPath, strokeWidth, fillRule.

</clipPath>
</defs>
<g clip-path="url(#a)" transform="translate(80) scale(.94)">
<g stroke-width="1pt">
<g clipPath="url(#a)" transform="translate(80) scale(.94)">
<g strokeWidth="1pt">
<path fill="#012169" d="M-256 0H768v512H-256z"/>
<path fill="#fff" d="M-256 0v57.2L653.5 512H768v-57.2L-141.5 0H-256zM768 0v57.2L-141.5 512H-256v-57.2L653.5 0H768z"/>
<path fill="#fff" d="M170.7 0v512h170.6V0H170.7zM-256 170.7v170.6H768V170.7H-256z"/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Flags/It.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Icon from 'react-icon-base';
const It = (props) => {
return (
<Icon viewBox="0 0 640 480" {...props}>
<g fill-rule="evenodd" stroke-width="1pt">
<g fillRule="evenodd" strokeWidth="1pt">
<path fill="#fff" d="M0 0h640v480H0z"/>
<path fill="#009246" d="M0 0h213.3v480H0z"/>
<path fill="#ce2b37" d="M426.7 0H640v480H426.7z"/>
Expand Down
4 changes: 0 additions & 4 deletions src/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import articleId from '../data/articleTree'

const getIdUrl = (id, langKey) => {
if(id){
console.log("inside the Id getter");
var res;
switch (langKey) {
//we get the name of the page according the id
Expand All @@ -33,8 +32,6 @@ const getIdUrl = (id, langKey) => {
break;
default: return null;
}
console.log("res is:");
console.log(res);
return res;
}
};
Expand All @@ -50,7 +47,6 @@ const startPath = (langKey, langsMenu, basename, _url) => {

const setLangsMenu = ( langsMenu, id, basePath) => {
if(id){
console.log("inside the setter");
langsMenu[0].link = `/en/${basePath}` + getIdUrl(id, 'en');
langsMenu[1].link = `/it/${basePath}` + getIdUrl(id, 'it');
}
Expand Down