Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ad3ecea
project configuration
CarolMaiaP Jan 11, 2023
f484723
feat: call pokemon api
CarolMaiaP Jan 11, 2023
0bbf417
feat: pokemon card component added
CarolMaiaP Jan 11, 2023
99b17eb
feat: navbar component added
CarolMaiaP Jan 11, 2023
a75cdff
styles: navbar styles added
CarolMaiaP Jan 11, 2023
0f70454
styles: global styles added
CarolMaiaP Jan 11, 2023
6c8fb97
styles: pokemonCard component styles added
CarolMaiaP Jan 11, 2023
d4ba66b
fix: fixing pages
CarolMaiaP Jan 11, 2023
c053dd5
feat: pokemon details page added
CarolMaiaP Jan 11, 2023
2e2dabf
fix: fixing imports issues
CarolMaiaP Jan 11, 2023
70c5129
feat: internal pokemon page created
CarolMaiaP Jan 12, 2023
c9977bf
styles: pokemon card with styled components added
CarolMaiaP Jan 12, 2023
27fd866
styles: navbar with styled components added
CarolMaiaP Jan 12, 2023
3c95b74
styles: pokemon Card styles added
CarolMaiaP Jan 12, 2023
c70ea16
styles: index styles with styled components added
CarolMaiaP Jan 12, 2023
7b53f76
styles: global styles added
CarolMaiaP Jan 12, 2023
19b716f
feat: home page creted
CarolMaiaP Jan 12, 2023
5eb3594
feat: dark/light mode added
CarolMaiaP Jan 12, 2023
1f93b73
styles: button styles added
CarolMaiaP Jan 12, 2023
2a8c6e7
feat: navbar page structure added
CarolMaiaP Jan 13, 2023
a1c14f4
styles: navbar styles added
CarolMaiaP Jan 13, 2023
da69411
feat: pokemon page structure added
CarolMaiaP Jan 13, 2023
14c08f5
feat: search pokemon page created
CarolMaiaP Jan 13, 2023
3815517
styles: search pokemon styles added
CarolMaiaP Jan 13, 2023
707008b
styles: change navbar styles to global styles
CarolMaiaP Jan 13, 2023
6c3bcb7
feat: pokemon result component added
CarolMaiaP Jan 13, 2023
b6085e5
styles: pokemon result styles added
CarolMaiaP Jan 13, 2023
1039d2d
pokemon search details added
CarolMaiaP Jan 13, 2023
160af5f
feat: button styles added
CarolMaiaP Jan 13, 2023
3db1fe7
feat: pagination created
CarolMaiaP Jan 13, 2023
8e012a8
fix: add limit and offset on query param
CarolMaiaP Jan 13, 2023
2ee379d
fix: calling pokemon result only when searched it
CarolMaiaP Jan 14, 2023
bef1b0c
styles: pagination and pokemon result styles added
CarolMaiaP Jan 14, 2023
bb0be37
styles: pokemon page and pokemon card styles added
CarolMaiaP Jan 14, 2023
2c9e1a4
styles: container globalo styles added
CarolMaiaP Jan 16, 2023
563616b
feat: console logs removed
CarolMaiaP Jan 16, 2023
556fa60
feat: informations about searched pokemon added
CarolMaiaP Jan 16, 2023
686440d
feat: change pokemon per page to 15
CarolMaiaP Jan 16, 2023
a8eef7e
styles: pokemon card styles added
CarolMaiaP Jan 16, 2023
d249f77
feat: useContext added
CarolMaiaP Jan 16, 2023
3cd710e
styles: home styles added
CarolMaiaP Jan 16, 2023
a6990e1
feat: pokemon list title organized
CarolMaiaP Jan 16, 2023
d4f6570
styles: sans-serif font added
CarolMaiaP Jan 16, 2023
a492c08
feat: informations about pokemon added
CarolMaiaP Jan 16, 2023
ff9e40b
styles: menu mobile style added
CarolMaiaP Jan 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions components/Context.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { createContext } from "react";

export const NameContext = createContext();
10 changes: 10 additions & 0 deletions components/MainContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Navbar from "./Navbar";

export default function MainContainer({ children }) {
return (
<>
<Navbar />
<div className="container">{children}</div>
</>
);
}
11 changes: 11 additions & 0 deletions components/Navbar/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Link from "next/link";

export default function Navbar() {
return (
<div className="navbar">
<Link href="/">Home</Link>
<Link href="/pokemon">Pokemons</Link>
<Link href="/search">Search Pokemon</Link>
</div>
);
}
10 changes: 10 additions & 0 deletions components/Navbar/styles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import styled from "styled-components";

export const NavbarMenu = styled.div`
a {
color: ${(props) => props.theme.text};
text-decoration: none;
font-weight: 700;
font-size: 1.6rem;
}
`;
8 changes: 6 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}
};

module.exports = nextConfig
module.exports = {
images: {
domains: ["raw.githubusercontent.com"],
},
};
Loading