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
// ============================================= | |
// Breakpoints | |
// ============================================= | |
$breakpoint-extra-small: 435px; | |
$breakpoint-small: 770px; | |
$breakpoint-large: 992px; | |
@mixin breakpoint($feature, $value) { | |
@media only screen and ($feature: $value) { |
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
import React from 'react'; | |
import styles from './Link.module.scss'; | |
const generateCurvePath = (startPos, endPos) => { | |
const width = Math.abs(startPos.x - endPos.x); | |
const height = Math.abs(startPos.y - endPos.y); | |
const isHorizontal = width > height; | |
const isVertical = !isHorizontal; | |
const topToBottom = startPos.y < endPos.y; | |
const bottomToTop = !topToBottom; |
OlderNewer