This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 20
[Feature] collaborations component #203
Open
vitorbarbosa123
wants to merge
6
commits into
OpenDevUFCG:develop
Choose a base branch
from
vitorbarbosa123:feature/collaborations-component
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2ca773e
[ADD] about basic component + texts in PT
VitorCCC e6a5080
[ADD] import fixing graph
VitorCCC e2a794e
[ADD] about styles
VitorCCC 7d8a5e0
[ADD] Collaborations component + styles
vitorbarbosa123 c523382
[ADD] add colab in about component
vitorbarbosa123 2c64e4b
[FIX] align text
vitorbarbosa123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { Component, useEffect, useState } from 'react' | ||
import axios from 'axios' | ||
import { Wrapper } from "./styles"; | ||
const api = { | ||
baseUrl: "https://api.github.com" | ||
} | ||
|
||
export default function Collaborations() { | ||
|
||
const [githubData, setGithubData] = useState([]); | ||
|
||
useEffect(() => { | ||
axios | ||
.get(api.baseUrl + "/repos/OpenDevUFCG/roadmap-cc/contributors") | ||
.then((res) => { | ||
setGithubData(res.data) | ||
}); | ||
}, []); | ||
|
||
return ( | ||
<> | ||
{githubData.map((contributorData) => ( | ||
<Wrapper> | ||
<a href={`https://github.com/${contributorData.login}`} target="_blank"> | ||
<img | ||
key={contributorData.login} | ||
src={contributorData.avatar_url} | ||
alt={contributorData.login} | ||
style={{ width: 64, borderRadius: 40}} | ||
/> | ||
</a> | ||
</Wrapper> | ||
))} | ||
</> | ||
); | ||
|
||
}; |
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,6 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Wrapper = styled.div` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. É legal adicionar algumas animações no hover, como: |
||
margin-right: 1vw; | ||
|
||
`; |
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,41 @@ | ||
import React, { useEffect } from 'react' | ||
import { useTranslation, Trans } from 'react-i18next'; | ||
import { Header } from '~/components/Header'; | ||
import Collaborations from '~/components/Collaborations' | ||
import { About, Texts, Graph, Title, Paragraph, Wrapper, Container } from "./styles"; | ||
import graph from '~/assets/img/graph.svg' | ||
import Image from "next/image"; | ||
|
||
export default function AboutUs() { | ||
|
||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<> | ||
<Header/> | ||
<About> | ||
<Texts> | ||
<Wrapper> | ||
<Title>{t("about.mainTitle")}</Title> | ||
<Paragraph>{ t('about.firstPartDescription')}</Paragraph> | ||
<Paragraph> | ||
<Trans i18nKey={'about.secondPartDescription'}/> | ||
</Paragraph> | ||
</Wrapper> | ||
<Graph> | ||
<Image src={graph}/> | ||
</Graph> | ||
</Texts> | ||
<Wrapper> | ||
<Title>{t("about.collaborationsTitle")}</Title> | ||
<Paragraph> | ||
<Trans i18nKey={'about.collaborationsDescription'}/> | ||
</Paragraph> | ||
<Container> | ||
<Collaborations/> | ||
</Container> | ||
</Wrapper> | ||
</About> | ||
</> | ||
) | ||
} |
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,78 @@ | ||
import styled from "styled-components"; | ||
|
||
export const About = styled.div` | ||
|
||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
|
||
@media (max-width: 640px) { | ||
justify-content: center; | ||
} | ||
`; | ||
export const Texts = styled.div` | ||
|
||
width: 80vw; | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
@media (max-width: 480px) { | ||
flex-direction: column-reverse; | ||
align-items: center; | ||
text-align: center; | ||
} | ||
`; | ||
|
||
export const Wrapper = styled.div` | ||
|
||
width: 80vw; | ||
text-align: center; | ||
`; | ||
|
||
export const Title = styled.div` | ||
|
||
font-size: 24px; | ||
color: var(--light-green); | ||
font-weight: bold; | ||
|
||
@media (max-width: 480px) { | ||
margin-top: 4vh; | ||
} | ||
`; | ||
|
||
export const Paragraph = styled.div` | ||
|
||
font-size: 16px; | ||
color: var(--dark-grey); | ||
margin-top: 4vh; | ||
`; | ||
|
||
export const Graph = styled.div` | ||
|
||
margin-top: 2vh; | ||
|
||
`; | ||
|
||
export const Contribuitors = styled.div` | ||
|
||
width: 80vw; | ||
|
||
|
||
@media (min-width: 480px) { | ||
margin-top: 4vh; | ||
} | ||
|
||
@media (max-width: 480px) { | ||
text-align: center; | ||
} | ||
`; | ||
|
||
export const Container = styled.div` | ||
|
||
width: 80vw; | ||
height: 28vh; | ||
margin-top: 2%; | ||
display: flex; | ||
flex-wrap: wrap; | ||
|
||
`; |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ao executar o sistema, estamos tendo que instalar essa lib manualmente. É importante verificar o que está causando isso.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.