Skip to content

Instantly share code, notes, and snippets.

View abruzzi's full-sized avatar
Writing a React book - React Anti-Patterns

Juntao Qiu abruzzi

Writing a React book - React Anti-Patterns
View GitHub Profile
"newMenuList": false
abruzzi / machine.js
Last active December 20, 2022 00:37
Generated by XState Viz:
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
.latest-news {
width: 80%;
margin: 1rem auto;
.news-container {
display: flex;
gap: 2rem;
.news {
flex: 1;
<section class="latest-news">
<h4>Latest news</h4>
<ul class="news-container">
<li class="news">
<img src="assets/news-1.webpx" alt="news">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Non sit cupiditate nostrum dolorum rem?</p>
<div class="container">
<div class="box">one</div>
<div class="box">two</div>
<div class="box">three</div>
<div class="box">four</div>
<section class="hero-section">
<section class="brief">
<h1>Frozen Adventure</h1>
<p>Destiny 2 new season will feature a new ice-covered location and a new dark subclass Stasis</p>
<button class="button-secondary">Read more</button>
<section class="media">
<div class="game-cover">
<img src="assets/hero.jpeg" alt="destiny 2">
<p class="title">Desitny 2 beyond light<span class="rating">4.5</span></p>
<div class="container">
* {
margin: 0;
padding: 0;
body {
font-size: 16px;
font-family: 'Open Sans', sans-serif;
li {
list-style: none;
<ul class="nav-list">
<li class="list-item">
<div class="logo">
<span class="highlight">Game</span>Insider
<li class="list-item">
<a href="#">News</a>
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Week 1</title>