Skip to content

Commit bc4607e

Browse files
committed
doc: 移动基金会信息到 footer 中
1 parent 585ea4d commit bc4607e

File tree

4 files changed

+33
-37
lines changed

4 files changed

+33
-37
lines changed

src/BootstrapBlazor.Server/Components/Layout/HomeLayout.razor

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
@Body
1212

1313
<footer>
14+
<div class="bb-foundation">
15+
<div class="bb-foundation-content">本项目属于 <a href="https://www.dotnetfoundation.org/">.NET 基金会</a>,并根据其 <a href="https://www.dotnetfoundation.org/code-of-conduct">行为准则</a> 运作</div>
16+
<a class="bb-foundation-img d-none d-sm-block" href="https://www.dotnetfoundation.org/">
17+
<img src="./images/dotnet_foundation_v4.png" width="100" />
18+
</a>
19+
</div>
1420
<div class="footer-body">
1521
<div>
1622
<h4>@Localizer["FooterH1"]</h4>

src/BootstrapBlazor.Server/Components/Layout/HomeLayout.razor.css

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
.footer-body {
1+
footer {
2+
background-color: var(--bs-tertiary-bg);
3+
}
4+
5+
.footer-body {
26
padding: 1rem;
3-
color: var(--bb-footer-body-color);
4-
background-color: var(--bb-footer-body-bg);
57
margin: 0;
68
display: flex;
79
flex-direction: column;
@@ -19,8 +21,7 @@
1921
}
2022

2123
.footer-body .footer-link {
22-
transition: all .3s linear;
23-
color: rgba(255,255,255,.9);
24+
color: var(--bs-body-color);
2425
text-decoration: none;
2526
line-height: 2;
2627
display: block;
@@ -29,26 +30,22 @@
2930

3031
.footer-body .footer-link:hover,
3132
.footer-body .footer-link a:hover {
32-
color: #40a9ff;
33+
color: var(--bs-link-hover-color);
34+
text-decoration: underline;
3335
}
3436

3537
.footer-body .footer-link:not(:last-child) {
3638
margin-top: 1rem;
3739
}
3840

39-
.footer-body .footer-link a {
40-
transition: all .3s linear;
41-
color: #fff;
42-
}
43-
4441
.footer-info {
4542
background-color: #222;
4643
padding: var(--bb-footer-padding);
47-
color: #9d9d9d;
44+
color: #ddd;
4845
}
4946

5047
.footer-info a {
51-
color: #9d9d9d;
48+
color: #ddd;
5249
}
5350

5451
.footer-info .footer-logo {
@@ -65,9 +62,26 @@
6562
color: var(--bs-success)
6663
}
6764

65+
.bb-foundation {
66+
display: flex;
67+
align-items: center;
68+
}
69+
70+
.bb-foundation .bb-foundation-content {
71+
text-align: center;
72+
font-size: 1rem;
73+
font-weight: bolder;
74+
padding: 1rem 0;
75+
flex-grow: 1;
76+
}
77+
6878
@media (min-width: 768px) {
6979
.footer-body {
7080
padding: 2rem;
7181
flex-direction: row;
7282
}
83+
84+
.bb-foundation .bb-foundation-content {
85+
margin-left: 100px;
86+
}
7387
}

src/BootstrapBlazor.Server/Components/Pages/Index.razor

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,4 @@
3636
<h5 class="d-none d-sm-block mb-3">@Localizer["DonateH2"]</h5>
3737
<img alt="barcode" class="barcode" src="./images/[email protected]" />
3838
</div>
39-
<div class="bb-foundation">
40-
<div class="bb-foundation-content">本项目属于 <a href="https://www.dotnetfoundation.org/">.NET 基金会</a>,并根据其 <a href="https://www.dotnetfoundation.org/code-of-conduct">行为准则</a> 运作</div>
41-
<a class="bb-foundation-img d-none d-sm-block" href="https://www.dotnetfoundation.org/">
42-
<img src="./images/dotnet_foundation_v4.png" width="100" />
43-
</a>
44-
</div>
4539
</section>

src/BootstrapBlazor.Server/Components/Pages/Index.razor.css

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,6 @@
8484
width: 280px;
8585
}
8686

87-
.bb-foundation {
88-
background-color: rgb(var(--bs-tertiary-bg-rgb));
89-
display: flex;
90-
align-items: center;
91-
}
92-
93-
.bb-foundation .bb-foundation-content {
94-
text-align: center;
95-
font-size: 1rem;
96-
font-weight: bolder;
97-
padding: 1rem 0;
98-
flex-grow: 1;
99-
}
100-
10187
@media (min-width: 768px) {
10288
.bd-masthead .lead {
10389
font-size: calc(1.275rem + .3vw);
@@ -111,8 +97,4 @@
11197
.donate .barcode {
11298
width: 480px;
11399
}
114-
115-
.bb-foundation .bb-foundation-content {
116-
margin-left: 100px;
117-
}
118100
}

0 commit comments

Comments
 (0)