Skip to content

Commit

Permalink
Styling and lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
benfoxall committed May 30, 2024
1 parent 055540e commit 0d3c382
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions v2/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Convert your Last.fm data to CSV format effortlessly. Use this tool to fetch and format data from the Last.fm API.">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="dist/main.css">
<title>lastfm-to-csv</title>
</head>
<body>
<h1>lastfm to csv (v2)</h1>

<script src="dist/main.js" type="module"></script>
</body>
</html>
9 changes: 3 additions & 6 deletions v2/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const App = () => {
db.users.add({user})
}
}}>
<input name="username" placeholder="lastfm username" />
<input name="username" placeholder="lastfm username" autoComplete="off" />
<button>Add user</button>
</form>
</>
Expand Down Expand Up @@ -69,17 +69,14 @@ function User({user}: {user: string}) {
}

return <section>
<h4>{user}</h4>
<h2>{user}</h2>

<button onClick={remove}>&times; remove</button>

<br />
<button onClick={() => load()}>load tracks</button>

<p>{count || 0}</p>

<br /><br />

<p>tracks: {count || 0}</p>
</section>

}
8 changes: 8 additions & 0 deletions v2/src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ body {
color: #fff;
font-family: monospace;
}

ul {
padding: 0;
}
li {
list-style: none;
padding: 1em;
}

0 comments on commit 0d3c382

Please sign in to comment.