Skip to content

Commit

Permalink
chore: style with tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
yamashita-kenngo committed Jul 14, 2024
1 parent efa9fe7 commit a7c6b5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { render } from 'solid-js/web';

import { TodoList } from './todo-list';

import './index.css';

const root = document.getElementById('root');

if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
Expand Down
2 changes: 1 addition & 1 deletion src/todo-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const TodoList = () => {
<>
<div>
<input placeholder="new todo here" ref={input} />
<button
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
onClick={() => {
if (!input.value.trim()) return;
addTodo(input.value);
Expand Down

0 comments on commit a7c6b5e

Please sign in to comment.