[Add] import font style, and update tag structure in home

This commit is contained in:
barrystone 2021-03-28 12:55:40 +08:00
parent 05cc585797
commit 63c6980a58
9 changed files with 137 additions and 16 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,24 @@
// import web font
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@500;700;900&display=swap");
@font-face {
font-family: "Noto Serif CJK TC -Bold";
src: url("~@/assets/font/NotoSerifCJKtc-Bold.otf");
}
@font-face {
font-family: "Noto Serif CJK TC -Black";
src: url("~@/assets/font/NotoSerifCJKtc-Black.otf");
}
@font-face {
font-family: "Noto Serif CJK TC -SemiBold";
src: url("~@/assets/font/NotoSerifCJKtc-SemiBold.otf");
}
@font-face {
font-family: "Letter Gothic Std Bold";
src: url("~@/assets/font/Letter Gothic Std Bold.ttf");
}
$fontFamily: Noto Sans TC, monospace;

View File

@ -1,4 +1,6 @@
@import "../color.scss";
@import "./color.scss";
$font-header-link: "Noto Serif CJK TC -Bold";
$font-header-apply: "Noto Serif CJK TC -Black";
.header {
position: relative;
@ -35,6 +37,7 @@
}
&-links {
font-family: $font-header-link;
float: right;
width: 600px;
margin-right: 92px;
@ -75,6 +78,7 @@
}
&-apply {
font-family: $font-header-apply;
width: 92px;
height: 38px;
border-radius: 38px;

View File

@ -1,33 +1,40 @@
$font-home: "Noto Serif CJK TC -SemiBold";
$font-home-h1: "Noto Serif CJK TC -Bold";
$font-home-h2: "Letter Gothic Std Bold";
.section {
&-title {
margin-top: 150px;
height: 500px;
// background-color: chartreuse;
}
&-content {
height: 1000px;
// background-color: cornsilk;
}
}
.home {
// font-family: "Courier New", Courier, monospace;
font-family: $font-home;
position: relative;
text-align: center;
&__title {
width: 500px;
width: 600px;
// background-color: cornflowerblue;
margin: 0 auto;
padding-top: 10px;
position: relative;
&-box1 {
position: relative;
margin-top: 100px;
margin: 0 auto;
margin-top: 50px;
margin-bottom: 20px;
// background-color: chocolate;
height: 80px;
width: 500px;
span {
font-size: 16pt;
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%) translateX(-50%);
width: 600px;
p {
font-size: 18pt;
}
}
@ -37,9 +44,37 @@
&-box2 {
// background-color: chocolate;
height: 80px;
width: 500px;
width: 600px;
margin: 0 auto;
margin-top: 80px;
p {
font-size: 16pt;
font-size: 18pt;
}
}
}
&__info {
width: 60%;
// background-color: darkseagreen;
margin: 0 auto;
&-container {
width: 95%;
margin-left: 5%;
}
&-title {
// background-color: darkgray;
height: 100px;
h1 {
font-family: $font-home-h1;
font-size: 26pt;
}
h2 {
font-family: $font-home-h2;
font-size: 28pt;
}
}
}

View File

@ -117,5 +117,5 @@ export default class Header extends Vue {
</script>
<style lang="scss">
@import "@/assets/scss/home/header";
@import "@/assets/scss/header";
</style>

View File

@ -6,7 +6,7 @@
<section class="section-title">
<div class="home__title">
<div class="home__title-box1">
<span>SITCON 學生計算機年會 2021</span>
<p>SITCON 學生計算機年會 2021</p>
</div>
<div class="home__title-topic">
<img
@ -22,6 +22,68 @@
</div>
</div>
</section>
<section class="section-content">
<section class="home__info">
<div class="home__info-container">
<div class="home__info-title">
<h1>算盤的後裔</h1>
<h2>Descendants of the abacus</h2>
</div>
<div class="home__info-paragraph">
<p>
千年以前的人類發明了各式各樣輔助算術的工具在世界各地的文明中皆能找到廣義上的算盤隨著時代演進那些原始的工具逐步進化成為現代的計算機與電腦更進一步地發展為隨處可見的智慧型裝置
俗話說站在巨人的肩膀上前人的智慧成果成為墊腳石讓站在其之上的後人可以看得更高更遠科技層層疊疊承先啟後文明才能跨越時空持續成長
人們不再需要重新發明輪子只要善用前人的成果就能造出更有效率的工具並擁有更好的生活生於現代的我們每天寫著電腦程式把玩著智慧型手機徜徉在網際網路上沒有邊際的資訊大海奠基於科技的現有成果才能持續貢獻於科技的未來我們都是算盤的後裔
</p>
</div>
</div>
</section>
<section class="home__info">
<div class="home__info-container">
<div class="home__info-title">
<h1 class="home__info-title--1">算盤的後裔</h1>
<h2 class="home__info-title--2">Descendants of the abacus</h2>
</div>
<div class="home__info-paragraph">
<p>
千年以前的人類發明了各式各樣輔助算術的工具在世界各地的文明中皆能找到廣義上的算盤隨著時代演進那些原始的工具逐步進化成為現代的計算機與電腦更進一步地發展為隨處可見的智慧型裝置
俗話說站在巨人的肩膀上前人的智慧成果成為墊腳石讓站在其之上的後人可以看得更高更遠科技層層疊疊承先啟後文明才能跨越時空持續成長
人們不再需要重新發明輪子只要善用前人的成果就能造出更有效率的工具並擁有更好的生活生於現代的我們每天寫著電腦程式把玩著智慧型手機徜徉在網際網路上沒有邊際的資訊大海奠基於科技的現有成果才能持續貢獻於科技的未來我們都是算盤的後裔
</p>
</div>
</div>
</section>
<section class="home__info">
<div class="home__info-container">
<div class="home__info-title">
<h1 class="home__info-title--1">算盤的後裔</h1>
<h2 class="home__info-title--2">Descendants of the abacus</h2>
</div>
<div class="home__info-paragraph">
<p>
千年以前的人類發明了各式各樣輔助算術的工具在世界各地的文明中皆能找到廣義上的算盤隨著時代演進那些原始的工具逐步進化成為現代的計算機與電腦更進一步地發展為隨處可見的智慧型裝置
俗話說站在巨人的肩膀上前人的智慧成果成為墊腳石讓站在其之上的後人可以看得更高更遠科技層層疊疊承先啟後文明才能跨越時空持續成長
人們不再需要重新發明輪子只要善用前人的成果就能造出更有效率的工具並擁有更好的生活生於現代的我們每天寫著電腦程式把玩著智慧型手機徜徉在網際網路上沒有邊際的資訊大海奠基於科技的現有成果才能持續貢獻於科技的未來我們都是算盤的後裔
</p>
</div>
</div>
</section>
<section class="home__info">
<div class="home__info-container">
<div class="home__info-title">
<h1 class="home__info-title--1">算盤的後裔</h1>
<h2 class="home__info-title--2">Descendants of the abacus</h2>
</div>
<div class="home__info-paragraph">
<p>
千年以前的人類發明了各式各樣輔助算術的工具在世界各地的文明中皆能找到廣義上的算盤隨著時代演進那些原始的工具逐步進化成為現代的計算機與電腦更進一步地發展為隨處可見的智慧型裝置
俗話說站在巨人的肩膀上前人的智慧成果成為墊腳石讓站在其之上的後人可以看得更高更遠科技層層疊疊承先啟後文明才能跨越時空持續成長
人們不再需要重新發明輪子只要善用前人的成果就能造出更有效率的工具並擁有更好的生活生於現代的我們每天寫著電腦程式把玩著智慧型手機徜徉在網際網路上沒有邊際的資訊大海奠基於科技的現有成果才能持續貢獻於科技的未來我們都是算盤的後裔
</p>
</div>
</div>
</section>
</section>
</div>
</template>