This file contains hidden or 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
export const countryData = { | |
'sl': { name: 'Sri Lanka', flag: '/flag-of-Sri-Lanka.png' }, | |
'uk': { name: 'UK', flag: '/flag-of-United-Kingdom.png' }, | |
'usa': { name: 'USA', flag: '/flag-of-United-States-of-America.png' }, | |
'ca': { name: 'Canada', flag: '/flag-of-Canada.png' }, | |
'It': { name: 'Italy', flag: '/flag-of-Italy.png' }, | |
'aus': { name: 'Australia', flag: '/flag-of-Australia.png' }, | |
'me': { name: 'Middle East', flag: '/flag-of-Middle-East.png' }, | |
'other': { name: 'Other', flag: '/flag-of-World.png' }, }; | |
"part of URL within Double quotes" + dynamic_URL_via_var combo worked for me. |
This file contains hidden or 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 _ as moment from 'moment'; | |
export default function DailyReward(prosp) { | |
const [isShowModal, setIsShowModal] = useState<boolean>(false); | |
const [isRewardAvailible, setIsRewardAailible = useState<boolean>(false); | |
const [timeLeft, setTimeLeft] = useState(0) //in miliseconds | |
const [reward, setReward] = useState() | |
useEffect(() =>{ |
This file contains hidden or 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
.hero { | |
display: -webkit-box; | |
display: -webkit-flex; | |
display: -ms-flexbox; | |
display: flex; | |
min-height: 80vh; | |
padding-top: 4em; | |
padding-bottom: 4em; | |
-webkit-box-orient: vertical; |
This file contains hidden or 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, { useRef, useEffect } from "react"; | |
import TweenLite from "gsap"; | |
import "../../libs/gsap/ScrambleTextPlugin"; | |
export default ({ children }) => { | |
if (typeof window === "undefined") return children; | |
const text = useRef(null); | |
useEffect(() => { |
This file contains hidden or 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
got to this site to conver it to woff | |
https://transfonter.org/ | |
once is converted grab all the from the zip | |
The modified code snippet should look like this: put the font in the public directory | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} |
This file contains hidden or 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
refence from this tutorial | |
https://www.youtube.com/watch?v=-ISvtF4wUrs&loop=0 | |
// concept | |
----------------------- | |
<div class="container"> <!-- Main container --> | |
<div class="nav"> <!-- Navigation bar --> | |
<div class="nav-item">logo</div> | |
<div class="nav-item">art gallery</div> |
This file contains hidden or 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
const fs = require('fs-extra'); | |
const methods = {}, priv = {}; | |
// Private methods to do string replacement. Not optimized and cummulative trying to keep it simple. | |
// far better options here: https://stackoverflow.com/questions/5069464/replace-multiple-strings-at-once | |
priv.replaceObj = function(value, vars) { | |
let obj = value; | |
Object.keys(obj).forEach(function(item) { | |
obj[item] = priv.replaceStr(obj[item], vars); | |
}); | |
return obj; |
This file contains hidden or 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
images here |
This file contains hidden or 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
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ | |
import React, { PropTypes } from 'react'; // eslint-disable-line no-unused-vars | |
import emptyFunction from '../../node_modules/react/lib/emptyFunction'; | |
import mui from 'material-ui'; | |
function withContext(ComposedComponent) { | |
return class WithContext { | |
static propTypes = { |