Giter Site home page Giter Site logo

web-2021's People

Contributors

aaar-salmon avatar dependabot[bot] avatar fusuimoe avatar smpny7 avatar temasaguru avatar wansuko-cmd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

web-2021's Issues

並び替え

部員紹介のところで、年度の若い順に並べる必要がある

フッター作成

/components/Footer.vueに書き込み
CSSは<style>タグ内に(できるだけTailwind CSSのクラスで)

記事一覧ページの作成

axiosで記事一覧を叩いてきて表示する

axios
  .get('https://oucrc.microcms.io/api/v1/article', {
    headers: {
    'X-API-KEY': '6d1b79a2-58de-49aa-bb5c-d2828e0d7d47'
    }
  })
  .then(response => {
    this.json = response.data
  });

ランディングページのお知らせが3件以下にならない

すぐ終わりそうなのでこっちで修正する
一応クエリの可読性を上げる書き方も置いとく
なお書き方はここ
https://document.microcms.io/content-api/get-list-contents

axios
  .get('https://oucrc.microcms.io/api/v1/article?' + Object.entries({
    limit: 9,
    offset: (currentPageNum - 1) * 9,
    fields: 'id,date,createdAt,title,series,image,body', // コンマ区切り 
    orders: '-date,-createdAt',
    filters: 'date[less_than]' + currentTime
  }).map(([key, value]) => key + '=' + value).join('&'), { // ここでクエリ変数とパラメータを=でつなげ、それを更に&でつなぐ
    headers: {
      "X-API-KEY": ...,
    },
  }).then(...)

これは以下と同値

axios
  .get('https://oucrc.microcms.io/api/v1/article?'
    + 'limit=9'
    + 'offset=' + (currentPageNum - 1) * 9
    + 'fields=id,date,createdAt,title,series,image,body'
    + 'orders=-date,-createdAt'
    + 'filters=date[less_than]' + currentTime,
    { headers: { "X-API-KEY": ... } }
).then(...)

記事ページの作成

テストできないと困るので早めでお願いします><

axiosでAPIを叩いて記事データを持ってきてください
ルーティングはわからんので任せますが、URLは
/article/記事名or記事ID
などを想定?

axios
  .get('https://oucrc.microcms.io/api/v1/article', {
    headers: {
    'X-API-KEY': '6d1b79a2-58de-49aa-bb5c-d2828e0d7d47'
    }
  })
  .then(response => {
    this.json = response.data
  });

404ページの作成

404ページに誘導を付けて直帰率を下げよう
routingの仕方は知らん

部の紹介ページ

ランディングの「部室に何があるの?」のボタンの遷移先の作成

これって新しいページを作って表示する感じであってますか?

ランディングページの作成

/pages/index.vueに直で書き込んでよい
再利用しそうなものは/componentsにTekisetsunaNamae.vueファイルを作成し、<TekisetsunaNamae />タグを配置して読み込み

部員の部分

4年度の部分までは普通に表示
あとは折り畳み式にする<-長期的なissue

公開日時の問題

CSRにする場合、クライアントの時間を変えると未来の記事が見れてしまう
静的化したときに記事ページが生成されないなら問題なし(問題なければクローズしておいてください)

部員一覧、表示

年度入部で表示
アイコンは各自提出
4回生以降の人たちはslackから探して手動で保存
ないやつはデフォルトアイコンでGO

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.