Skip to content

Commit

Permalink
clean up react-isms
Browse files Browse the repository at this point in the history
  • Loading branch information
kentquirk committed Jan 1, 2025
1 parent 4441326 commit a758f5b
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<body>
<section class="hero has-background-primary-light">
<div class="hero-body">
<p class="title">P5 experiments</p>
<div class="hero-body content">
<h1>P5 experiments</h1>
<p>
In 2024 I started playing with <a href="https://p5js.org/">P5</a> to
see if I could make some interesting things as part of <a
Expand All @@ -24,6 +24,7 @@
on my Mac desktop and my iPhone.
</p>
</div>
</section>
<section class="section" id="root">
</div>
<script type="text/babel">
Expand All @@ -44,7 +45,7 @@
"caption": "January 1, 2025",
"title": "Vortech",
"subtitle": "(Only vertical and horizontal lines.)",
"body": "This is a Voronoi diagram overlaying an image, where each cell is colored with only vertical and horizontal lines.",
"body": "This is a Voronoi diagram overlaying an image, where each cell is colored with only vertical and horizontal lines. Doesn't really work (yet) on mobile, sorry.",
},
{
"name": "parametrix",
Expand Down Expand Up @@ -176,26 +177,26 @@

function GridItem({ item }) {
return (
<div class="cell">
<div class="card">
<div class="card-header">
<p class="card-header-icon">
<span class="image is-256x256">
<div className="cell">
<div className="card">
<div className="card-header">
<p className="card-header-icon">
<span className="image is-256x256">
<img src={item.image} alt={item.alt} />
</span>
</p>
<p class="card-header-title">
<p className="card-header-title">
{item.caption}
</p>
</div>
<div class="card-content">
<p class="title">{item.title}</p>
<p class="subtitle is-4">{item.subtitle}</p>
<div class="content">{item.body}</div>
<div className="card-content">
<p className="title">{item.title}</p>
<p className="subtitle is-4">{item.subtitle}</p>
<div className="content">{item.body}</div>
</div>
<div class="card-footer">
<a class="card-footer-item button is-primary is-light" href={item.name}>See it run!</a>.
<a class="card-footer-item button is-link is-light"
<div className="card-footer">
<a className="card-footer-item button is-primary is-light" href={item.name}>See it run!</a>.
<a className="card-footer-item button is-link is-light"
href={"https://github.com/kentquirk/genuary24/tree/main/p5/" + item.name}>Source code</a>.
</div>
</div>
Expand All @@ -205,8 +206,8 @@

function App() {
return (
<div class="fixed-grid has-3-cols has-1-cols-mobile">
<div class="grid">
<div className="fixed-grid has-3-cols has-1-cols-mobile">
<div className="grid">
{data.map((item, index) => (
<GridItem key={index} item={item} />
))}
Expand Down

0 comments on commit a758f5b

Please sign in to comment.