Skip to content

Commit

Permalink
change ambr.api to correct link and adjust grid on user
Browse files Browse the repository at this point in the history
  • Loading branch information
Pho86 committed Oct 17, 2024
1 parent 9922a2f commit 74d215c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ npm run cypress:open
## Screenshots
<img src="public/HomePage.png" alt="homepage page"/>
<img src="public/Teambuilder.png" alt="teambuilder page"/>
<img src="public/UserPage.gif" alt="User profile page"/>

## Contributing

Expand Down
Binary file added public/UserPage.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/components/ProfileCard/grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function ProfileCardGrid({
};

return <>
<div className="grid-auto-fit-150 mt-10">
<div className="grid-auto-fit-200 mt-10">
{
user.characters.length > 0 ? user.characters.map((character: any, index: number) => {
return <CharacterCard activeProp={() => {
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/ProfileCard/wide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ export function ProfileCardWide({
<Image src={`/namecards/stars_background.png`} width={2500} height={2500} alt={`${activeCharacter.name} background stars image`} blurDataURL="data:..." placeholder="blur" className="pointer-events-none absolute top-0 mix-blend-overlay opacity-40 rounded-xl object-cover h-full " />
:
activeCharacter.name === "Yae Miko" ?
<Image src={`https://api.ambr.top/assets/UI/namecard/UI_NameCardPic_${activeCharacter.fileName}1_P.png`} blurDataURL="data:..." placeholder="blur" width={2000} height={1000} alt={`${activeCharacter.name} namecard image banner`} className="pointer-events-none absolute top-0 mix-blend-overlay opacity-50 rounded-xl object-cover h-full " />
<Image src={`https://gi.yatta.moe/assets/UI/namecard/UI_NameCardPic_${activeCharacter.fileName}1_P.png`} blurDataURL="data:..." placeholder="blur" width={2000} height={1000} alt={`${activeCharacter.name} namecard image banner`} className="pointer-events-none absolute top-0 mix-blend-overlay opacity-50 rounded-xl object-cover h-full " />
:
(activeCharacter.name === "Traveler") ?
<Image src={`/namecards/UI_NameCardPic_Ysxf4_P.png`} width={2000} height={1000} alt={`${activeCharacter.name} namecard image banner`} className="pointer-events-none absolute top-0 mix-blend-overlay opacity-50 rounded-xl object-cover h-full w-full" />
:
<Image src={`https://api.ambr.top/assets/UI/namecard/UI_NameCardPic_${activeCharacter.fileName}_P.png`} blurDataURL="data:..." placeholder="blur" width={2000} height={1000} alt={`${activeCharacter.name} namecard image banner`} className="pointer-events-none absolute top-0 mix-blend-overlay opacity-50 rounded-xl object-cover h-full w-full" />
<Image src={`https://gi.yatta.moe/assets/UI/namecard/UI_NameCardPic_${activeCharacter.fileName}_P.png`} blurDataURL="data:..." placeholder="blur" width={2000} height={1000} alt={`${activeCharacter.name} namecard image banner`} className="pointer-events-none absolute top-0 mix-blend-overlay opacity-50 rounded-xl object-cover h-full w-full" />
}
<Image src={'/icon.svg'} alt="Tenryou Logo" width={50} height={50} className="absolute right-2 top-2 drop-shadow-icon"/>
<div className="w-full h-full relative min-h-[400px] col-span-1">
Expand Down
2 changes: 1 addition & 1 deletion src/app/users/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function UserPage() {
return (
<>
<div className="flex flex-col gap-4 justify-center items-center mt-64">
<p className="text-center">Make sure the profile settings in the game have &quot;Show character details&quot; enabled, otherwise the API will not be able to see profile details.</p>
<p className="text-center">Make sure the profile settings in the game have &quot;Show character details&quot; enabled, otherwise the API will not be able to see profile details. When an update is near, API no longer works.</p>
<p className="text-center">Example: 600020272</p>
<form className="flex justify-center items-center h-full w-full gap-2" onSubmit={handleSubmit} >
<input type="number" name="uid" required value={user.uid} placeholder="Enter UID..." className="p-2 rounded-xl" onChange={handleChange} />
Expand Down

0 comments on commit 74d215c

Please sign in to comment.