-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from catenax-ng/relaease/v2.2.0-battery-compo…
…sition-graph [ 2° ] - Relaease/v2.2.0 battery composition graph
- Loading branch information
Showing
8 changed files
with
315 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/** | ||
* Tractus-X - Digital Product Passport Application | ||
* | ||
* Copyright (c) 2022, 2024 BASF SE, BMW AG, Henkel AG & Co. KGaA | ||
* Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the | ||
* License for the specific language govern in permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
.battery-graph { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 380px; | ||
padding: 7px; | ||
display: flex; | ||
background-color: #f5f5f5; | ||
border-radius: 8px; | ||
// margin-left: 6px; | ||
// margin-bottom: 12px; | ||
margin: 6px 0 12px 6px; | ||
@include background-image( | ||
$background-image-url, | ||
$background-color, | ||
$background-size, | ||
$background-position, | ||
$background-repeat | ||
); | ||
|
||
.graph-icon { | ||
width: 100%; | ||
} | ||
.composition-graph { | ||
width: 100%; | ||
display: flex; | ||
|
||
.composition-section { | ||
position: relative; | ||
width: 50%; | ||
display: flex; | ||
flex-direction: column; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.composition-bar-container { | ||
display: flex; | ||
flex-direction: column; | ||
margin-top: 10px; | ||
width: 30px; | ||
|
||
.component-label-container { | ||
position: absolute; | ||
font-weight: 600; | ||
background: #f5f5f5; | ||
padding: 0 5px; | ||
white-space: nowrap; | ||
} | ||
.component-label-line { | ||
position: absolute; | ||
padding: 0 20px; | ||
height: 1px; | ||
background-color: black; | ||
width: 70%; | ||
} | ||
} | ||
.composition-title { | ||
font-size: 11px; | ||
font-weight: 500; | ||
} | ||
.composition-bar { | ||
display: flex; | ||
align-items: center; | ||
width: 100%; | ||
font-size: 14px; | ||
height: 100%; | ||
} | ||
} | ||
.type { | ||
font-size: 12px; | ||
font-weight: 600; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"title": "NCA", | ||
"composition": [ | ||
{ | ||
"title": "Composition of Andode", | ||
"composition": [ | ||
{ | ||
"label": "SiO2-C", | ||
"value": 50, | ||
"unit": "%" | ||
}, | ||
{ | ||
"label": "Styren butadien", | ||
"value": 50, | ||
"unit": "%" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Composition of Cathode", | ||
"composition": [ | ||
{ | ||
"label": "Lithium", | ||
"value": 20, | ||
"unit": "%" | ||
}, | ||
{ | ||
"label": "Nickel", | ||
"value": 20, | ||
"unit": "%" | ||
}, | ||
{ | ||
"label": "Cobalt", | ||
"value": 20, | ||
"unit": "%" | ||
}, | ||
{ | ||
"label": "Aluminium", | ||
"value": 30, | ||
"unit": "%" | ||
}, | ||
{ | ||
"label": "Carbon black", | ||
"value": 10, | ||
"unit": "%" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.