diff --git a/Music.png b/Music.png new file mode 100644 index 00000000..d481c0ff Binary files /dev/null and b/Music.png differ diff --git a/README.md b/README.md index 38807b33..5ee20065 100644 --- a/README.md +++ b/README.md @@ -5,30 +5,24 @@ # Music Releases - -Replace this readme with your own information about your project. - -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. +9th week's project. First time on React/Vite. Spotify's API. ## Getting Started with the Project ### Dependency Installation & Startup Development Server -Once cloned, navigate to the project's root directory and this project uses npm (Node Package Manager) to manage its dependencies. - -The command below is a combination of installing dependencies, opening up the project on VS Code and it will run a development server on your terminal. -```bash -npm i && code . && npm run dev -``` ### The Problem -Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next? +It was really challenging: new tools, new components, I had a lot of technical issues on npm and the server... but I get it! +React is challenging but its also the base to build amazing sites! +I find JSX a little difficult to cope but, with a little more time, I will get use to it, for sure! ### View it live -Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about. +Netlify: https://cute-profiterole-7ddc46.netlify.app +Host: http://localhost:5175/ ## Instructions diff --git a/src/Album.css b/src/Album.css new file mode 100644 index 00000000..58a27b06 --- /dev/null +++ b/src/Album.css @@ -0,0 +1,80 @@ +//*Album.css*// +.album-container { + position: relative; + background-color: #000; + border-radius: 8px; + overflow: hidden; + transition: background-color 0.3s; +} + +.album-cover { + position: relative; +} + +.album-cover img { + width: 100%; + display: block; + border-radius: 8px; +} + +.album-hover { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.6); + display: flex; + justify-content: space-around; + align-items: center; + opacity: 0; + transition: opacity 0.3s; +} + +.album-container:hover .album-hover { + opacity: 1; +} + +.play-button, +.heart-button, +.ellipsis-button { + background: none; + border: none; + cursor: pointer; + color: white; +} + +.play-button img:hover { + transform: scale(1.2); +} + +.album-info { + padding: 10px; + text-align: center; +} + +.album-title { + font-family: Helvetica, sans-serif; + font-size: 14px; + color: white; + text-decoration: none; +} + +.album-title:hover { + text-decoration: underline; +} + +.artist-names { + font-family: Helvetica, sans-serif; + font-size: 14px; + color: #a0a0a0; +} + +.artist-name { + color: #a0a0a0; + text-decoration: none; +} + +.artist-name:hover { + color: #fff; +} \ No newline at end of file diff --git a/src/Album.jsx b/src/Album.jsx new file mode 100644 index 00000000..3fe22e9e --- /dev/null +++ b/src/Album.jsx @@ -0,0 +1,36 @@ +import React from 'react'; +import ArtistName from './ArtistName.jsx'; +import './Album.css'; + +const Album = ({ album }) => { + return ( +