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
89 changes: 44 additions & 45 deletions pnpm-lock.yaml

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

7 changes: 2 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import Home from './screens/Home'
const App = () => {
return (
<div>
<h1 className="text-3xl">Init Break</h1>
</div>
)
return <Home />
}

export default App
Binary file added src/assets/Icons/backwardBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/chevron.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/fireHandle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/fireLogoSelected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/fireLogoUnSelect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/forwardBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/handle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/handleMusicPlayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/menuBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/musicHandle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/musicOff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/musicPlayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/musicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/pauseBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/playBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/rainHandle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/rainLogoSelected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/rainUnselect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/startbutton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/stop button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icons/toxicity img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added src/assets/Sounds/Sparsha Sangeet.mp3
Binary file not shown.
Binary file added src/assets/Sounds/Toxicity.mp3
Binary file not shown.
Binary file added src/assets/Sounds/fire-sound-222359.mp3
Binary file not shown.
Binary file added src/assets/Sounds/rain-sound-188158.mp3
Binary file not shown.
Binary file added src/assets/background/inputbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/background/musicPlayerBg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/background/settingBg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/fonts/PixelOperator8-Bold.ttf
Binary file not shown.
Binary file added src/assets/fonts/PixelOperator8.ttf
Binary file not shown.
Binary file added src/assets/wallpapers/alt.png
Binary file added src/assets/wallpapers/fifth.gif
Binary file added src/assets/wallpapers/forth.gif
Binary file added src/assets/wallpapers/giphy.gif
Binary file added src/assets/wallpapers/rain.gif
Binary file added src/assets/wallpapers/sec.gif
42 changes: 42 additions & 0 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { useState } from 'react'
import './button.css'
type ButtonProps = {
text: string
anotherText?: string
onclick: () => void
width: number
height: number
size: number
padding?: number
}
export default function Button({
text,
anotherText,
onclick,
width,
height,
size,
padding = 10,
}: ButtonProps) {
const [isPlaying, setIsPlaying] = useState(false)
function toggleStartStop() {
setIsPlaying(!isPlaying)
onclick()
}
return (
<div className="flex items-end">
<button
className="button text-white text-2xl flex justify-center items-center"
onClick={toggleStartStop}
style={{
width: `${width}rem`,
height: `${height}rem`,
fontSize: `${size}rem`,
padding: `${padding}px`,
}}
>
{isPlaying ? <h1> {text}</h1> : <h1> {anotherText}</h1>}
</button>
</div>
)
}
32 changes: 32 additions & 0 deletions src/components/IconButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
type IconsProps = {
activeIcon?: string
inActiveIcon?: string
size?: number
onChange: (isActive: boolean) => void
isActive?: boolean
}

export default function IconButton({
activeIcon,
inActiveIcon,
size = 40,
isActive,
onChange,
}: IconsProps) {
function handleClick() {
onChange(!isActive)
}
return (
<button
onClick={handleClick}
className="mx-3"
style={{ height: `${size}px`, width: `${size}px` }}
>
{isActive ? (
<img src={activeIcon} className="w-full" />
) : (
<img src={inActiveIcon} className="w-full" />
)}
</button>
)
}
18 changes: 18 additions & 0 deletions src/components/InputBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import './inputBar.css'
import InputBg from '../assets/background/inputbg.png'

type InputBarProps = {
value: number
}
export default function InputBar({ value }: InputBarProps) {
return (
<div>
<input
type="text"
className="input bg-no-repeat bg-contain px-3 text-black"
style={{ backgroundImage: `url(${InputBg})` }}
value={value}
/>
</div>
)
}
38 changes: 38 additions & 0 deletions src/components/MusicItem.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
export type Music = {
audio: HTMLAudioElement
title: string
artist: string
cover: string
}

type MusicItemProps = {
music: Music
onChange: (music: Music) => void
}

const MusicItem = ({ music, onChange }: MusicItemProps) => {
function playAudio() {
onChange(music)
}

return (
<div
onClick={playAudio}
style={{ cursor: 'pointer' }}
className=" w-[80%] mb-1 p-2 px-4 flex h-16 border-b items-center border-[rgb(255,255,255,23%)]"
>
<img
src={music.cover}
style={{ height: '3rem', width: '3rem' }}
className="rounded mr-4"
/>
<div>
<h1 className="pb-[0.3rem] text-[0.6rem] font-['eightBit']">
{music.title}
</h1>
<div className=" text-[0.4rem] font-['eightBit']">{music.artist}</div>
</div>
</div>
)
}
export default MusicItem
Loading