-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squash and merge the following commits into develop: * refactor(InfoPopup): remove usage of InfoPopup * enhancement(CategoriesHeader): add smooth scrolling * enhancement(Publications): decrease size of PublicationCard * enhancement: enhance Banner * enhancement: create new banner * enhancement: enhance logo image quality
- Loading branch information
1 parent
aa74d99
commit c21d77a
Showing
22 changed files
with
149 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
import React from 'react' | ||
import React, { useCallback } from 'react' | ||
|
||
import Main from './CategoriesHeader' | ||
|
||
import { CategoriesHeaderProps } from './interfaces' | ||
|
||
const CategoriesHeader = ({ translate }: CategoriesHeaderProps) => { | ||
return <Main translate={translate} /> | ||
const scrollToSection = useCallback((sectionId: string) => { | ||
const section = document.getElementById(sectionId) | ||
|
||
if (section) { | ||
section.scrollIntoView({ | ||
behavior: 'smooth', | ||
block: 'start', | ||
}) | ||
} | ||
}, []) | ||
|
||
return <Main translate={translate} scrollToSection={scrollToSection} /> | ||
} | ||
|
||
export default CategoriesHeader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import styled from 'styled-components' | ||
import Image from 'next/image' | ||
|
||
export const SectionContainer = styled.section` | ||
position: relative; | ||
height: 100vh; | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
` | ||
|
||
export const TextContainer = styled.div` | ||
width: 100vw; | ||
position: absolute; | ||
text-align: center; | ||
margin: auto; | ||
padding: auto; | ||
color: white; | ||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); | ||
` | ||
|
||
export const BannerImg = styled(Image)` | ||
height: 100%; | ||
width: 100%; | ||
object-fit: cover; | ||
` | ||
|
||
export const Heading = styled.h1` | ||
font-size: 8rem; | ||
font-weight: 800; | ||
@media (max-width: 768px) { | ||
font-size: 5rem; | ||
} | ||
` | ||
|
||
export const Paragraph = styled.p` | ||
font-size: 4rem; | ||
font-weight: 600; | ||
@media (max-width: 768px) { | ||
font-size: 2rem; | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react' | ||
|
||
import { GroupPhoto } from '@/assets' | ||
|
||
import * as S from './Banner.styles' | ||
|
||
const Banner = () => { | ||
return ( | ||
<S.SectionContainer> | ||
<S.TextContainer> | ||
<S.Heading>ROBÔCIN</S.Heading> | ||
<S.Paragraph>IA que vence competições mundiais</S.Paragraph> | ||
</S.TextContainer> | ||
<S.BannerImg src={GroupPhoto} alt="Group photo" /> | ||
</S.SectionContainer> | ||
) | ||
} | ||
|
||
export default Banner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
|
||
import Main from './Banner' | ||
|
||
const Banner = () => { | ||
return <Main /> | ||
} | ||
|
||
export default Banner |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.