-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * added profile page --------- Co-authored-by: okhai <[email protected]>
- Loading branch information
1 parent
af8becb
commit f105eba
Showing
16 changed files
with
500 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import mancala_duels_logo from '../../assets/mancala_duels.png'; | ||
|
||
export default function EmptyGameHistory({ id }: { id: string }) { | ||
return ( | ||
<div className="w-[874px] h-[874px] bg-[url('./assets/lobby-box-long.png')] bg-contain bg-no-repeat p-8"> | ||
<div className='w-full h-[500px] flex flex-col items-center justify-center'> | ||
<img src={mancala_duels_logo} alt="duels" className="w-24 h-24 mx-auto" /> | ||
<h6 className="text-[#BDC2CC] font-bold text-lg mt-1.5">{id == "all" ? "You have no duels" : id == "won" ? "You have won no duels" : "You have lost no duels"}</h6> | ||
<button className="text-[#4F5666] text-sm">Create a game to play</button> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import clsx from "clsx"; | ||
|
||
export function GameHistorySkeleton() { | ||
const arr = Array(6).fill(null); | ||
return ( | ||
<> | ||
{arr.map((_, index) => { | ||
const isLast = index === arr.length - 1; | ||
return ( | ||
<tr key={index} className={clsx(!isLast && "border-b border-[#23272F]", "w-[814px] bg-[#0F1116] flex flex-row items-center")}> | ||
<td className="flex flex-row items-center p-4 space-x-5 w-[200px] justify-start"> | ||
<div className="flex flex-row items-center space-x-5 w-fit"> | ||
<div className="w-8 h-8 bg-gray-700 rounded-full"></div> | ||
<div className="w-24 h-4 bg-gray-700 rounded"></div> | ||
</div> | ||
</td> | ||
<td className="flex flex-row items-center p-4 space-x-5 w-[200px] justify-center"> | ||
<div className="flex flex-row items-center space-x-5 w-fit"> | ||
<div className="w-8 h-8 bg-gray-700 rounded-full"></div> | ||
<div className="w-24 h-4 bg-gray-700 rounded"></div> | ||
</div> | ||
</td> | ||
<td className="w-[200px] text-center ml-8"> | ||
<div className="w-24 h-4 mx-auto ml-12 bg-gray-700 rounded"></div> | ||
</td> | ||
<td className="w-[200px] text-center pr-12"> | ||
<div className="w-24 h-4 mx-auto ml-16 bg-gray-700 rounded"></div> | ||
</td> | ||
</tr> | ||
) | ||
|
||
})} | ||
|
||
</> | ||
); | ||
} |
Oops, something went wrong.