Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
964c365
first commit
zkauansantos Jan 11, 2023
8d975b7
starting project: configurated eslint and editorconfig
zkauansantos Jan 11, 2023
ba7dd0f
implemented toggle theme with ContextAPI, added styled-components in …
zkauansantos Jan 12, 2023
cd61d3e
criated service layer
zkauansantos Jan 12, 2023
aed7e09
made connection to the API, listing leagues in screen and styles
zkauansantos Jan 12, 2023
bb0a785
page detailsLeagueSelected in progress
zkauansantos Jan 12, 2023
923caa0
moved of client server side for server side, insering datas in page d…
zkauansantos Jan 13, 2023
1d94f50
styled page details of the league selected
zkauansantos Jan 13, 2023
83a72cb
styled page details of the league selected
zkauansantos Jan 13, 2023
ab126ba
Merge branch 'developer-test' of https://github.com/zkauansantos/fron…
zkauansantos Jan 13, 2023
6db07b5
edited league details page styles and fixed dynamic folder error
zkauansantos Jan 13, 2023
8d48698
added carousel in leagues
zkauansantos Jan 14, 2023
b186f1e
change styles of the page Home
zkauansantos Jan 15, 2023
1b0642d
starting responsive
zkauansantos Jan 16, 2023
cd47e97
criated menu mobile
zkauansantos Jan 16, 2023
dbd3b45
insert stadings in table
zkauansantos Jan 16, 2023
68e10db
responsive finalized page home and page seasons page stadings in prog…
zkauansantos Jan 17, 2023
b12c820
added babel styled components as dependence
zkauansantos Jan 18, 2023
8f0e676
adjusts to deploy
zkauansantos Jan 18, 2023
ddd6425
responsive table
zkauansantos Jan 18, 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
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"presets": [
"next/babel"
],
"plugins": [
[
"styled-components",
{
"ssr": true,
"displayName": true,
"preprocess": false
}
]
]
}
28 changes: 27 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
{
"extends": "next/core-web-vitals"
"env": {
"browser": true,
"es2021": true
},
"extends": [
"next/core-web-vitals",
"airbnb"
],
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"no-return-await":"off",
"import/prefer-default-export":"off",
"react/jsx-no-bind":"off",
"react/jsx-no-constructed-context-values": "off",
"@next/next/no-img-element": "off"
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# development
.editorconfig

.vercel
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}
};

module.exports = nextConfig
module.exports = nextConfig;
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@
"lint": "next lint"
},
"dependencies": {
"babel-plugin-styled-components": "^2.0.7",
"next": "13.0.6",
"prop-types": "^15.8.1",
"react": "18.2.0",
"react-dom": "18.2.0"
"react-dom": "18.2.0",
"react-elastic-carousel": "^0.11.5",
"react-switch": "^7.0.0",
"styled-components": "^5.3.6"
},
"devDependencies": {
"eslint": "8.29.0",
"eslint-config-next": "13.0.6"
"eslint": "^7.32.0 || ^8.2.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "13.0.6",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0"
}
}
6 changes: 0 additions & 6 deletions pages/_app.js

This file was deleted.

8 changes: 0 additions & 8 deletions pages/index.js

This file was deleted.

Binary file added src/assets/imgs/favicon.ico
Binary file not shown.
Binary file added src/assets/imgs/stadium.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/styles/GlobalStyles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { createGlobalStyle } from 'styled-components';

export default createGlobalStyle`
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Sora', sans-serif;
}

body {
background-color: ${({ theme }) => theme.primaryColor};
color: ${({ theme }) => theme.tertiaryColor};
}

a{
text-decoration: none;
color:${({ theme }) => theme.tertiaryColor};
}
`;
193 changes: 193 additions & 0 deletions src/assets/styles/HeaderStyled.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
import styled, { css } from 'styled-components';

export const StyledHeader = styled.header`
background-color: ${({ theme }) => theme.primaryColor};
display: flex;
padding: 20px 20px;
display: flex;
align-items: center;
justify-content: space-between;
${({ menuOpen }) => menuOpen && css`
position: fixed;
width: 100%;
top: 0;
z-index: 1;
`}

.nav-desktop {
display: none;

@media (min-width: 769px){
display: block;
}

ul {
display: flex;
flex-direction: row;
list-style: none;
gap: 26px;
}
}
`;

export const ContainerLogo = styled.div`
display: flex;
align-items: center;
gap: 16px;
${({ menuOpen }) => menuOpen && css`
display: none;
`}

h1 {
color: ${({ theme }) => theme.secondaryColor};
}

@media (max-width: 470px) {
h1 {
font-size:26px;
}
}
`;

export const MenuMobile = styled.div`
position: relative;
width: 100%;
display: none;
margin-bottom: 40px;
margin-right: 12px;

.icon {
position: absolute;
z-index: 4;
right: 10%;
height: 44px;
cursor: pointer;
}

.icon.iconActive .hamburguer {
background: transparent;
box-shadow: 0 2px 5px transparent;
margin-top: 15px;

::after {
top: 0;
background-color: ${({ theme }) => theme.secondaryColor};
transform: rotate(225deg);
box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}
::before {
top: 0;
background-color: ${({ theme }) => theme.secondaryColor};
transform: rotate(135deg);
box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}
}

.hamburguer {
top: 40%;
left: 10%;
width: 30px;
height: 6px;
background-color: ${({ theme }) => theme.secondaryColor};
position: absolute;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);

::before {
top: -12px;
content: '';
position: absolute;
width: 37px;
height: 6px;
background-color: ${({ theme }) => theme.secondaryColor};
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
transition: 0.5s;
}
::after {
top: 12px;
content: '';
position: absolute;
width: 37px;
height: 6px;
background-color: ${({ theme }) => theme.secondaryColor};
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
transition: 0.5s;
}
}

.menuOpen {
width: 100%;
height: 100vh;
box-shadow: 10px 0px 69px 0px rgba(0,0,0,0.59);
}

.menuClose {
display: none;
width: 0px;
}

.nav-mobile {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}

@media (max-width: 768px) {
display: block;
}

@media (max-width: 450px) {
.icon.iconActive .hamburguer {

::after {
right: 10px;
}
::before {
right: 10px;
}
}

.hamburguer {
width: 25px;
height: 4px;

::before {
top: -10px;
width: 32px;
height: 4px;
}
::after {
top: 10px;
width: 32px;
height: 4px;
}
}

}
`;

export const ListNavMenu = styled.ul`
display: flex;
flex-direction: column;
align-items:center;
justify-content: center;
gap: 48px;
list-style: none;
height: 100%;

li{
a{
padding: 10px 15px;
border-radius: 10px;
transition: 0.3s ease-in;
color:${({ theme }) => theme.textColor};
font-weight: bold;
font-size: 18px;

&:hover {
background-color: ${({ theme }) => theme.secondaryColor};
color: ${({ theme }) => theme.textColorHover};
}
}
}
`;
Loading