Skip to content

Commit

Permalink
English Page & Logo
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoezequiel committed Mar 26, 2021
1 parent 5336c88 commit 7b13826
Show file tree
Hide file tree
Showing 9 changed files with 182 additions and 14 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": ["next/babel"],
"plugins": [
[
"styled-components",
{
"ssr": true
}
]
]
}
12 changes: 0 additions & 12 deletions containers/home.js

This file was deleted.

23 changes: 23 additions & 0 deletions containers/home/home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from "react";
import { HomeContainer } from "./styled";
import { default as NextLink } from "next/link";

function Home() {
return (
<HomeContainer>
<div className="leftDiv">
<img src="Logos/LogoGandini.svg" alt="Logo Gandini"/>
</div>
<div className="rightDiv">
<NextLink href="/">
<a>ESP</a>
</NextLink>
<NextLink href="/english">
<a>ENG</a>
</NextLink>
</div>
</HomeContainer>
);
}

export default Home;
23 changes: 23 additions & 0 deletions containers/home/homeEN.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from "react";
import { HomeContainer } from "./styled";
import { default as NextLink } from "next/link";

function HomeEN() {
return (
<HomeContainer>
<div className="leftDiv">
<img src="Logos/LogoGandini.svg" alt="Logo Gandini"/>
</div>
<div className="rightDiv">
<NextLink href="/">
<a>ESP</a>
</NextLink>
<NextLink href="/english">
<a>ENG</a>
</NextLink>
</div>
</HomeContainer>
);
}

export default HomeEN;
33 changes: 33 additions & 0 deletions containers/home/styled.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import styled from "styled-components";

const HomeContainer = styled.div`
width: 100%;
height: 100vh;
display: flex;
flex-wrap: wrap;
.leftDiv {
width: 50%;
background-color: gray;
display: flex;
justify-content: center;
}
.rightDiv {
width: 50%;
a {
margin-right: 2%;
cursor: pointer;
color: green;
}
}
img {
width: 40%;
display: block;
margin: 0 auto;
}
`;

export { HomeContainer };
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"next": "10.0.9",
"next-google-fonts": "^2.1.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-dom": "^17.0.2",
"styled-components": "^5.2.1"
},
"devDependencies": {
"babel-plugin-styled-components": "^1.12.0"
}
}
6 changes: 6 additions & 0 deletions pages/english.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from "react";
import HomeEN from "../containers/home/homeEN";

export default function English() {
return <HomeEN />;
}
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import Home from "../containers/home";
import Home from "../containers/home/home";

export default function Index() {
return <Home />;
Expand Down
81 changes: 81 additions & 0 deletions public/Logos/LogoGandini.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 7b13826

@vercel
Copy link

@vercel vercel bot commented on 7b13826 Mar 26, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.