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 { useState, useEffect, useRef, RefObject } from 'react'; | |
import { Image, Icon, Timeline, useSize, useInterval, Gesture, IGestureStatus } from 'vev'; | |
import anime from 'animejs'; | |
/** Center tween */ | |
const center = { | |
x: 0, | |
y: 0, | |
opacity: 1, | |
scale: 1 |
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 { View, Tracking, useVisible, useEditorState } from 'vev'; | |
import React, { Fragment, useRef, useEffect, useLayoutEffect } from 'react'; | |
function getNameFromUrl(url: string): string { | |
const parts = url.split('/'); | |
return parts[parts.length - 1].split('.')[0]; | |
} | |
export default function({ | |
hostRef, |
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 { } from 'react'; | |
import { Link } from 'vev'; | |
export default function({ link, linkText }: Props) { | |
return ( | |
<Link to={link} className="fill">{linkText || 'Open link'}</Link> | |
); | |
} |
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
//var GoogleMap = require('../../../node_modules/react-google-maps/src/GoogleMap');//.default; | |
import {default as React, addons, Component} from "react/addons"; | |
//import {default as GoogleMap} from '../../../node_modules/react-google-maps/src/GoogleMap'; | |
var MapSection = React.createClass({ | |
render: function() { | |
return (<div>lol</div>); | |
return (<div className="map-section"> | |
<GoogleMap></GoogleMap> |