Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 126 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"react": "^19.1.0",
"react-chartjs-2": "^5.3.0",
"react-dom": "^19.1.0",
"react-player": "^2.16.0",
"react-router-dom": "^7.6.0",
"react-youtube": "^10.1.0",
"zustand": "^5.0.5"
},
"devDependencies": {
Expand Down
Binary file added public/BadNews.mp3
Binary file not shown.
Binary file added public/ColdFeet.mp3
Binary file not shown.
Binary file removed public/songBG.png
Binary file not shown.
33 changes: 33 additions & 0 deletions public/songBG.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 3 additions & 6 deletions src/App/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
height: 852px;
justify-content: center;
align-items: center;
background-color: black;
font-family: 'Pretendard-Regular';
overflow: hidden;
}

#root::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('/public/songBG.png');
width: 393px;
height: 852px;
background-image: url('/public/songBG.svg');
background-size: cover;
background-position: center;
opacity: 0.3;
Expand Down
118 changes: 10 additions & 108 deletions src/App/App.tsx
Original file line number Diff line number Diff line change
@@ -1,113 +1,15 @@
import { css } from '@emotion/css';
import { useNavigate } from 'react-router-dom';
import "./App.css";
import album from '../assets/album.png'
import MusicPlayBar from '../Shared/MusicPlayBar';
import BackIcon from '../Shared/BackIcon';

const lyrics = [
{ text: "How do I look? 내가 변했나구?" },
{ text: "티비를 틀어봐 I'm the woman on the moon" },
{ text: "네 머리 위로 사뿐사뿐 걸어 feel no gravity" },
];
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import PlayMusic from "../Pages/PlayMusic";


function App() {
const navigate = useNavigate();
return (
<div className={container}>
<BackIcon />
<div className={Wrapper}>
<div className={TopContent}>
<img src={album} alt="album" className={albumStyle} />
<div className={SongnameStyle}>Bad News</div>
<div className={SongMakerStyle}>kiss of life</div>
</div>
<div className={LyricsWrapper}>
{lyrics.map((line, index) => (
<div
key={index}
className={index === 1 ? `${LyricLine} ${highlight}` : LyricLine}
onClick={() => navigate('/music-detail')}
>
{line.text}
</div>
))}
</div>
<MusicPlayBar />
</div>
</div>
);
return (
<Router>
<Routes>
<Route path="/" element={<PlayMusic />} />
</Routes>
</Router>
);
}


const container = css`
position: relative;
width: 361px;
height: 798px;
`;

const Wrapper = css`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
`;

const albumStyle = css`
width: 236px;
height: 238px;
border-radius: 999px;
animation: rotateAlbum 16s linear infinite;

@keyframes rotateAlbum {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
`;

const SongnameStyle = css`
margin-top: 20px;
font-size: 24px;
font-weight: bold;
color: #fff;
`;

const SongMakerStyle = css`
margin-top: 4px;
font-size: 14px;
color: #fff;
`;

const TopContent = css`
display: flex;
flex-direction: column;
align-items: center;
`;

const LyricsWrapper = css`
display: flex;
flex-direction: column;
text-align: center;
cursor: pointer;
gap: 4px;
margin-top: 4%;
`;

const LyricLine = css`
font-size: 14px;
color: #ccc;
`;

const highlight = css`
font-size: 16px;
font-weight: 600;
color: #fff;
`;

export default App;
export default App;
Empty file removed src/Entites/example
Empty file.
Empty file removed src/Features/example
Empty file.
Loading