Skip to content

Commit

Permalink
remove yoga.svg because i cant find it :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Seneli committed Sep 24, 2023
1 parent 56025d3 commit b8a5298
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import styled from 'styled-components';
import {PageTemplate} from "../components";
import { useNavigate } from 'react-router-dom';
import {ColorScheme} from "../types/enums";
import yoga from "../assets/yoga.svg";
// import yoga from "../assets/yoga.svg";

const Home = () => {
let navigate = useNavigate();

return (
<PageTemplate colorScheme={ColorScheme.Green}>
<Image src={yoga} alt="yoga"></Image>
{/* <Image src={yoga} alt="yoga"></Image> */}
<Title>Welcome to Posetastic!</Title>
<Text>Click the buttons to learn more!</Text>
<ButtonFlex>
Expand Down
4 changes: 3 additions & 1 deletion client/src/pages/Train.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function sketch(p5:any) {

const Train = () => {
const desiredPoses = ["Stand Straight", "Tree Pose", 'Warrior II'];
const poseImages = [ warriorPose,standStraight,treePose, ];
const poseImages = [standStraight,treePose, warriorPose];
const [poseNum, setPoseNum] = useState<number>(0);
const [pose, setPose] = useState<string>('Unknown Pose');
const [count, setCount] = useState(0);
Expand Down Expand Up @@ -138,7 +138,9 @@ const Train = () => {
<Text><b>Timer:</b> {count}</Text>

<ImageWrapper><PoseImage src={poseImages[poseNum]} alt="yoga"/></ImageWrapper>
<button onClick={()=> setPoseNum(poseNum+1)}>hihi</button>
</>

}
</PageTemplate>
)
Expand Down
9 changes: 9 additions & 0 deletions client/src/types/images.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare module "*.png" {
const content: any;
export default content;
}

declare module "*.svg" {
const content: any;
export default content;
}
2 changes: 1 addition & 1 deletion client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"jsx": "react-jsx"
},
"include": [
"src","src/components", "src/custom.d.ts"
"src","src/components", "src/custom.d.ts", "src/types/images.d.ts"
]

}

0 comments on commit b8a5298

Please sign in to comment.