updated naming and styling

This commit is contained in:
aj 2020-01-23 11:59:23 +00:00
parent 5b42a6a4db
commit 4c9efbd614
7 changed files with 670 additions and 564 deletions

View File

@ -11,13 +11,15 @@ fmframework_logger = logging.getLogger('fmframework')
spotfm_logger = logging.getLogger('spotfm') spotfm_logger = logging.getLogger('spotfm')
if os.environ.get('DEPLOY_DESTINATION', None) == 'PROD': if os.environ.get('DEPLOY_DESTINATION', None) == 'PROD':
from google.cloud import logging as glogging import google.cloud.logging
from google.cloud.logging.handlers import CloudLoggingHandler, setup_logging
log_format = '%(funcName)s - %(message)s' log_format = '%(funcName)s - %(message)s'
formatter = logging.Formatter(log_format) formatter = logging.Formatter(log_format)
client = glogging.Client() client = google.cloud.logging.Client()
handler = client.get_default_handler() handler = CloudLoggingHandler(client, name="music-tools")
setup_logging(handler)
handler.setFormatter(formatter) handler.setFormatter(formatter)

View File

@ -4,7 +4,7 @@
<title>sarsoo/{% block title %}{% endblock %}</title> <title>sarsoo/{% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<link href="https://fonts.googleapis.com/css?family=Pirata+One|Lato" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Pirata+One|Roboto" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="https://storage.googleapis.com/sarsooxyzstatic/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="https://storage.googleapis.com/sarsooxyzstatic/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://storage.googleapis.com/sarsooxyzstatic/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="https://storage.googleapis.com/sarsooxyzstatic/favicon-32x32.png">

View File

@ -1,6 +1,6 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}spotify{% endblock %} {% block title %}music{% endblock %}
{% block content %} {% block content %}
@ -16,7 +16,7 @@
<div class="row"> <div class="row">
<div class="{% if logged_in %}pad-12{% else %}pad-9{% endif %} card"> <div class="{% if logged_in %}pad-12{% else %}pad-9{% endif %} card">
<h1>Spotify Playlist Manager</h1> <h1>music tools</h1>
<p class="center-text">create "super-playlists" of smaller modular playlists</p> <p class="center-text">create "super-playlists" of smaller modular playlists</p>

1198
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -19,22 +19,22 @@
}, },
"homepage": "https://github.com/Sarsoo/spotify-web#readme", "homepage": "https://github.com/Sarsoo/spotify-web#readme",
"dependencies": { "dependencies": {
"axios": "^0.19.0", "axios": "^0.19.2",
"chart.js": "^2.9.3", "chart.js": "^2.9.3",
"react": "^16.12.0", "react": "^16.12.0",
"react-dom": "^16.12.0", "react-dom": "^16.12.0",
"react-router-dom": "^5.1.2" "react-router-dom": "^5.1.2"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.7.5", "@babel/cli": "^7.8.3",
"@babel/core": "^7.7.5", "@babel/core": "^7.8.3",
"@babel/preset-env": "^7.7.5", "@babel/preset-env": "^7.8.3",
"@babel/preset-react": "^7.7.4", "@babel/preset-react": "^7.8.3",
"babel-loader": "^8.0.6", "babel-loader": "^8.0.6",
"clean-webpack-plugin": "^3.0.0", "clean-webpack-plugin": "^3.0.0",
"css-loader": "^3.2.1", "css-loader": "^3.4.2",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
"webpack": "^4.41.2", "webpack": "^4.41.5",
"webpack-cli": "^3.3.10", "webpack-cli": "^3.3.10",
"webpack-merge": "^4.2.2" "webpack-merge": "^4.2.2"
} }

View File

@ -14,14 +14,14 @@ class Index extends Component{
<thead> <thead>
<tr> <tr>
<th> <th>
<h1 className="center-text text-no-select">playlist manager</h1> <h1 className="center-text text-no-select">music tools</h1>
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td className="center-text text-no-select ui-text" style={{fontSize: "20px"}}> <td className="center-text text-no-select ui-text" style={{fontSize: "20px"}}>
construct playlists from selections of other playlists construct spotify playlists from selections of other playlists
</td> </td>
</tr> </tr>
<tr> <tr>
@ -31,7 +31,7 @@ class Index extends Component{
</tr> </tr>
<tr> <tr>
<td className="center-text text-no-select ui-text"> <td className="center-text text-no-select ui-text">
optionally append recommendations generated by spotify optionally append auto-generated recommendations
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -1,4 +1,4 @@
$font-stack: 'Lato', arial; $font-stack: 'Roboto', arial;
$background-colour: #202124; $background-colour: #202124;
$ui-colour: #131313; $ui-colour: #131313;
$light-ui: #575757; $light-ui: #575757;