Changing album layout to table
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 22s
Music Collection CI Workflow / test (./frontend) (push) Successful in 18s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/msuic-collection-backend, ./backend) (push) Successful in 50s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m12s
Music Collection CI Workflow / deploy (push) Successful in 21s

This commit is contained in:
Phill Pover 2025-04-05 09:38:07 +01:00
parent 7d2a754e72
commit 631a486e8c
4 changed files with 33 additions and 16 deletions

View File

@ -33,17 +33,34 @@ export default function Page() {
return ( return (
<div className="container"> <div className="container">
<ul> <table className="u-full-width">
<thead>
<tr>
<th>Title</th>
<th>Artist</th>
<th>Genre</th>
</tr>
</thead>
<tbody>
{albums.map((album: Album) => ( {albums.map((album: Album) => (
<li key={album.id}> <tr key={album.id}>
<td>
<Link <Link
href={{ href={{
pathname: `/album/${album.id}` pathname: `/album/${album.id}`
}} }}>{album.title}
>{album.title} </Link>
</Link> by {album.artist} ({album.genre})</li> </td>
<td>
{album.artist}
</td>
<td>
{album.genre})
</td>
</tr>
))} ))}
</ul> </tbody>
</table>
<form onSubmit={onSubmit}> <form onSubmit={onSubmit}>
<span>Album Title</span><input type="text" name="title" /><br/> <span>Album Title</span><input type="text" name="title" /><br/>
<span>Artist</span><input type="text" name="artist" /><br/> <span>Artist</span><input type="text" name="artist" /><br/>

View File

@ -1,6 +1,6 @@
const Button = () => { const Button = () => {
return ( return (
<button className="h-12 rounded-lg bg-white font-bold px-5">Sign In</button> <button className="button-primary">Sign In</button>
); );
}; };
export default Button; export default Button;

View File

@ -6,13 +6,13 @@ import Button from "./button";
const Navbar = () => { const Navbar = () => {
return ( return (
<nav className="navbar"> <nav className="navbar">
<div className="w-full h-20 bg-emerald-800 sticky top-0"> <div className="container">
<div className="container mx-auto px-4 h-full"> <div className="container mx-auto px-4 h-full">
<div className="flex justify-between items-center h-full"> <div className="flex justify-between items-center h-full">
<Logo /> <Logo />
<ul className="hidden md:flex gap-x-6 text-white "> <ul className="navbar-list">
<li> <li className="navbar-item">
<Link href="/album"> <Link href="/album" className="navbar-link">
<p>Albums</p> <p>Albums</p>
</Link> </Link>
</li> </li>

View File

@ -37,8 +37,8 @@ const Logo = () => {
<Image <Image
src="/images/logo.jpg" src="/images/logo.jpg"
alt="Logo" alt="Logo"
width={width < 1024 ? "150" : "250"} width={width < 1024 ? "50" : "120"}
height={width < 1024 ? "150" : "250"} height={width < 1024 ? "50" : "120"}
className="relative" className="relative"
/> />
</Link> </Link>