Skip to content

Commit

Permalink
details page reconfigured
Browse files Browse the repository at this point in the history
regarding the #106

panelbar , column and pie chart colors changed

Co-authored-by: Mani Anand <mani.anand@fau.de>
  • Loading branch information
IremToroslu and manifau committed Jun 11, 2021
1 parent bba51e1 commit 06b25d6
Show file tree
Hide file tree
Showing 13 changed files with 74 additions and 69 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/cards/MiniCardComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useStyles = createUseStyles((theme) => ({
// marginTop:50,
// padding: '8px 16px 8px 16px',
'&:hover': {
borderColor: theme.uniformStyle.color.tableHeaderColor,
borderColor: '#AE56FF',
'&:nth-child(n) > span': {
color: theme.color.lightBlue
}
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/details/ColumnChartComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import ReactApexChart from 'react-apexcharts';
import { getImpactAssessmentData, getLifeCycleStages } from 'interface/projectInterface';
import theme from 'resources/theme';

/**
* Column Chart
Expand Down Expand Up @@ -32,7 +33,7 @@ const ColumnChartComponent = () => {
}
},
fill: {
colors: ['#21C0FF']//['#2cb5de']
colors: ['#75bab4']//['#2cb5de']
},

dataLabels: {
Expand All @@ -43,7 +44,7 @@ const ColumnChartComponent = () => {
offsetY: -20,
style: {
fontSize: '12px',
colors: ['#21C0FF']
colors: ['#a9d1cd']
}
},
yaxis: {
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/details/PieChartComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ const PieChartComponent = () => {
labels: labels,
// TODO: do the materials stay the same? otherwise doesn't make sense to use fixed color / hardcode them
colors: [
'#F6E600',
theme.color.Steel,
theme.color.Pressboard,
theme.color.StainlessSteel,
'#F7EA48',
'#CBD2DE',
'#FDB0C0',
'#A4C8D5',
theme.color.Alminium,
'#0084E1',
'#f28e30'
'#52bede',
'#D89279'
],
responsive: [
{
Expand Down
26 changes: 13 additions & 13 deletions frontend/src/components/details/SelectVariableComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ class SelectVariableComponent extends Component {
</div>
<div className='w3-col l6 m6 s8 w3-left'>
<div className='w3-dropdown-hover w3-margin-right w3-margin-top w3-margin-bottom'>
<button className='w3-button' style={{ backgroundColor: '#468c46' }}>
<div className='ButtonTitle'>{this.state.selectedVariable}</div>
<button className='w3-button dropDown' >
{this.state.selectedVariable}
</button>
<div className='w3-dropdown-content w3-bar-block w3-border'>
{this.state.variables.map((item) => (
<div className='ButtonTitle'>
<button
onClick={() =>
this.onDropDownItemSelectedHandler(item.name)
}
className='w3-bar-item w3-button'
key={item.id}
>
{item.name}
</button>
</div>

<button
onClick={() =>
this.onDropDownItemSelectedHandler(item.name)
}
className='w3-bar-item w3-button'
key={item.id}
>
{item.name}
</button>

))}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/details/TableComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class TableComponent extends Component {

<table className='w3-table-all w3-card-4 w3-small w3-center'>
<thead>
<tr key={'FirstRow'} style={{ backgroundColor: '#009B55' }}>
<tr key={'FirstRow'} style={{ backgroundColor: '#b28290' }}>
{this.state.headers.map((item) => (
<th key={idKey + 'thead' + item.key}>{item.value}</th>
))}
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/components/details/charts_tables.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
font-weight: bold;
font-size: var(--global--text-title--FontSize);
letter-spacing: 0.5px;
color: #000000;
color: #1B1534;
}

/* Reconfiguration of the title style on Column chart */
Expand Down Expand Up @@ -67,7 +67,7 @@
font-weight: bold;
font-size: var(--global--text-title--FontSize);
letter-spacing: 0.5px;
color: #000000;
color: #1B1534;
margin-bottom: 10px;
}
/* Reconfiguration of the title style on cards */
Expand All @@ -78,7 +78,7 @@
font-size: var(--global--text-title--FontSize);
letter-spacing: 0.5px;
padding-left: 17px;
color: #000000;
color: #1B1534;
padding-bottom: 10px;
}

Expand All @@ -89,7 +89,7 @@
font-weight: normal;
font-size: var(--global--text-subtitle--FontSize);
letter-spacing: 0.5px;
color: #000000;
color: #1B1534;
margin-bottom: 10px;
}

Expand All @@ -100,7 +100,7 @@
font-weight: normal;
font-size: var(--global--table-items--FontSize);
margin-left: 0;
color: #000000;
color: #1B1534;
margin-top: 10px;
margin-bottom: 10px;
}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/details/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
border-radius: 25px;
height: 80px;
padding-top:5px;
color: #4d217a;
color: #F0F0F0;
/* border: 3px solid var(--global--button--color); */
/* background-color: var(--global--panel--color); */
}

/* -webkit-radial-gradient( bottom right, #4D217A,#1B1534 ); */
:root{
--global--button--color:#EDEDED;
--global--button--text--color:#4d217a;
--global--button--color:#4d217a;
--global--button--text--color:#F0F0F0;
--global--panel-title--FontSize: 22px;
--global--text-subtitle--FontSize: 19px;
}
Expand Down
27 changes: 3 additions & 24 deletions frontend/src/components/productGrid/ModelDropdownComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ const ModelDropdownComponent = (props) => {
<button
title={variableName}
className='w3-button dropDown'
style={{
fontSize: theme.typography.buttontitle.fontSize,
fontWeight: theme.typography.buttontitle.fontWeight,
lineHeight: theme.typography.buttontitle.lineHeight,
letterSpacing: theme.typography.buttontitle.letterSpacing
}}

>
{variableName.length > 25
? variableName.substring(0, 25 - 3) + '...'
Expand All @@ -60,12 +55,6 @@ const ModelDropdownComponent = (props) => {
<button
className='w3-button dropDown'
disabled
style={{
fontSize: theme.typography.buttontitle.fontSize,
fontWeight: theme.typography.buttontitle.fontWeight,
lineHeight: theme.typography.buttontitle.lineHeight,
letterSpacing: theme.typography.buttontitle.letterSpacing
}}
>
There is no model available
</button>
Expand All @@ -78,23 +67,13 @@ const ModelDropdownComponent = (props) => {
<button
className='w3-button dropDown'
title={selected}
style={{
fontSize: theme.typography.buttontitle.fontSize,
fontWeight: theme.typography.buttontitle.fontWeight,
lineHeight: theme.typography.buttontitle.lineHeight,
letterSpacing: theme.typography.buttontitle.letterSpacing
}}

>
{selected.length > 25 ? selected.substring(0, 25 - 3) + '...' : selected}
</button>
<div
className='w3-dropdown-content w3-bar-block w3-border dropDown'
style={{
fontSize: theme.typography.buttontitle.fontSize,
fontWeight: theme.typography.buttontitle.fontWeight,
lineHeight: theme.typography.buttontitle.lineHeight,
letterSpacing: theme.typography.buttonSendtitle.letterSpacing
}}

>
{variables.map((item) => (
<button
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/productGrid/ProductGridIndex.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
.dropDown:hover {
opacity: 0.8;
background-color: #8a00e5 !important;
background-color: #AE56FF !important;
color: white !important;
}
.imageTitle {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/sidebar/MenuItemComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function MenuItemComponent({ children, icon: Icon, id, items = [], level = 1, on
const classNameColumn = isActive ? classes.leftBar : '';
const classNameContainer = [classes.container, isActive && classes.activeContainer].join(' ');
const iconColor = isActive
? '#A54BF7'
? '#AE56FF'
: '#F0F0F0';

function onItemClicked(e) {
Expand Down
25 changes: 25 additions & 0 deletions frontend/src/components/sidebar/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
letter-spacing: 0.5px;
}


.SideBarIconStyle :active{
background-color: #AE56FF ;
}

.SideBarIconStyle :focus{
background-color: #AE56FF ;
}
.SideBarIconStyle :visited{
background-color: #AE56FF ;
}
.SideBarContainer {
color: 'white';
background: var(--global--sidebar--color);
Expand All @@ -30,6 +41,20 @@
color: var(--global--sidebar--title--color);
margin-left: 2px;
}
.SideBarTitle :active{

background-color: #AE56FF;

}

.SideBarTitle :focus{

background-color: #AE56FF;
}

.SideBarTitle :visited{
background-color: #AE56FF;
}

/* Reconfiguration of the logo style on sidebar */
.TeamLogo {
Expand Down
22 changes: 11 additions & 11 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import url('components/details/charts_tables.css');
@import url('components/sidebar/sidebar.css');
@import url('theme.css');
@import url('components/productGrid/ProductGridIndex.css');

/* css resets */
/* Box sizing rules */
Expand Down Expand Up @@ -84,7 +85,15 @@ article > * + * {

/* Inherit fonts for inputs and buttons */
input,
button,
button{

font-family: inherit;
font-style: normal;
font-weight: normal;
font-size: var(--global--button-title--FontSize);
letter-spacing: 0.5px;

}
textarea,
select {
font: inherit;
Expand Down Expand Up @@ -135,7 +144,7 @@ body,
font-size: 22px;
letter-spacing: 0.5px;
margin-left: 15px;
color: #000000;
color: #4d217a;
margin-bottom: 10px;
}

Expand Down Expand Up @@ -171,13 +180,4 @@ body,
color: #000000;
}

/* Reconfiguration of the title style on buttons */

.ButtonTitle {
font-family: inherit;
font-style: normal;
font-weight: normal;
font-size: var(--global--button-title--FontSize);
letter-spacing: 0.5px;
color: #000000;
}
2 changes: 1 addition & 1 deletion frontend/src/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
--global--header--icon--color: #f0f0f0;
--global--icon--color: #00b300;
--global--sidebar--color: radial-gradient(circle at top,
#000000 15%,#1b1534,#4d217a,#8A00DE
#000000 30%,#1b1534,#4d217a,#8A00DE
);
--global--headerbar--color: radial-gradient(circle at left,#000000 1%,#1b1534,#1b1534,#1b1534);
/* --global--panel--color: #38206A; */
Expand Down

0 comments on commit 06b25d6

Please sign in to comment.