Skip to content

Commit

Permalink
Merge pull request #411 from BIDMCDigitalPsychiatry/funny-memory
Browse files Browse the repository at this point in the history
Funny memory game changes
  • Loading branch information
sarithapillai8 authored Oct 30, 2024
2 parents 39f591f + 74ee600 commit 9273de0
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 11 deletions.
7 changes: 5 additions & 2 deletions FunnyMemory/src/components/AudioRecorder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,22 @@ const AudioRecorder = ({ ...props }) => {
<div className="microphone-wrapper">
<div
className="mircophone-container"
ref={microphoneRef}
>
<div className="microphone-icon" ref={microphoneRef}
onClick={(e) => {
e.stopPropagation();
handleListing();
}}
>
<Microphone />
<Microphone />
</div>
<div className="microphone-status">
{isListening ? i18n.t("RECORDING") : i18n.t("START_RECORDING")}
</div>
{isListening && (
<Button
variant="primary"
className="btn-stop"
onClick={(e) => {
e.stopPropagation();
stopHandle();
Expand Down
61 changes: 52 additions & 9 deletions FunnyMemory/src/containers/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
}

body {
background: rgba(53, 159, 254, 1) !important;
/* background: rgba(53, 159, 254, 1) !important; */
background: #f4f4f4 !important;
}

nav a {
Expand Down Expand Up @@ -40,28 +41,33 @@ nav a {

.heading {
text-align: center;
color: rgba(53, 159, 254, 1);
background: rgba(53, 159, 254, 1);
padding: 15px;
background: #fff;
color: #fff;
}

.home-link {
position: absolute;
right: 0;
right: 10px;
top: 5px;
right: 15px;
top: 15px;
}
.home-link svg path{
fill:#fff;
}

.game-board {
color: #fff;
text-align: center;
}

.back-link {
position: absolute;
left: 0;
left: 10px;
top: 5px;
left: 15px;
top: 15px;
}
.back-link svg path{
fill:#fff;
}

.btn-primary:hover {
Expand All @@ -75,6 +81,12 @@ nav a {
color: #fff;
font-size: 20px;
}
.box-game p, .box-game h6{
color: #359ffe;
}
.box-game p{
font-weight: 600;
}
.imgOption {
width: 100%;
max-width: 400px;
Expand Down Expand Up @@ -158,7 +170,7 @@ input[type=checkbox] {
.timer-div {
margin-top: 10px;
min-height: 60px;
color: rgb(253, 254, 255);
color: #359ffe;
}

@media only screen and (min-width: 500px) {
Expand Down Expand Up @@ -244,4 +256,35 @@ input[type=checkbox] {
text-align: left;
margin-left: 37%;
}
}
.microphone-icon{
background-color: #ff0000;
width: 60px;
height: 60px;
padding: 10px;
border-radius: 50%;
cursor: pointer;
margin: 50px auto;
-webkit-box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.54);
-moz-box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.54);
box-shadow: 0px 0px 9px 0px rgba(0,0,0,0.54);
}
.microphone-icon svg{
width: 80%;
}
.microphone-icon svg path{
fill:#fff;
}
.microphone-status{
font-size: 14px;
color: #3b3b3b;
}
.btn-stop{
color: #fff;
background-color:#359ffe;
padding: 10px 25px;
border: 0;
border-radius: 25px;
margin-top: 16px;
font-weight: 600;
}

0 comments on commit 9273de0

Please sign in to comment.