国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Web Front-end HTML Tutorial 北港媽祖也懂 Material Design!手機(jī)就能跟著媽祖遶境 Live 齊步走_(dá)html/css_WEB-ITnose

北港媽祖也懂 Material Design!手機(jī)就能跟著媽祖遶境 Live 齊步走_(dá)html/css_WEB-ITnose

Jun 21, 2016 am 08:51 AM

《TO 導(dǎo)讀》:一個工程師的成就感未必來自於工作,而是能將專業(yè)所學(xué)投入生活相互呼應(yīng),有所貢獻(xiàn)。媽祖繞境在北港人心中不只是民俗活動,而是從小看到大的成長記憶。一位來自北港的工程師便運(yùn)用所學(xué),為媽祖繞境架設(shè)網(wǎng)站,只要透過手機(jī)就能參與媽祖遶境盛事。以下是為作者第一人稱描述。

很久沒來版上 PO 文章了 >"

最近忙著幫忙我們家鄉(xiāng)的活動製作網(wǎng)站,基本上我是屬於義務(wù)性幫忙、非官方、沒盈利的自主服務(wù) (XD),每一年的製作這個網(wǎng)站我算是不斷自我突破吧 (疑?),從後端、系統(tǒng)、設(shè)計、切版、上稿,我嘗試一個人完成!

話題扯遠(yuǎn)了,回到正題,這個網(wǎng)站我要分享的是前、後端以及系統(tǒng)部分,

如果內(nèi)容不 OK 可以跟我講一下喔!

《 笨港迎媽祖 》網(wǎng)站

從設(shè)計開始,我參考了 Material Design 的角度去設(shè)計版面以及流程,不過當(dāng)然的,手機(jī)與網(wǎng)頁的表現(xiàn)還是會有些許的差異,但是整體我仍然盡量參考規(guī)範(fàn)XD

PHP 這次我就使用了很潮的 php7,跑起來貌似有變快,因為我的爬蟲變快了,所以整體來說算是很滿意,只是有些 function 需要稍做調(diào)整,不過大致上都很健康!

JavaScript 這次主力都在 Google Maps API 的運(yùn)用。因為三年前我將此地圖資訊與廟會遶境路線做了結(jié)合,開啟了我對 Google Maps 運(yùn)用的熱愛,所以今年也是把他當(dāng)主力,活動當(dāng)天沒意外的話,我會結(jié)合 GPS 線上定位!

CSS 的部分,我則是使用 compass scss 去實作,javascript 的話則是使用 jQuery 以及一些其他的 lib 實作!因為前後端都自己包辦,所以 Framework(CodeIgniter)我做了一些修改,讓這些靜態(tài) css、javascript code 上 production 時候自動的 merge 以及 minify。

在靜態(tài)檔案的處理,我利用 S3 強(qiáng)大的空間功能,將網(wǎng)站的圖檔資源、js、css 都上到 S3 以減少 EC2 的 Loading,所以說,S3 上的 js、css 都是已經(jīng) minify 的了,而圖片檔若是遇到大檔案,則利用 TinyPNG 去對圖片做壓縮,然後再上傳到 S3,

對了,以上當(dāng)然是用程式跑的:)

再來則是 HTML,基本上網(wǎng)站前臺都是使用大量的文章以及簡介,所以可以做大量的 cache,然後這部分採用 file cache 而已,雖然我有原本打算使用 Redis 去實作,但是我把記憶體留給 MySQL 了..(我沒開 RDS,MySQL 是上在與 Server 同一臺的 EC2)

因為有作 output 的 cache,所以我也順便將 HTML minify 囉,因為做 HTML 的 output cache,所以瀏覽人數(shù)的紀(jì)錄就不能跑 php 做 +1,所以這部分我使用 Ajax 去實作回傳人氣的紀(jì)錄!

最後 SEO,以及相關(guān)搜尋的設(shè)定,robots.txt、Sitemap 不用講,一定會做,這次我還加入了一點(diǎn)點(diǎn)的 schema、Google AMP、JSON-LD 的結(jié)構(gòu),這些都是去餵 Search Engine 想吃的菜!

其實過程中我學(xué)到很多經(jīng)驗,也嘗試很多架構(gòu),這次我使用 AWS 的服務(wù),主要開了一臺東京 t2.micro 的 EC2,以及使用 S3 的服務(wù)而已,網(wǎng)頁流量,據(jù)我看 GA 的即時人數(shù),最高曾經(jīng)落在 1900 多人,可能有些頁面是使用 S3 吧,所以都撐得?。?/p>

這是目前我個人做過最高流量的網(wǎng)站,相對的也是個人里程碑!

以上是我的經(jīng)驗、心得分享, 回到做網(wǎng)站初衷,我只是個熱愛故鄉(xiāng)的鄉(xiāng)土文化,想為家鄉(xiāng)盡一分力,利用自己的專長技術(shù),支援這個從小的信仰,如此簡單。

文章有點(diǎn)太長,如果看到這裡的朋友,非常感謝您將它看完,如果大家有想要來北港玩的,倒是可以看看網(wǎng)站內(nèi)容喔!

若是文章不適合再版上討論的話,可以跟我說一下 >"

有問題或疑問的話,非常歡迎各位討論喔:)

(本文發(fā)布於 PTT_Soft Job 版,獲作者 吳政賢 授權(quán)刊登轉(zhuǎn)載, 相關(guān)作品 , GitHub 資源 ,圖片來源:,未經(jīng)授權(quán)請勿轉(zhuǎn)載。)

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How do I stay up-to-date with the latest HTML standards and best practices? How do I stay up-to-date with the latest HTML standards and best practices? Jun 20, 2025 am 08:33 AM

The key to keep up with HTML standards and best practices is to do it intentionally rather than follow it blindly. First, follow the summary or update logs of official sources such as WHATWG and W3C, understand new tags (such as) and attributes, and use them as references to solve difficult problems; second, subscribe to trusted web development newsletters and blogs, spend 10-15 minutes a week to browse updates, focus on actual use cases rather than just collecting articles; second, use developer tools and linters such as HTMLHint to optimize the code structure through instant feedback; finally, interact with the developer community, share experiences and learn other people's practical skills, so as to continuously improve HTML skills.

How do I use the  element to represent the main content of a document? How do I use the element to represent the main content of a document? Jun 19, 2025 pm 11:09 PM

The reason for using tags is to improve the semantic structure and accessibility of web pages, make it easier for screen readers and search engines to understand page content, and allow users to quickly jump to core content. Here are the key points: 1. Each page should contain only one element; 2. It should not include content that is repeated across pages (such as sidebars or footers); 3. It can be used in conjunction with ARIA properties to enhance accessibility. Usually located after and before, it is used to wrap unique page content, such as articles, forms or product details, and should be avoided in, or in; to improve accessibility, aria-labeledby or aria-label can be used to clearly identify parts.

How do I create checkboxes in HTML using the  element? How do I create checkboxes in HTML using the element? Jun 19, 2025 pm 11:41 PM

To create an HTML checkbox, use the type attribute to set the element of the checkbox. 1. The basic structure includes id, name and label tags to ensure that clicking text can switch options; 2. Multiple related check boxes should use the same name but different values, and wrap them with fieldset to improve accessibility; 3. Hide native controls when customizing styles and use CSS to design alternative elements while maintaining the complete functions; 4. Ensure availability, pair labels, support keyboard navigation, and avoid relying on only visual prompts. The above steps can help developers correctly implement checkbox components that have both functional and aesthetics.

How do I create a basic HTML document? How do I create a basic HTML document? Jun 19, 2025 pm 11:01 PM

To create a basic HTML document, you first need to understand its basic structure and write code in a standard format. 1. Use the declaration document type at the beginning; 2. Use the tag to wrap the entire content; 3. Include and two main parts in it, which are used to store metadata such as titles, style sheet links, etc., and include user-visible content such as titles, paragraphs, pictures and links; 4. Save the file in .html format and open the viewing effect in the browser; 5. Then you can gradually add more elements to enrich the page content. Follow these steps to quickly build a basic web page.

How do I minimize the size of HTML files? How do I minimize the size of HTML files? Jun 24, 2025 am 12:53 AM

To reduce the size of HTML files, you need to clean up redundant code, compress content, and optimize structure. 1. Delete unused tags, comments and extra blanks to reduce volume; 2. Move inline CSS and JavaScript to external files and merge multiple scripts or style blocks; 3. Simplify label syntax without affecting parsing, such as omitting optional closed tags or using short attributes; 4. After cleaning, enable server-side compression technologies such as Gzip or Brotli to further reduce the transmission volume. These steps can significantly improve page loading performance without sacrificing functionality.

How do I use the  element to represent the footer of a document or section? How do I use the element to represent the footer of a document or section? Jun 25, 2025 am 12:57 AM

It is a semantic tag used in HTML5 to define the bottom of the page or content block, usually including copyright information, contact information or navigation links; it can be placed at the bottom of the page or nested in, etc. tags as the end of the block; when using it, you should pay attention to avoid repeated abuse and irrelevant content.

How has HTML evolved over time, and what are the key milestones in its history? How has HTML evolved over time, and what are the key milestones in its history? Jun 24, 2025 am 12:54 AM

HTMLhasevolvedsignificantlysinceitscreationtomeetthegrowingdemandsofwebdevelopersandusers.Initiallyasimplemarkuplanguageforsharingdocuments,ithasundergonemajorupdates,includingHTML2.0,whichintroducedforms;HTML3.x,whichaddedvisualenhancementsandlayout

How do I embed video in HTML using the  element? How do I embed video in HTML using the element? Jun 20, 2025 am 10:09 AM

To embed videos in HTML, use tags and specify the video source and attributes. 1. Use src attributes or elements to define the video path and format; 2. Add basic attributes such as controls, width, height; 3. To be compatible with different browsers, you can list MP4, WebM, Ogg and other formats; 4. Use controls, autoplay, muted, loop, preload and other attributes to control the playback behavior; 5. Use CSS to realize responsive layout to ensure that it is adapted to different screens. Correct combination of structure and attributes can ensure good display and functional support of the video.

See all articles