Skip to content

Commit

Permalink
Add Text Modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshg6 committed May 7, 2021
1 parent e081d20 commit a43a593
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
12 changes: 11 additions & 1 deletion components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The Footer file that will remain constant.
import React, { Component } from 'react';
import { Menu, Header } from 'semantic-ui-react';

// import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
// import { faCopyright } from '@fortawesome/free-solid-svg-icons';

class Footer extends Component {
render() {
return (
Expand All @@ -30,7 +33,14 @@ class Footer extends Component {
marginLeft: '80px'
}}
>
Copyright Reserved by the Blockchain Carbon Cost Visualizer. This software and code was released under the Apache 2 license.
{/* <FontAwesomeIcon
style={{
height: '14px'
}}
icon={faCopyright}
/>
{' '} */}
Copyright Reserved by O.N.C.E project team. This software and code is released under the GPL v3 license.
</Header>
</Menu.Item>
</Menu>
Expand Down
28 changes: 19 additions & 9 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ const energyOptions = [
]

const nftOptions = [
{
key: 'rare-nft',
text: 'Rare NFT',
value: 'rare-nft'
},

{
key: 'mypt-nft',
text: 'Mypt NFT',
value: 'mypt-nft'
},
{
key: 'rare-nft',
text: 'Rare NFT',
value: 'rare-nft'
},
// {
// key: 'gyro-nft',
// text: 'Gyro NFT',
Expand All @@ -75,7 +76,8 @@ class ComponentIndex extends Component {

state = {
txType: 'nft-deploy',
nftType: 'rare-nft',
nftType: 'mypt-nft',
nftTypeName: 'Mypt NFT',

ethNFT: [],

Expand Down Expand Up @@ -108,7 +110,7 @@ class ComponentIndex extends Component {
fetch("https://once-hackathon-api.herokuapp.com/get-hash", requestOptions)
.then(response => response.json())
.then(result => {
// console.log(result)
console.log(result)
this.setState({ ethNFT: result.ethNFT })
})
.catch(error => console.log('error', error));
Expand Down Expand Up @@ -379,6 +381,9 @@ class ComponentIndex extends Component {
onChange={(e, { value }) => {
// console.log('NFT Type State Changed to', value)
this.setState({ nftType: value })
// switch (value) {
// case 'rare-'
// }
this.fetchCarbonCost(this.state.energyType, value)
this.changeNFTHash(value)
}}
Expand Down Expand Up @@ -522,6 +527,11 @@ class ComponentIndex extends Component {
color: '#929FB3'
}

const labelStyle = {
backgroundColor: '#F3B338',
marginTop: '10px'
}

return (
<Card.Group
style={{ marginLeft: '100px', marginTop: '30px' }}
Expand Down Expand Up @@ -551,7 +561,7 @@ class ComponentIndex extends Component {
Driven by a Passenger Car
</Card.Content>
<Label
style={{ backgroundColor: '#F3B338' }}
style={labelStyle}
>
{this.state.txType}
</Label>
Expand Down Expand Up @@ -583,7 +593,7 @@ class ComponentIndex extends Component {
Equivalent
</Card.Content>
<Label
style={{ backgroundColor: '#F3B338' }}
style={labelStyle}
>
{this.state.txType}
</Label>
Expand Down

0 comments on commit a43a593

Please sign in to comment.