Skip to content

Commit

Permalink
feat: Added footer
Browse files Browse the repository at this point in the history
refactor: 把部分html轉成單檔案

把部分html轉成單檔案,使用ng-include或directive引入
  • Loading branch information
Chinlinlee committed Jan 9, 2021
1 parent 7983941 commit f70e642
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
33 changes: 33 additions & 0 deletions views/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<style>
.myFooter {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
color: whitesmoke;
font-weight: bold;
text-align: center;
background-color: #444444;
}
.darkmode--activated .myFooter {
background-color: #1f1f1f;
}
.github:after {
display: inline-block;
content : '';
background-image: url("/images/mark-github.svg");
background-size: 28px 28px;
height: 28px;
width: 28px;

}
</style>
<footer class="myFooter">
<div class="container">
<span>作者 : ChinlinLee (李沁霖)</span>
<br />
<span>聯絡資訊 : a5566qq2581@gmail.com</span>
<br />
<a class="github" href="https://github.com/Chinlinlee"></a>
</div>
</footer>
7 changes: 7 additions & 0 deletions views/navDarkMode.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@



<li class="nav-item">
<span><span style="font-size:25px">🌞 </span><input type="checkbox" data-toggle="toggle" data-onstyle="info" data-offstyle="light" id="darkModeSwitch"><span style="font-size:25px"> 🌛</span></span>
</li>

14 changes: 14 additions & 0 deletions views/navDropdownLearnInfo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


<li class="nav-item active">
<div class="dropdown show">
<a class="nav-link dropdown-toggle active" href="#" data-toggle="dropdown" id="dropdownLearnInfo" aria-haspopup="true" aria-expanded="false">學習資訊</a>
<div class="dropdown-menu" aria-labelledby="dropdownLearnInfo">
<a class="dropdown-item" href="/Course">個人修課明細</a>
<a class="dropdown-item" href="/Schedule">個人課表</a>
<a class="dropdown-item" href="/Scores">學期成績</a>
<a class="dropdown-item" href="/History_Scores">歷年成績</a>
<a class="dropdown-item" href="/CTE_BOT">教學評量機器人</a>
</div>
</div>
</li>
9 changes: 9 additions & 0 deletions views/navRight.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

<li class="nav-item active" ng-if="$parent.Currentuser">
<div class="dropdown show">
<a class="nav-link dropdown-toggle active" href="#" data-toggle="dropdown" id="dropdownUser" aria-haspopup="true" aria-expanded="false">Hello,{{$parent.Currentuser.stuName}}</a>
<div class="dropdown-menu" aria-labelledby="dropdownUser">
<a class="dropdown-item" href="/logout">Logout</a>
</div>
</div>
</li>

0 comments on commit f70e642

Please sign in to comment.