Skip to content

Instantly share code, notes, and snippets.

View florinpop17's full-sized avatar
🏠
Working from home

Florin Pop florinpop17

🏠
Working from home
View GitHub Profile
@florinpop17
florinpop17 / script.js
Created January 30, 2020 08:58
Zoom Effect
const { body } = document;
let zoomActivated = false;
window.addEventListener('keydown', (e) => {
if(e.key === 'z') {
zoomActivated = !zoomActivated;
}
});
@florinpop17
florinpop17 / index.html
Created January 16, 2020 07:42
Random Meal Generator
<div class="container">
<div class="row text-center">
<h3>
Feeling hungry?
</h3>
<h5>Get a random meal by clicking below</h5>
<button class="button-primary" id="get_meal">Get Meal 🍔</button>
</div>
<div id="meal" class="row meal"></div>
@florinpop17
florinpop17 / index.html
Last active January 3, 2020 07:19
Dad Jokes Generator JS project
<div class="container">
<h3>Don't laugh challenge</h3>
<div id="joke" class="joke"></div>
<button id="get_joke" class="btn">Get Another Joke</button>
</div>
@florinpop17
florinpop17 / index.html
Last active October 22, 2019 18:32
Pulse CSS
<a class="blob" href="google.com"> Check Price </a>
@florinpop17
florinpop17 / color-button.css
Created October 21, 2019 05:45 — forked from studiopress/color-button.css
Colored Content Boxes
/* Color Buttons
------------------------------------------------------------ */
.button-blue,
.button-gray,
.button-green,
.button-purple,
.button-red,
.button-yellow {
color: #fff;
@florinpop17
florinpop17 / Countdown.jsx
Created May 15, 2019 08:23
Countdown React
<Countdown
timeTillDate="05 26 2019, 6:00 am"
timeFormat="MM DD YYYY, h:mm a"
/>
@florinpop17
florinpop17 / App.jsx
Created May 15, 2019 08:22
Countdown React - all
import React from 'react';
import moment from 'moment';
class Countdown extends React.Component {
state = {
days: undefined,
hours: undefined,
minutes: undefined,
seconds: undefined
};
@florinpop17
florinpop17 / index.js
Created May 15, 2019 08:21
Countdown React - mapNumber
function mapNumber(number, in_min, in_max, out_min, out_max) {
return (
((number - in_min) * (out_max - out_min)) / (in_max - in_min) + out_min
);
}
@florinpop17
florinpop17 / style.css
Created May 15, 2019 08:20
Countdown React - SVGCircle style
.countdown-svg {
position: absolute;
top: 0;
left: 0;
width: 100px;
height: 100px;
}
@florinpop17
florinpop17 / SVGCircle.jsx
Created May 15, 2019 08:20
Countdown React - SVGCircle
const SVGCircle = ({ radius }) => (
<svg className="countdown-svg">
<path
fill="none"
stroke="#333"
stroke-width="4"
d={describeArc(50, 50, 48, 0, radius)}
/>
</svg>
);