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
.swiper-learn-wrapper{ | |
overflow: hidden; | |
padding: rem-calc(25px) rem-calc(15px); | |
position: relative; | |
} | |
.swiper-learn{ | |
opacity: 0; |
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
// Allow SVG | |
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) { | |
global $wp_version; | |
if ( $wp_version !== '4.7.1' ) { | |
return $data; | |
} | |
$filetype = wp_check_filetype( $filename, $mimes ); |
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
[ | |
{ | |
"key": "group_63a093e6cf3f4", | |
"title": "Equipe", | |
"fields": [ | |
{ | |
"key": "field_63bc0fdf01706", | |
"label": "Membre", | |
"name": "member", |
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
[ | |
{ | |
"key": "group_608ad931e6204", | |
"title": "Liste logos", | |
"fields": [ | |
{ | |
"key": "field_608ad9633d5fa", | |
"label": "Logos", | |
"name": "logo_repeater", |
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
.heroHome { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
background: #fff; | |
position: relative; | |
flex-direction: column; | |
padding-top: rfs-value(60px); | |
@include media-breakpoint-up(md) { |
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
/** | |
* Simulate a click event. | |
* @public | |
* @param {Element} elem the element to simulate a click on | |
*/ | |
var simulateClick = function (elem) { | |
// Create our event (with options) | |
var evt = new MouseEvent('click', { | |
bubbles: true, |
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
.floatedButton { | |
appearance: none; | |
background: transparent; | |
border: none; | |
display: flex; | |
align-items: center; | |
color: #fff; | |
justify-content: start; | |
max-width: 0; | |
transition: all ease 2000ms; |
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
// stateless functional component. | |
// For now, think of a stateless component as one that can receive data and render it, but does not manage or track changes to that data. (We'll cover the second way to create a React component in the next challenge.) | |
// name of component :requires your function name to begin with a capital letter. | |
const DemoComponent = function() { | |
return ( | |
<div className='customClass' /> | |
); | |
}; |