Git Product home page Git Product logo

fire-elect's People

Contributors

dependabot[bot] avatar ichiaohsu avatar imyentsen avatar kaichehung avatar missmoss avatar ychi avatar yipei1028 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fire-elect's Issues

Read Data From Firebase -- RESTful flavour

Hard code some data in firebase, and construct a component that reads from it.

To start simple, let's not worry about redux or useReducer etc. Just a component reading one data row from firebase in a useEffect().

Let's try if non-websocket is possible on firebase.

CICD

Linting before commit?
A CI job to fill-in firebase credentials and deploy?

整個網站 font 的基本顏色

現在整個網站的文字 by default 都是 #000000 ,需要找到 material ui 控制文字預設顏色的設定,需更改如下:

  1. 目前看起來深色字 #273A3C
    2.深色元件中的白色文字都是 #F2EDE9 ( 例如這邊的拉bar內數字:
    Screen Shot 2020-01-06 at 22 23 02

Responsive Top Bar

Mobile or small screen: burger icon, tabs menu expands on click.
Desktop: normal tabs

App Bar 的 bug

目前觀察到有兩個 bug,不確定要怎麼解

  1. 戰情室的字比較小

Screen Shot 2020-01-05 at 11 41 59 PM

  1. 收合的時候網站名稱被隱藏

Screen Shot 2020-01-05 at 11 42 06 PM

表單填寫

  • 隱私條款部分請把連結設在「隱私條款」4個字上而非checkbox上
  • 隱私條款4個字default- 請underline,大家才知道可以外連
  • 表單填寫的立委名請存入資料庫

認同請分享的 CSS 問題

  • section title位置跟上方icon的距離能否縮小,且一致
  • 身是在何方的圖表大小請調整,現在跑掉了
  • svg圖檔更新(拿掉陰影) (edited)

Design Firestore Schema

Design schema to store realtime statistics. Roughly:
For each constituency: vote counts for each candidate, number of polling stations, number of polling station that completed counting.

What is collection and what is document? How to update data?

首頁:庶民區塊改成認同請分享

上線時間拿掉,連結改認同請分享頁
文字更新:
Title->認同請分享
description->藍綠版圖大探索!來看看過去十年,你鄰居投給誰?
button->快長知識

image

Read Data from Firebase -- Websocket Flavour

Hard code some data in firebase, and construct a component that reads from it.

To start simple, let's not worry about redux or useReducer etc. Just a component reading one data row from firebase in a useEffect().

Let's try web socket in this task (=> when data in firebase changes, we want web page to change automatically)

Study Analytics in Firebase

Google analytics is integrated with firebase:
https://firebase.google.com/docs/analytics

This might be a good way to log and analyse how people use the site and what they fill after playing predict game (it automatically distinguish user session for us)

Some questions:

  • What data will look like if a user played the game multiple times?
  • Can we export data from GA? Do we need to export?

給問嗎 component

Screenshot 2020-01-04 at 18 01 59

Screenshot 2020-01-04 at 18 02 12

每個候選人最多三個選項,不用選滿 選項清單待 YK 提供,可以先抽成 config

立院席次預測 component

Screenshot 2020-01-03 at 22 04 39

數字和圖連動,理想上先選的政黨先畫,
可能要 useReducer 來避免數字加總超過席次上限
最後state需要 lift 到上層 component 以便跟送出表單一起連動
可能可以用 highcharts

大膽預測互動

  • 立委席次填選歸零後,不要顯示0,改為顯示上次立委席次
  • 總統預測slider的數字會壓到候選人名字

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.