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
{% assign product_json = product | json %} | |
<pre>{{ product_json }}</pre> |
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 { useEffect, useState } from 'react'; | |
export type useCountdownProps = { | |
targetDate: any; | |
countDown: any; | |
} | |
const useCountdown = (targetDate: any) => { | |
const countDownDate = new Date(targetDate).getTime(); |
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
console.log(new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(money)); |
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
onClick={() => | |
Router.push( | |
{ | |
pathname: 'url', | |
query: { | |
status: 'status-query' | |
} | |
}, | |
'url' | |
) |
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
<table className="rwd-table"> | |
<tr> | |
<th>Movie Title</th> | |
<th>Genre</th> | |
<th>Year</th> | |
<th>Gross</th> | |
</tr> | |
<tr> | |
<td data-th="Movie Title">Star Wars</td> | |
<td data-th="Genre">Adventure, Sci-fi</td> |
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
.rwd-table { | |
margin: 1em 0; | |
width: 100%; | |
background: #34495e; | |
color: #fff; | |
border-radius: 0.4em; | |
overflow: hidden; | |
tr { | |
border-top: 1px solid #ddd; |
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
.logo_text { | |
position: absolute; | |
left: -99px; | |
top: -99px; | |
text-indent: -9999px; | |
} |
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
const user = { | |
name: "Luís Felipe" | |
age: "28", | |
ocupation: "Front-end" | |
} | |
const userArray = Object.values(user) | |
console.log(userArray) |
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
const headerElement = useRef(null); | |
useEffect(() => { | |
window.onscroll = () => { | |
const headerScrollPosition = headerElement.current.scrollTop + headerElement.current.clientHeight; | |
if (window.scrollY >= headerScrollPosition) { | |
setScrolled(true); | |
} else { | |
setScrolled(false); |
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
sass --watch style.scss:styles/style.min.css --style compressed | |
NewerOlder