Skip to content

Commit

Permalink
feat: add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 25, 2020
1 parent 5dbdb98 commit 8fd0baf
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 18 deletions.
14 changes: 0 additions & 14 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,14 +0,0 @@
.github {
height: 24px;
line-height: 36px;
margin: 0 4px 3px 0;
vertical-align: middle;
cursor: pointer;
white-space: nowrap;
text-align: center;

img {
width: 24px;
height: 24px;
}
}
13 changes: 10 additions & 3 deletions src/app/presentation/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="container">
<!-- <div class='∞'></div>-->
<!-- <div class="box" style="&#45;&#45;c1:orange;&#45;&#45;c3:purple;&#45;&#45;d:60px;&#45;&#45;s:2px"></div>-->
<!-- <div class='∞'></div>-->
<!-- <div class="box" style="&#45;&#45;c1:orange;&#45;&#45;c3:purple;&#45;&#45;d:60px;&#45;&#45;s:2px"></div>-->
<div class="intro markdown">
<blockquote>
<h5>DevOps 是一种软件工程文化和实践,旨在统一整合软件开发和软件运维。</h5>
Expand Down Expand Up @@ -48,5 +48,12 @@ <h2 class="center">Key Contributors</h2>
</div>
</div>

<div class="footer"></div>
<div class="footer">
<div class="columns">
<div class="rows">
<div class="cell-title cell">资源</div>
<div class="cell"><a href="https:/phodal/do" target="_blank">GitHub</a></div>
</div>
</div>
</div>
</div>
31 changes: 30 additions & 1 deletion src/app/presentation/home/home.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,34 @@
}

.footer {
padding-top: 8em;
background: #ff4081;
display: flex;
color: #fff;

margin-top: 4em;
padding-top: 4em;
padding-bottom: 4em;

.columns {
width: 960px;
margin: 0 auto;

.rows {
line-height: 1.6em;
.cell-title {
font-size: 1.2em;
font-weight: bold;
line-height: 1.6em;
}
.cell {
color: #fff;

a {
padding: 0;
color: #fff;
line-height: 1.6em;
}
}
}
}
}
15 changes: 15 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,18 @@ body {
.webcomponents-plugins {

}

.github {
height: 24px;
line-height: 36px;
margin: 0 4px 3px 0;
vertical-align: middle;
cursor: pointer;
white-space: nowrap;
text-align: center;

img {
width: 24px;
height: 24px;
}
}

0 comments on commit 8fd0baf

Please sign in to comment.