From 212e12a7c572cc8b4de8e1089b33d7bcc113496c Mon Sep 17 00:00:00 2001 From: Fabian Eichhorner Date: Sat, 19 Jan 2019 18:05:14 +0100 Subject: [PATCH] basic styling --- service-website/package.json | 3 ++ service-website/src/components/App.js | 31 ++++++++++++++----- service-website/src/components/SearchTerm.js | 20 ++++++++++-- .../src/components/SearchTermsInput.js | 14 ++++++++- .../src/components/SentimentAnalysis.js | 12 +++++-- 5 files changed, 67 insertions(+), 13 deletions(-) diff --git a/service-website/package.json b/service-website/package.json index fdd9ee8..b7a8b88 100644 --- a/service-website/package.json +++ b/service-website/package.json @@ -3,6 +3,9 @@ "version": "0.1.0", "private": true, "dependencies": { + "@fortawesome/fontawesome-svg-core": "^1.2.12", + "@fortawesome/free-solid-svg-icons": "^5.6.3", + "@fortawesome/react-fontawesome": "^0.1.4", "axios": "^0.18.0", "immutable": "^4.0.0-rc.12", "prop-types": "^15.6.2", diff --git a/service-website/src/components/App.js b/service-website/src/components/App.js index f56c1b2..74eaeec 100755 --- a/service-website/src/components/App.js +++ b/service-website/src/components/App.js @@ -1,19 +1,34 @@ import React, {Component} from "react"; import SentimentAnalysis from "./SentimentAnalysis"; +import {Container, Hero, Heading} from "react-bulma-components/full"; + class App extends Component { render() { return ( -
-
- Sentiment Analysis -
-
+
+ + + + Sentiment Analysis + + AIC Project - G6T4 + + + + +
+ +
-
- G6T4 -
+
+
+

+ Docker-based Service Composition by G6T4. +

+
+
); } diff --git a/service-website/src/components/SearchTerm.js b/service-website/src/components/SearchTerm.js index aadda1c..c31a2d6 100644 --- a/service-website/src/components/SearchTerm.js +++ b/service-website/src/components/SearchTerm.js @@ -1,5 +1,8 @@ import React from "react"; import PropTypes from "prop-types"; +import { Form, Icon, Button} from "react-bulma-components/full"; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { faTrashAlt, faComments } from '@fortawesome/free-solid-svg-icons' const SearchTerm = ({ index, @@ -24,8 +27,21 @@ const SearchTerm = ({ return (
- - + + + + + + + + + + +
); }; diff --git a/service-website/src/components/SearchTermsInput.js b/service-website/src/components/SearchTermsInput.js index be072db..304f0d5 100644 --- a/service-website/src/components/SearchTermsInput.js +++ b/service-website/src/components/SearchTermsInput.js @@ -1,6 +1,9 @@ import React from "react"; import PropTypes from "prop-types"; import SearchTerm from "./SearchTerm"; +import {Button, Icon} from "react-bulma-components/full"; +import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' +import {faPlus} from '@fortawesome/free-solid-svg-icons' const SearchTermsInput = ({ terms, @@ -41,8 +44,17 @@ const SearchTermsInput = ({ return (
+ +
+
{createSearchTerms()} - +
+
); }; diff --git a/service-website/src/components/SentimentAnalysis.js b/service-website/src/components/SentimentAnalysis.js index 88b41c7..5e368c4 100644 --- a/service-website/src/components/SentimentAnalysis.js +++ b/service-website/src/components/SentimentAnalysis.js @@ -3,6 +3,7 @@ import {Map} from "immutable"; import PdfReport from "./PdfReport"; import SearchTermsInput from "./SearchTermsInput"; import CamundaService from "../services/CamundaService"; +import {Button, Heading, Form} from "react-bulma-components/full"; class SentimentAnalysis extends Component { constructor(props, context) { @@ -76,12 +77,19 @@ class SentimentAnalysis extends Component { return (
- + Search Terms: - + +

+ +

+

+ +

+
-- 2.43.0