Skip to content

Instantly share code, notes, and snippets.

View jmnyarega's full-sized avatar
😜

josiah m nyarega jmnyarega

😜
View GitHub Profile
@jmnyarega
jmnyarega / Picture-Cards.html
Last active June 9, 2020 08:11
Challenge one: How to use cards with image. I have used object-fit cover for this
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Picture Cards</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;0,900;1,300&display=swap" rel="stylesheet">
<style>
:root {
--white: #fff;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Background Images</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;0,900;1,300&display=swap" rel="stylesheet">
<style>
:root {
--color1: rgba(255, 255, 255, 0.8);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>dark cards</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;0,900;1,300&display=swap" rel="stylesheet">
<style>
:root {
--dark: #000;
--white: #fff;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;0,900;1,300&display=swap" rel="stylesheet">
<title>dark cards</title>
<style>
:root {
--dark: #000;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;0,900;1,300&display=swap" rel="stylesheet">
<title>Pricing</title>
<style>
:root {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;0,900;1,300&display=swap" rel="stylesheet">
<title>Document</title>
<style>
:root {
@jmnyarega
jmnyarega / audio.html
Last active September 15, 2020 12:18
Creating a custom audio tag
<div class="player" onclick="play()">
<div class="play" id="player-icon"></div>
</div>
<audio class="player-audio" src="http://14953.live.streamtheworld.com/WIXXFMAAC_SC" />
@jmnyarega
jmnyarega / recipes.json
Created December 15, 2021 05:04
a bunch of recipes extracted from https://based.cooking
{
"title": "Based Cooking",
"link": "https://based.cooking",
"description": "blog",
"items": [
{
"title": "Aussie Snags (sausage sizzle)",
"cook_time": "20 mins",
"prep_time": "20mins",
"servings": "Depends",