This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
451 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -73,4 +73,4 @@ const Navbar = () => { | |
</div> | ||
) | ||
} | ||
export default Navbar; | ||
export default Navbar; |
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,48 @@ | ||
import React from "react"; | ||
import "./pet.css"; | ||
import petImage from "../../assets/pet_frog.png"; | ||
import petImage2 from "../../assets/petyboi_carti.png"; | ||
import { ProgressBar } from "react-progressbar-fancy"; | ||
|
||
// https://github.com/RavinRau/react-progressbar-fancy?tab=readme-ov-file | ||
|
||
const Pet = () => { | ||
return ( | ||
<div className="pet_container"> | ||
<div className="pet_image"> | ||
<img src={petImage} alt="pet name" /> | ||
</div> | ||
<div className="pet_status_container"> | ||
<div className="pet_status_contents pet_status_name text-primary"> | ||
(Pet name) | ||
</div> | ||
<div className="pet_status_contents pet_status_HP"> | ||
<ProgressBar | ||
// className="space" | ||
label={"HP"} | ||
progressColor={"red"} | ||
score={25} | ||
/> | ||
</div> | ||
<div className="pet_status_contents pet_status_Happiness"> | ||
<ProgressBar | ||
className="space" | ||
label={"Happiness"} | ||
progressColor={"purple"} | ||
score={50} | ||
/> | ||
</div> | ||
<div className="pet_status_contents pet_status_XP"> | ||
<ProgressBar | ||
className="space" | ||
label={"XP"} | ||
progressColor={"green"} | ||
score={80} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Pet; |
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,31 @@ | ||
.pet_container{ | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
|
||
.pet_image{ | ||
flex: 1; | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: center; | ||
|
||
margin: 2rem; | ||
} | ||
|
||
.pet_image img{ | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.pet_status_container { | ||
flex: 1; | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: flex-start; | ||
flex-direction: column; | ||
} | ||
|
||
.pet_status_contents{ | ||
width: 90%; | ||
margin: 1rem; | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.