Skip to content

Commit

Permalink
basic component structure
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 20, 2023
1 parent 01b18f0 commit 991d07e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
export default function App() {
return <h1 className="text-3xl">Hello world!</h1>;
import Header from "./Components/Header/Header";
import AudioPlayer from "./Components/AudioPlayer/AudioPlayer";
import Body from "./Components/Body/Body";

function App() {
return (
<main className="grid grid-rows-3r grid-cols-1 items-center justify-center bg-bg-darker w-4/5 h-4/5 p-8 rounded">
<Header />
<Body />
<AudioPlayer />
</main>
);
}

export default App;
5 changes: 5 additions & 0 deletions src/Components/AudioPlayer/AudioPlayer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function AudioPlayer() {
return <h2>Audio Player</h2>;
}

export default AudioPlayer;
16 changes: 16 additions & 0 deletions src/Components/Header/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// import { Link } from "react-router-dom";
import Logo from "./Logo";
import Socials from "./Socials";
import Search from "./Search/Search";

function Header() {
return (
<header className="flex justify-between w-full">
<Logo />
<Search />
<Socials />
</header>
);
}

export default Header;
3 changes: 3 additions & 0 deletions src/Components/Search/Search.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Search() {
return <h2> Search </h2>;
}
5 changes: 5 additions & 0 deletions src/Components/Songs/Songs.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function Songs() {
return <h2>Songs </h2>;
}

export default Songs;

0 comments on commit 991d07e

Please sign in to comment.