Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .Mood.js.swp
Binary file not shown.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ yarn-error.log*
# js files

.env
## bc of client id
## bc of client id

User.js
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,13 @@ MIT
![Auth](https://github.com/lyokoth/moodyfy/blob/master/src/images/spotify-auth.png)



- Mood maker:

![alt mood ss](./src/images/alt%20mood%20ss.png)



- Created Playlist (spotify app, based on Ling Tosite Sigure):

![Created playlist](./src//images/IMG_9161.jpg)
19 changes: 19 additions & 0 deletions flask/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from flask import Flask, jsonify, request


app = Flask(__name__)


@app.route('/api/user-info', methods=['GET'])
def get_user_info():
user_info = {
'userId': "21avdtxygavnpmwvjdymer53a",
'name': "Kenyamegami",

}
return jsonify(user_info)



if __name__ == '__main__':
app.run(debug=True, port='5000')
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"browserify-zlib": "^0.2.0",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"jquery": "^3.7.1",
"mdb-react-ui-kit": "^6.3.0",
"mdbreact": "^5.2.0",
"node-process": "^1.0.1",
Expand Down
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Moodify</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
5 changes: 3 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
color: white;
}

.button {
.button > a {
color: #fff;
background-color: #7c25f8;
background-color: #9b78cc;
font-size: 14px;
line-height: 1;
border-radius: 500px;
Expand All @@ -42,6 +42,7 @@
text-transform: uppercase;
white-space: normal;
cursor: pointer;
text-decoration: none;
}


Expand Down
7 changes: 7 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { reducerCases } from './utils/Constants';
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import axios from 'axios';

// import 'bootstrap/dist/js/bootstrap.bundle.min.js';
// import 'bootstrap/dist/css/bootstrap.min.css';


export default function App() {
const [{ token }, dispatch] = useStateProvider();

Expand Down Expand Up @@ -64,5 +68,8 @@ export default function App() {
<Route path="/playlist" element={<Playlist />} />
</Routes>
</Router>



);
}
215 changes: 104 additions & 111 deletions src/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,120 +57,113 @@

}

.flex-column {
flex: auto;
}

.navbar-toggler-icon {
background-color: #ffffff; /* Customize the color of the hamburger menu icon */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: 'Montserrat';
background-color: #fff;

ul li {
list-style-type: none;
}
}

.nav {
background-color: blue;
width: 100%;
position: fixed;
z-index: 10;
}

#bar span {
display: block;
position:absolute;
height: 9px;
width: 50%;
background: radial-gradient(circle, #d1b2fc, #9b78cc, #6531ad);
opacity: 1;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .25s ease-in-out;
-moz-transition: .25s ease-in-out;
-o-transition: .25s ease-in-out;
transition: .25s ease-in-out;
}

#bar span:nth-child(even) {
left: 50%;
border-radius: 0 9px 9px 0;
}

@media (max-width: 991px) {
/* Apply styles when the screen width is 991px or less */
.navbar-nav {
flex-direction: column;
align-items: center;
margin-top: 10px;
}
#bar span:nth-child(odd) {
left:0px;
border-radius: 9px 0 0 9px;
}

.navbar-nav .nav-link {
margin: 8px 0;
}
#bar span:nth-child(1), #bar span:nth-child(2) {
top: 0px;
}


.search__bar, nav-right {
border-radius: 60%;
margin-right: 60px;
align-items: right;
}

.animated-icon {
width: 30px;
height: 20px;
position: relative;
margin: 0px;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
transition: .5s ease-in-out;
cursor: pointer;
}
.animated-icon span
{
display: block;
position: absolute;
height: 3px;
width: 100%;
border-radius: 9px;
opacity: 1;
left: 0;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .25s ease-in-out;
-moz-transition: .25s ease-in-out;
-o-transition: .25s ease-in-out;
transition: .25s ease-in-out;
}

.animated-icon.open span:nth-child(1) {
top: 11px;
-webkit-transform: rotate(135deg);
-moz-transform: rotate(135deg);
-o-transform: rotate(135deg);
transform: rotate(135deg);
}

.animated-icon.open span:nth-child(2) {
opacity: 0;
left: -60px;
}

.animated-icon.open span:nth-child(3) {
top: 11px;
-webkit-transform: rotate(-135deg);
-moz-transform: rotate(-135deg);
-o-transform: rotate(-135deg);
transform: rotate(-135deg);
}

/* Custom hamburger icon */
.custom-hamburger {
display: flex;
flex-direction: column;
cursor: pointer;
padding: 10px;
}

.custom-hamburger .bar {
width: 30px;
height: 3px;
background-color: white;
margin: 3px 0;
}

/* Hide default navigation links */
.custom-nav-links {
display: none;
}

/* Show navigation links in a responsive way */
@media (max-width: 768px) {
.custom-hamburger {
display: block;

#nav ul {
padding: 0 22px;
}

.custom-nav-links {
display: block;
#bar span:nth-child(3), #bar span:nth-child(4) {
top: 18px;
}
}

.custom-hamburger:hover {
color: #9b78cc;
}

#bar span:nth-child(5), #bar span:nth-child(6) {
top: 36px;
}

#bar.open span:nth-child(1),#bar.open span:nth-child(6) {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}

#bar.open span:nth-child(2),#bar.open span:nth-child(5) {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}

#bar.open span:nth-child(1) {
left: 5px;
top: 7px;
}

#bar.open span:nth-child(2) {
left: calc(50% - 5px);
top: 7px;
}

#bar.open span:nth-child(3) {
left: -50%;
opacity: 0;
}

#bar.open span:nth-child(4) {
left: 100%;
opacity: 0;
}


#bar.open span:nth-child(5) {
left: 5px;
top: 29px;
}

#bar.open span:nth-child(6) {
left: calc(50% - 5px);
top: 29px;
}

Loading