Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erase warning messages #19

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/App.tsx
@@ -1,8 +1,7 @@
/** @jsx jsx */
import { jsx, css } from '@emotion/core';
import React, { Component } from 'react';
import { jsx } from '@emotion/core';
import { Component } from 'react';
import { HashRouter, Route } from 'react-router-dom';
import UnderDevelopment from './components/UnderDevelopment';
import MainPage from './pages/MainPage';
import SummaryPage from './pages/SummaryPage';

Expand Down
7 changes: 3 additions & 4 deletions src/components/TopicVoter.tsx
@@ -1,11 +1,10 @@
/** @jsx jsx */
import { jsx, css } from '@emotion/core';
import React from 'react';
import { jsx } from '@emotion/core';
import { mediaMaxWidth } from '../util';

export default (props: { name: string, color: string}) => {
export default (props: { name: string, color: string }) => {
return (
<div css={{ width: '120px', textAlign: 'center'}}>
<div css={{ width: '120px', textAlign: 'center' }}>
<div css={{
[mediaMaxWidth(768)]: { fontSize: '0.8em' }
}}>
Expand Down
5 changes: 2 additions & 3 deletions src/components/UnderDevelopment.tsx
@@ -1,10 +1,9 @@
/** @jsx jsx */
import { jsx, css } from '@emotion/core';
import React from 'react';
import { jsx } from '@emotion/core';

export default () => {
return (
<div css={{ fontSize: '3em', margin: '30px 0'}}>
<div css={{ fontSize: '3em', margin: '30px 0' }}>
กำลังทำจ้า ...
</div>
);
Expand Down
11 changes: 5 additions & 6 deletions src/pages/MainPage.tsx
@@ -1,23 +1,22 @@
/** @jsx jsx */
import { jsx, css } from '@emotion/core';
import React from 'react';
import { jsx } from '@emotion/core';
import TopicVoter from '../components/TopicVoter';
import { Link } from "react-router-dom";

export default () => {
return (<div css={{ margin: '15vh 100px 100px'}}>
<h1 css={{ margin: '50px'}}>
return (<div css={{ margin: '15vh 100px 100px' }}>
<h1 css={{ margin: '50px' }}>
<span css={{ fontSize: '2.5em' }}>
อยากให้
</span>
<span css={{ margin: '0 30px', fontSize: '4.5em'}}>
<span css={{ margin: '0 30px', fontSize: '4.5em' }}>
ภาษี
</span>
<span css={{ fontSize: '2.5em' }}>
ไปไหน?
</span>
</h1>
<div css={{display: 'flex', justifyContent: 'space-between'}}>
<div css={{ display: 'flex', justifyContent: 'space-between' }}>
{topic.map(item => {
return (<TopicVoter name={item.name} color={item.color} />);
})}
Expand Down
5 changes: 2 additions & 3 deletions src/pages/SummaryPage.tsx
@@ -1,12 +1,11 @@
/** @jsx jsx */
import { jsx, css } from '@emotion/core';
import React from 'react';
import { jsx } from '@emotion/core';
import UnderDevelopment from '../components/UnderDevelopment';

export default () => {
return (<div>
<UnderDevelopment />
<div css={{ display: 'flex', justifyContent: 'space-between', margin: '100px 100px'}}>
<div css={{ display: 'flex', justifyContent: 'space-between', margin: '100px 100px' }}>
<div>ภาพรวม</div>
<div>ภูมิภาค</div>
<div>จังหวัด</div>
Expand Down