Skip to content

Commit

Permalink
h
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantChandla committed Apr 20, 2020
1 parent 4101981 commit 4e65316
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
1 change: 1 addition & 0 deletions Components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import contract from '../contractins'
import web3 from '../web3'
import firebase from 'firebase';
import Head from 'next/head'

var items = [];
var x = 0;
Expand Down
2 changes: 2 additions & 0 deletions Components/shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import web3 from '../web3'
import firebase from 'firebase';

var items = [];


var firebaseConfig = {
apiKey: "AIzaSyD6XXxlARtwyxuIxV8hXfDGiIjQ3Ii6QIo",
authDomain: "corona-web-273113.firebaseapp.com",
Expand Down
45 changes: 39 additions & 6 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ class DesktopContainer extends Component {
}





// onSubmit =async (event)=>{

// event.preventDefault();
Expand Down Expand Up @@ -178,8 +181,8 @@ class DesktopContainer extends Component {
>
<Container>

<a href="http://covid19hack.pythonanywhere.com/">
<Menu.Item position='left' as='a' >CORONA HELP</Menu.Item></a>
<a href="http://covid19hack.pythonanywhere.com/">
<Menu.Item position='left' as='a' >CORONA HELP</Menu.Item></a>
<Menu.Item position='right'>
<Menu.Item as='a' >
Home
Expand All @@ -205,9 +208,38 @@ DesktopContainer.propTypes = {
children: PropTypes.node,
}

// componentDidMount() {
// window.addEventListener('load', f, false);


// f=()=>{

// var viewMode = document.getCookie("view-mode");
// if (viewMode == "desktop") {
// viewport.setAttribute('content', 'width=1024');
// } else if (viewMode == "mobile") {
// viewport.setAttribute('content', 'width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no');
// }
// }
// }

class MobileContainer extends Component {
state = {}















handleSidebarHide = () => this.setState({ sidebarOpened: false })

handleToggle = () => this.setState({ sidebarOpened: true })
Expand All @@ -232,8 +264,8 @@ class MobileContainer extends Component {
>


<a href="http://covid19hack.pythonanywhere.com/">
<Menu.Item position='left' as='a' >CORONA HELP</Menu.Item></a>
<a href="http://covid19hack.pythonanywhere.com/">
<Menu.Item position='left' as='a' >CORONA HELP</Menu.Item></a>
<Menu.Item as='a' >
Home
</Menu.Item>
Expand Down Expand Up @@ -292,6 +324,7 @@ const HomepageLayout = () => (
integrity="sha256-r/AaFHrszJtwpe+tHyNi/XCfMxYpbsRg2Uqn0x3s2zc="
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-migrate-1.4.1.min.js"></script>
<meta name="viewport" content="width=1024"/>
</Head>
<Segment style={{ padding: '8em 0em' }} vertical>
<Grid container stackable verticalAlign='middle'>
Expand Down Expand Up @@ -396,8 +429,8 @@ const HomepageLayout = () => (
<Grid.Column width={3}>
<Header inverted as='h4' content='Services' />
<List link inverted>
<a href="http://covid19hack.pythonanywhere.com/map/"> <List.Item as='a'>Locate Cases</List.Item></a>
<a href="http://covid19hack.pythonanywhere.com/shop/"> <List.Item as='a'>Shop</List.Item></a>
<a href="http://covid19hack.pythonanywhere.com/map/"> <List.Item as='a'>Locate Cases</List.Item></a>
<a href="http://covid19hack.pythonanywhere.com/shop/"> <List.Item as='a'>Shop</List.Item></a>
</List>
</Grid.Column>
{/* <Grid.Column width={3}>
Expand Down

0 comments on commit 4e65316

Please sign in to comment.