Skip to content

Commit

Permalink
Merge branch 'main' into fix-username-in-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AHSANATIQ98 authored Oct 5, 2024
2 parents cda2d75 + 31249cf commit 6dcc41d
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 9 deletions.
29 changes: 29 additions & 0 deletions .github/pr_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Description

Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.

- Fixes #(issue number)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation update
- [ ] Tests update

## Checklist

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] My changes generate no new warnings
- [ ] New and existing unit tests pass locally with my changes
- [ ] I have maintained a clean commit history by using the necessary Git commands
- [ ] I have checked that my code does not cause any merge conflicts

## Screenshots (if applicable)

Add screenshots to help explain the changes (if necessary).
27 changes: 27 additions & 0 deletions .github/workflows/check_screenshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check Screenshot in PR

on:
pull_request:
types: [opened, edited, synchronize]

jobs:
check-screenshot:
runs-on: ubuntu-latest

steps:
- name: Check if screenshot is attached
id: check_screenshot
run: |
# Fetch the PR body (description) using jq
PR_BODY=$(jq -r '.pull_request.body' "$GITHUB_EVENT_PATH")
# Log the PR body for debugging (you can remove this later)
echo "PR BODY: $PR_BODY"
# Check if the PR body contains a GitHub-hosted image URL or image extensions (png, jpg, jpeg, gif)
if echo "$PR_BODY" | grep -E "https://github.com/.+/assets/|\.png|\.jpg|\.jpeg|\.gif"; then
echo "Screenshot found!"
else
echo "No screenshot found! Please attach a screenshot to your PR."
exit 1 # Fail the workflow if no screenshot is found
fi
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feel Calm, Centered, and Peaceful

| 🌟 **Stars** | 🍴 **Forks** | 🐛 **Issues** | 🔔 **Open PRs** | 🔕 **Closed PRs** |
|--------------|--------------|---------------|-----------------|------------------|
| ![GitHub stars](https://img.shields.io/badge/stars-2-blue) | ![GitHub forks](https://img.shields.io/badge/forks-1-brightgreen) | ![GitHub issues](https://img.shields.io/badge/issues-0-red) | ![Open PRs](https://img.shields.io/badge/pull%20requests-0-yellow) | ![Closed PRs](https://img.shields.io/badge/pull%20requests-2-lightgrey) |
| ![GitHub stars](https://img.shields.io/badge/stars-9-blue) | ![GitHub forks](https://img.shields.io/badge/forks-26-brightgreen) | ![GitHub issues](https://img.shields.io/badge/issues-22-red) | ![Open PRs](https://img.shields.io/badge/pull%20requests-7-yellow) | ![Closed PRs](https://img.shields.io/badge/pull%20requests-9-lightgrey) |

## 🏆 Featured in

Expand Down Expand Up @@ -37,7 +37,7 @@ To set up SereniFi on your local machine, follow these steps:

1. **Clone the Repository**
```bash
git clone https://github.com/Amna-Hassan04/serenity-guide.git
git clone https://github.com/Amna-Hassan04/serenity-guide.git
```

2. **Navigate to the Project Directory**
Expand Down Expand Up @@ -65,7 +65,7 @@ To set up SereniFi on your local machine, follow these steps:
|:--:|:--:|:--:|:--:|:--:|
| [Amna Hassan](https://github.com/Amna-Hassan04) | [Anushka Pote](https://github.com/username2) | [K. Madhuri](https://github.com/username3) | [Pearl V](https://github.com/username4) | [Kiran Baliga](https://github.com/KiranBaliga) |

---


## 🏆 Acknowledgments

Expand Down
25 changes: 20 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,29 @@ def show_main_page():

def soothing_sounds():
st.header("🎵 Calm Down with Soothing Sounds")
#Contributions made by Himanshi-M
sound_options = {
"Rain": "https://example.com/rain_sound.mp3",
"Ocean Waves": "https://example.com/ocean_waves.mp3",
"Forest": "https://example.com/forest.mp3"
"Rain": "https://cdn.pixabay.com/audio/2022/05/13/audio_257112ce99.mp3",
"Ocean Waves": "https://cdn.pixabay.com/audio/2022/06/07/audio_b9bd4170e4.mp3",
"Forest": "https://cdn.pixabay.com/audio/2022/03/10/audio_4dedf5bf94.mp3",
"Birds Chirping":"https://cdn.pixabay.com/audio/2022/03/09/audio_c610232c26.mp3",
"River Flowing":"https://cdn.pixabay.com/audio/2024/07/30/audio_319893354c.mp3",
"White Noise":"https://cdn.pixabay.com/audio/2022/03/12/audio_b4f7e5a4ff.mp3",
"Pink Noise": "https://cdn.pixabay.com/audio/2023/10/07/audio_df9c190caf.mp3"
}
selected_sound = st.selectbox("Choose a sound to relax:", list(sound_options.keys()))
if st.button("Play Sound"):
st.audio(sound_options[selected_sound])
# Organizing the button, checkbox and volume slider on the same row
col1, col2, col3 = st.columns([1,1,2])
with col1:
playbutton=st.button("Play Sound")
with col2:
# Looping Checkbox
loopcheckbox = st.checkbox("Loop Sound")

if playbutton:
# Rendering the audio player and JS in the app
with col3:
st.audio(sound_options[selected_sound], format="audio/mp3", loop=loopcheckbox)

def interactive_journal():
if 'journal_entries' not in st.session_state:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
streamlit==1.25.0
streamlit==1.33.0
plotly==5.17.0
pandas==2.1.1
requests==2.31.0
Expand Down

0 comments on commit 6dcc41d

Please sign in to comment.