From 96c9e17dc6fea0f8d4fed97dac9b3373d5308419 Mon Sep 17 00:00:00 2001 From: wi1d5ky Date: Mon, 7 Dec 2015 17:24:59 +0800 Subject: [PATCH] Add communities link & intro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #1 連結到其他社群的連結與介紹於此 commit 完成。 --- _data/linux.json | 27 +++++++++++++++++++++- index.html | 32 ++++++++++++++++++++++---- style.scss | 60 +++++++++++++++++++++++++++++++++++++----------- 3 files changed, 101 insertions(+), 18 deletions(-) diff --git a/_data/linux.json b/_data/linux.json index c271023..5b21cf6 100644 --- a/_data/linux.json +++ b/_data/linux.json @@ -13,7 +13,7 @@ "text-color": "#fff" }, { - "name": "OpenSUSE", + "name": "openSUSE", "url": "http://opensuse.linux.org.tw", "bgcolor": "#73BA25", "text-color": "#fff" @@ -24,5 +24,30 @@ "bgcolor": "#1793D1", "text-color": "#fff" } + ], + "communities": [ + { + "name": "TOSSUG", + "description": "台北開放原始碼軟體使用者社群(簡稱台北土虱社群)是一個愛好自由軟體與開放原始碼同好的聚會。", + "url": "http://www.tossug.org/", + "bgcolor": "#121212", + "text-color": "#fff" + }, + { + "name": "Hacking Thursday", + "description": "Hacking Thursday 是由幾位居住於台北地區的自由軟體/開放原碼開發者所發起,每週四晚上會於特定咖啡店聚會。", + "url": "http://www.hackingthursday.org/", + "bgcolor": "#980618", + "text-color": "#fff" + } + ], + "others": [ + { + "name": "PTT Linux 板", + "description": "批踢踢 (Ptt) 是以學術性質為目的,以電子佈告欄系統為媒介的服務,你或許可以在這裡得到需要的資訊。", + "url": "https://www.ptt.cc/bbs/Linux/", + "bgcolor": "#335EFA", + "text-color": "#fff" + } ] } diff --git a/index.html b/index.html index c709779..52eb1a5 100644 --- a/index.html +++ b/index.html @@ -20,19 +20,43 @@

學習資源

-

社群列表

+

社群參與

-
diff --git a/style.scss b/style.scss index 713f4a9..af6d62c 100644 --- a/style.scss +++ b/style.scss @@ -115,9 +115,10 @@ main { padding: 3rem 0; text-align: center; - h2 { + h2, h3 { display: inline-block; font-size: 1.75rem; + color: $main-color; } &:nth-child(odd) @@ -133,10 +134,6 @@ main { { background-color: #fff; } - - h2 { - color: $main-color; - } } } @@ -191,22 +188,59 @@ main { } #community .content { + text-align: center; + ul { - padding: 0; + padding: 0 0 2rem; + margin: 0 auto; list-style-type: none; - li { + &.distro li { display: inline-block; - background-color: #fff; - margin: 0 .5rem; - min-width: 20%; - border: 1px solid #ccc; - border-radius: 3px; + margin: .5rem; + min-width: 12.5%; a { display: block; - padding: 2rem 3rem; + padding: 1rem; text-decoration: none; + + div strong { + font-size: 1.5rem; + } + } + } + + &.community, &.other { + width: 50%; + text-align: left; + + li { + border-bottom: 1px solid #ccc; + margin: 0 1rem; + + &:first-child { + border-top: 1px solid #ccc; + } + + + a { + display: block; + padding: 1rem; + font-size: 1.25rem; + line-height: 1.5rem; + text-decoration: none; + + .title { + color: darken($main-color, 5%); + font-weight: 600; + } + + .description { + color: #454545; + + } + } } } }