Skip to content

Commit

Permalink
Merge pull request #95 from As-Raparigas-do-Codigo/bug-fixes
Browse files Browse the repository at this point in the history
carousel and cors fixes
  • Loading branch information
toothlesspanda authored Aug 16, 2023
2 parents b4b592b + 20eb58c commit 13bfc81
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/components/Carousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ function Carousel({
desktop = 4,
tablet = 2,
mobile = 1,
autoSpeed = 9000000,
autoSpeed = 10000,
autoPlay = false,
infinite = false
infinite = false,
transitionDuration = 500
}) {
const responsive = {
desktop: {
Expand Down Expand Up @@ -40,7 +41,7 @@ function Carousel({
arrows
autoPlay={autoPlay}
infinite={infinite}
transitionDuration={10000}
transitionDuration={transitionDuration}
responsive={responsive}
renderDotsOutside
dotListClass="custom-dots"
Expand Down
2 changes: 2 additions & 0 deletions src/components/Forms/CollaboratorForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function CollaboratorForm({ translation }) {
var myHeaders = new Headers();
myHeaders.append('Accept', 'application/json');
myHeaders.append('Content-Type', 'application/json');
myHeaders.append('Access-Control-Allow-Origin', '*');
var raw = JSON.stringify({
name: name,
email: email,
Expand All @@ -86,6 +87,7 @@ function CollaboratorForm({ translation }) {
var requestOptions = {
method: 'POST',
headers: myHeaders,
mode: 'no-cors',
body: raw,
redirect: 'follow'
};
Expand Down
2 changes: 2 additions & 0 deletions src/components/Forms/CommunityForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function CommunityForm({ translation }) {
var myHeaders = new Headers();
myHeaders.append('Accept', 'application/json');
myHeaders.append('Content-Type', 'application/json');
myHeaders.append('Access-Control-Allow-Origin', '*');
var formData = JSON.stringify({
person_name: name,
email,
Expand All @@ -95,6 +96,7 @@ function CommunityForm({ translation }) {
var requestOptions = {
method: 'POST',
headers: myHeaders,
mode: 'no-cors',
body: formData,
redirect: 'follow'
};
Expand Down
2 changes: 2 additions & 0 deletions src/components/Forms/ContactForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function ContactForm({ translation }) {
var myHeaders = new Headers();
myHeaders.append('Accept', 'application/json');
myHeaders.append('Content-Type', 'application/json');
myHeaders.append('Access-Control-Allow-Origin', '*');
var raw = JSON.stringify({
name: name,
email: email,
Expand All @@ -49,6 +50,7 @@ function ContactForm({ translation }) {
var requestOptions = {
method: 'POST',
headers: myHeaders,
mode: 'no-cors',
body: raw,
redirect: 'follow'
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/MentorsSection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function MentorsSection({ translation }) {
</Row>

<Row>
<Carousel items={mentorsCards} />
<Carousel items={mentorsCards} autoPlay infinite />
</Row>
</Container>
);
Expand Down
4 changes: 2 additions & 2 deletions src/data/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ const TeamData = [
{
id: 17,
roles: ['mentor', 'collaborator'],
name: 'Ines de Matos',
name: 'Inês de Matos',
company: 'Web Summit',
job: 'Software Engineer',
social: [
{ linkedin: 'https://www.linkedin.com/in/inesdematos/' },
{ instagram: 'https://instagram.com/nenas.phot' },
{ instagram: 'https://instagram.com/nenas.shots' },
{ medium: 'https://inesdematos.medium.com/' },
{ github: 'https://github.com/toothlesspanda' }
],
Expand Down
9 changes: 8 additions & 1 deletion src/pages/Partners/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@ const PartnerFeaturesBanner = ({ t }) => (
<h1 className="py-1">{t('PartnersPage-PageName')}</h1>
</Col>
</Row>
<Carousel items={features} desktop={3} autoSpeed={3000} infinite autoPlay />
<Carousel
items={features}
desktop={3}
autoSpeed={10000}
infinite
autoPlay
transitionDuration={500}
/>
</>
);

Expand Down

0 comments on commit 13bfc81

Please sign in to comment.