From b4fc89543e0e1efe9c00e7a490c13922f90c0152 Mon Sep 17 00:00:00 2001 From: Ratan Gulati Date: Thu, 23 May 2024 09:54:50 +0530 Subject: [PATCH] Fixed spacing UI of Home page --- frontend/src/App.css | 23 ++++++++++++++++++++-- frontend/src/App.jsx | 47 ++++++++++++++++++++++---------------------- 2 files changed, 45 insertions(+), 25 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index 019ae71..37b9317 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -295,11 +295,30 @@ aside p { width:100%; height:80vh; display: flex; - - align-items: center; flex-direction:column; + align-items: flex-start; + justify-content: center; +} + +.search_results{ + font-size: xx-large; + font-family: Arial, Helvetica, sans-serif; + font-weight: 600; + align-self: flex-start; + margin-left: 2rem; + padding-bottom: 0.5rem; + } +.recent { + font-size: xx-large; + font-family: Arial, Helvetica, sans-serif; + font-weight: 600; + color: white; + margin-left: 2rem; + padding-bottom: 0.5rem; + padding-top: 2rem; +} /*============================================= Section3 ==================================================*/ .section3 { diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index d45b080..dce4791 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -113,7 +113,7 @@ const App = () => {
- Song Results + Search Results { )} -

Recents

+

Recents

{ > {data == null ? ( - - -) : ( -data !== null && -data !== undefined && -data.map((element, index) => ( -
playSong(index)}> - - {element.name} playSong(index)} - /> -

playSong(index)}> - {decodeEntities(element.name)} -

-
-
-)) -)} + + + ) : ( + data !== null && + data !== undefined && + data.map((element, index) => ( +
playSong(index)}> + + {element.name} playSong(index)} + /> +

playSong(index)}> + {decodeEntities(element.name)} +

+
+
+ )) + )}
@@ -202,3 +202,4 @@ data.map((element, index) => ( }; export default App; + \ No newline at end of file