diff --git a/package.json b/package.json
index e2c5e69..c13873a 100644
--- a/package.json
+++ b/package.json
@@ -27,7 +27,7 @@
"text-summary"
]
},
- "proxy": "http://192.168.0.248",
+ "proxy": "http://192.168.0.42",
"homepage": "/",
"eslintConfig": {
"extends": "react-app"
diff --git a/src/elements/PageTitle/PageTitle.js b/src/elements/PageTitle/PageTitle.js
index b7ef224..cce4ec9 100644
--- a/src/elements/PageTitle/PageTitle.js
+++ b/src/elements/PageTitle/PageTitle.js
@@ -1,5 +1,5 @@
import React from "react";
-import "./PageTitle.css"
+import style from "./PageTitle.module.css"
class PageTitle extends React.Component {
constructor(props) {
@@ -11,9 +11,9 @@ class PageTitle extends React.Component {
render() {
return (
-
-
{this.props.title}
-
{this.props.subtitle}
+
+
{this.props.title}
+
{this.props.subtitle}
<>
{this.props.children}
>
diff --git a/src/elements/PageTitle/PageTitle.css b/src/elements/PageTitle/PageTitle.module.css
similarity index 100%
rename from src/elements/PageTitle/PageTitle.css
rename to src/elements/PageTitle/PageTitle.module.css
diff --git a/src/elements/Preview/Preview.js b/src/elements/Preview/Preview.js
index c3a6810..03bbf9b 100644
--- a/src/elements/Preview/Preview.js
+++ b/src/elements/Preview/Preview.js
@@ -1,5 +1,5 @@
import React from "react";
-import "./Preview.css";
+import style from "./Preview.module.css";
import Player from "../../pages/Player/Player";
import {Spinner} from "react-bootstrap";
@@ -38,17 +38,17 @@ class Preview extends React.Component {
render() {
return (
-
this.itemClick()}>
-
{this.state.name}
-
+
this.itemClick()}>
+
{this.state.name}
+
{this.state.previewpicture != null ?
-
:
-
}
+
}
-
@@ -68,8 +68,8 @@ class Preview extends React.Component {
export class TagPreview extends React.Component {
render() {
return (
-
this.itemClick()}>
-
+
this.itemClick()}>
+
{this.props.name}
diff --git a/src/elements/Preview/Preview.css b/src/elements/Preview/Preview.module.css
similarity index 100%
rename from src/elements/Preview/Preview.css
rename to src/elements/Preview/Preview.module.css
diff --git a/src/elements/SideBar/SideBar.js b/src/elements/SideBar/SideBar.js
index 9899adf..9375f33 100644
--- a/src/elements/SideBar/SideBar.js
+++ b/src/elements/SideBar/SideBar.js
@@ -1,12 +1,28 @@
import React from "react";
-import "./SideBar.css"
+import style from "./SideBar.module.css"
class SideBar extends React.Component {
render() {
- return (
+ return (
{this.props.children}
);
}
}
+export class SideBarTitle extends React.Component {
+ render() {
+ return (
+
{this.props.children}
+ );
+ }
+}
+
+export class SideBarItem extends React.Component {
+ render() {
+ return (
+
{this.props.children}
+ );
+ }
+}
+
export default SideBar;
diff --git a/src/elements/SideBar/SideBar.css b/src/elements/SideBar/SideBar.module.css
similarity index 100%
rename from src/elements/SideBar/SideBar.css
rename to src/elements/SideBar/SideBar.module.css
diff --git a/src/elements/Tag/Tag.js b/src/elements/Tag/Tag.js
index db6a6b5..d4885da 100644
--- a/src/elements/Tag/Tag.js
+++ b/src/elements/Tag/Tag.js
@@ -1,12 +1,12 @@
import React from "react";
-import "./Tag.css"
+import styles from "./Tag.module.css"
import CategoryPage from "../../pages/CategoryPage/CategoryPage";
class Tag extends React.Component {
render() {
return (
-