Code Monkey home page Code Monkey logo

guide's Introduction

政府網站設計原則

目標

本文件所規劃之系統元件係以具備相容性、符合網頁標準之目標進行設計規劃,並最大化地使用網頁標準中所提供的元件加以優化,可供各機關及資通系統承包商直接採用及參考,減少對第三方元件及複雜前端開發框架的依賴,增加系統韌性、相容性及親和力。系統元件將會使用網頁標準元件作為根本基礎,因此即使各機關、廠商仍須使用前端開發框架,也不會有不相容的問題。

CSS 元件使用方式

可直接下載,並使用下方程式碼匯入:

<link rel="stylesheet" href="../main.css">

請避免一切對原始碼的改動。使用設計系統的目的就在於一致性。若需要特殊的顯示方式,請另行撰寫 CSS,以免造成日後版本升級困難。

Warning

本檔案暫時包含 Tachyons,作為 Atomic CSS 的第三方程式。

多國語系支援

請依照多國語系支援另外包含所需要的字體 CSS 檔案。

JavaScript 元件使用方式

下載 character-count.js 檔案並選擇性使用下方程式碼匯入:

<script src="../character-count.js" defer>

下載 official-document-element.js 檔案並選擇性使用下方程式碼匯入:

<script src="../official-document-element.js" type="module">

下載 interactive-table-element.js 檔案並選擇性使用下方程式碼匯入:

<script src="../interactive-table-element.js" type="module">

下載 skip-to-element.js 檔案並選擇性使用下方程式碼匯入:

<script src="../skip-to-element.js" type="module">

開發

jekyll server -w

Run lighthouse locally:

npx @lhci/cli assert --url=http://localhost:4000/

guide's People

Contributors

muan avatar nonumpa avatar jedilin avatar focaaby avatar ik-ngoo avatar

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.