-
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.
Added title and labels to technologies section
- Loading branch information
1 parent
a0f2ad3
commit 5c8987b
Showing
2 changed files
with
110 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,112 +1,114 @@ | ||
import React, {Component} from 'react' | ||
import React, { Component } from 'react' | ||
import technologies from 'Data/technologies.json' | ||
import $ from 'jquery' | ||
import 'bootstrap' | ||
import 'slick-carousel/slick/slick' | ||
import './slider.css' | ||
import {OverlayTrigger, Tooltip} from 'react-bootstrap' | ||
|
||
export default class Slider extends Component { | ||
componentDidMount() { | ||
$('.customer-logos').slick({ | ||
slidesToShow: 10, | ||
slidesToScroll: 1, | ||
autoplay: true, | ||
autoplaySpeed: 1500, | ||
arrows: false, | ||
dots: false, | ||
pauseOnHover: false, | ||
responsive: [ | ||
{ | ||
breakpoint: 1050, | ||
settings: { | ||
slidesToShow: 9, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 950, | ||
settings: { | ||
slidesToShow: 8, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 850, | ||
settings: { | ||
slidesToShow: 7, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 750, | ||
settings: { | ||
slidesToShow: 6, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 650, | ||
settings: { | ||
slidesToShow: 5, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 550, | ||
settings: { | ||
slidesToShow: 4, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 450, | ||
settings: { | ||
slidesToShow: 3, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 350, | ||
settings: { | ||
slidesToShow: 2, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 250, | ||
settings: { | ||
slidesToShow: 1, | ||
}, | ||
}, | ||
], | ||
}) | ||
} | ||
componentDidMount() { | ||
$('.customer-logos').slick({ | ||
slidesToShow: 10, | ||
slidesToScroll: 1, | ||
autoplay: true, | ||
autoplaySpeed: 1500, | ||
arrows: false, | ||
dots: false, | ||
pauseOnHover: false, | ||
responsive: [ | ||
{ | ||
breakpoint: 1050, | ||
settings: { | ||
slidesToShow: 9, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 950, | ||
settings: { | ||
slidesToShow: 8, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 850, | ||
settings: { | ||
slidesToShow: 7, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 750, | ||
settings: { | ||
slidesToShow: 6, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 650, | ||
settings: { | ||
slidesToShow: 5, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 550, | ||
settings: { | ||
slidesToShow: 4, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 450, | ||
settings: { | ||
slidesToShow: 3, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 350, | ||
settings: { | ||
slidesToShow: 2, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 250, | ||
settings: { | ||
slidesToShow: 1, | ||
}, | ||
}, | ||
], | ||
}) | ||
} | ||
|
||
render() { | ||
return ( | ||
<div | ||
style={{ | ||
backgroundImage: 'url(' + process.env.PUBLIC_URL + '/orange_gradient.svg)', | ||
backgroundSize: 'cover', | ||
}} | ||
> | ||
<div className="py-5"> | ||
<section className="customer-logos slider mt-4"> | ||
{Object.keys(technologies).map((key) => ( | ||
<OverlayTrigger | ||
placement="top" | ||
key={key} | ||
overlay={<Tooltip>{technologies[key].name}</Tooltip>} | ||
> | ||
<div className="slide"> | ||
<img | ||
src={ | ||
process.env.PUBLIC_URL + | ||
'/technologies_logos/' + | ||
technologies[key].logoSrc | ||
} | ||
alt={technologies[key].name + ' logo'} | ||
style={{width: '80px', height: '80px'}} | ||
/> | ||
</div> | ||
</OverlayTrigger> | ||
))} | ||
</section> | ||
render() { | ||
return ( | ||
<div | ||
style={{ | ||
backgroundImage: 'url(' + process.env.PUBLIC_URL + '/orange_gradient.svg)', | ||
backgroundSize: 'cover', | ||
}} | ||
> | ||
<div className="py-5"> | ||
<h2 style={{paddingTop: '4px', marginBottom: '20px', fontWeight: "bold"}}>Technologies I've worked with:</h2> | ||
<section className="customer-logos slider mt-4"> | ||
{Object.keys(technologies).map((key) => ( | ||
<div className="slide" key={key}> | ||
<div style={{width: '100px', height: '100px', borderRadius: '50%', backgroundColor: 'rgba(255,255,255,0.08)', display: 'flex', justifyContent: 'center', alignItems: 'center'}}> | ||
<img | ||
src={ | ||
process.env.PUBLIC_URL + | ||
'/technologies_logos/' + | ||
technologies[key].logoSrc | ||
} | ||
alt={technologies[key].name + ' logo'} | ||
style={{ width: '80px', height: '80px', display: 'flex' }} | ||
/> | ||
</div> | ||
</div> | ||
) | ||
} | ||
<h3 style={{ | ||
textAlign: 'center', | ||
fontSize: '1.15rem', | ||
fontWeight: 900, | ||
marginTop: '16px', | ||
}}>{technologies[key].name}</h3> | ||
</div> | ||
))} | ||
</section> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} |
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