This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/mfdavies/mobility-mate
- Loading branch information
Showing
13 changed files
with
357 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
annotated-types==0.6.0 | ||
anyio==4.2.0 | ||
blinker==1.7.0 | ||
CacheControl==0.13.1 | ||
cachetools==5.3.2 | ||
certifi==2023.11.17 | ||
cffi==1.16.0 | ||
charset-normalizer==3.3.2 | ||
click==8.1.7 | ||
cryptography==41.0.7 | ||
distro==1.9.0 | ||
filelock==3.13.1 | ||
firebase-admin==6.3.0 | ||
Flask==3.0.0 | ||
Flask-Cors==4.0.0 | ||
Flask-Mail==0.9.1 | ||
fsspec==2023.12.2 | ||
google-api-core==2.15.0 | ||
google-api-python-client==2.112.0 | ||
google-auth==2.26.1 | ||
google-auth-httplib2==0.2.0 | ||
google-cloud-core==2.4.1 | ||
google-cloud-firestore==2.14.0 | ||
google-cloud-storage==2.14.0 | ||
google-crc32c==1.5.0 | ||
google-resumable-media==2.7.0 | ||
googleapis-common-protos==1.62.0 | ||
grpcio==1.60.0 | ||
grpcio-status==1.60.0 | ||
h11==0.14.0 | ||
httpcore==1.0.2 | ||
httplib2==0.22.0 | ||
httpx==0.26.0 | ||
idna==3.6 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
llvmlite==0.41.1 | ||
load-dotenv==0.1.0 | ||
MarkupSafe==2.1.3 | ||
more-itertools==10.1.0 | ||
mpmath==1.3.0 | ||
msgpack==1.0.7 | ||
networkx==3.2.1 | ||
numba==0.58.1 | ||
numpy==1.26.3 | ||
openai==1.6.1 | ||
openai-whisper==20231117 | ||
proto-plus==1.23.0 | ||
protobuf==4.25.1 | ||
pyasn1==0.5.1 | ||
pyasn1-modules==0.3.0 | ||
pycparser==2.21 | ||
pydantic==2.5.3 | ||
pydantic_core==2.14.6 | ||
PyJWT==2.8.0 | ||
pyparsing==3.1.1 | ||
python-dotenv==1.0.0 | ||
regex==2023.12.25 | ||
requests==2.31.0 | ||
rsa==4.9 | ||
six==1.16.0 | ||
sniffio==1.3.0 | ||
sympy==1.12 | ||
tiktoken==0.5.2 | ||
torch==2.1.2 | ||
tqdm==4.66.1 | ||
typing_extensions==4.9.0 | ||
uritemplate==4.1.1 | ||
urllib3==2.1.0 | ||
Werkzeug==3.0.1 | ||
whisper==1.1.10 |
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.
Binary file not shown.
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 |
---|---|---|
@@ -1,22 +1,51 @@ | ||
import PropTypes from 'prop-types'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
const ExerciseCard = ({ title, description, imageUrl, instructions, onClick, isExpanded }) => { | ||
const [startAnimation, setStartAnimation] = useState(false); | ||
|
||
useEffect(() => { | ||
if (isExpanded) { | ||
|
||
const timeoutId = window.setTimeout(() => { | ||
setStartAnimation(true); | ||
}, 100); // Delay in milliseconds | ||
|
||
return () => window.clearTimeout(timeoutId); | ||
} | ||
}, [isExpanded]); | ||
|
||
const animationClass = startAnimation ? 'start-animation' : ''; | ||
|
||
const ExerciseCard = () => { | ||
return ( | ||
<div className="card w-96 bg-base-100 shadow-xl"> | ||
<figure> | ||
<img | ||
src="https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg" | ||
alt="Shoes" | ||
/> | ||
</figure> | ||
<div className="card-body"> | ||
<h2 className="card-title">Shoes!</h2> | ||
<p>If a dog chews shoes whose shoes does he choose?</p> | ||
<div className="card-actions justify-end"> | ||
<button className="btn btn-primary">Buy Now</button> | ||
<div className={`card ${isExpanded ? 'expanded' : ''} ${animationClass}`} onClick={onClick}> | ||
<div className="bg-gray-400"> | ||
<figure> | ||
<img src={imageUrl} alt={title} /> | ||
</figure> | ||
<div className="card-body"> | ||
<h2 className="card-title">{title}</h2> | ||
<p>{description}</p> | ||
{isExpanded && ( | ||
<div> | ||
{instructions.map((step, index) => ( | ||
<p key={index}>{step}</p> | ||
))} | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ExerciseCard; | ||
ExerciseCard.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
description: PropTypes.string.isRequired, | ||
imageUrl: PropTypes.string.isRequired, | ||
instructions: PropTypes.arrayOf(PropTypes.string).isRequired, | ||
onClick: PropTypes.func.isRequired, | ||
isExpanded: PropTypes.bool.isRequired, | ||
}; | ||
|
||
export default ExerciseCard; |
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,22 @@ | ||
|
||
const Phone = () => { | ||
return ( | ||
<div className="card w-96 bg-base-100 shadow-xl"> | ||
<figure> | ||
<img | ||
src="https://daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.jpg" | ||
alt="Shoes" | ||
/> | ||
</figure> | ||
<div className="card-body"> | ||
<h2 className="card-title">Phone!</h2> | ||
<p>I broke my phone, whose fault is it?</p> | ||
<div className="card-actions justify-end"> | ||
<button className="btn btn-primary">Trade In</button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Phone; |
Oops, something went wrong.