Skip to content

Commit

Permalink
Style: 调整首页样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Nov 20, 2024
1 parent 0a2eaea commit c825528
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
31 changes: 29 additions & 2 deletions assets/css/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
max-width: 100%;
position: relative;
border-radius: 2.5px;
margin-block: 2rem;
margin-block: 1.5rem;
background: linear-gradient($global-background-color, $global-background-color) padding-box, linear-gradient(45deg, #42d392, #FF7359) border-box;
border: 0.25rem solid transparent;
transition: background-color 0.5s, border-color 0.5s;
Expand Down Expand Up @@ -141,14 +141,41 @@
}
}

.banner-start-commands {
width: 230px;
text-align: left;
margin: 0 auto;
padding: 0.5rem 1rem;
line-height: 1.45em;
font-size: $code-font-size;
font-family: $code-font-family;
background-color: $code-background-color;
@include border-radius($global-border-radius);

[data-theme='dark'] & {
background-color: $code-background-color-dark;
}
// command line
span {
display: block;
&::before {
content: "$";
opacity: 0.5;
padding-right: 0.5rem;
}
}
}

.quick-start-btn {
display: inline-block;
width: 230px;
border-radius: 8px;
transition: background-color 0.5s, color 0.5s;
font-weight: 600;
font-size: 18px;
padding: 8px 1rem;
margin-block: 1rem;
letter-spacing: 3px;
letter-spacing: 4px;
background-color: #42b883;
color: #fff;

Expand Down
1 change: 1 addition & 0 deletions layouts/partials/custom/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</ul>
<div class="docs-preview"></div>
</div>
<pre class="banner-start-commands"><span>npm install -g fixit-cli</span><span>fixit create my-blog</span></pre>
<a href="{{ $quickStartPage.RelPermalink }}" title="{{ $quickStartPage.Description }}" class="quick-start-btn">{{ $quickStartPage.LinkTitle }} <i class="fa-solid fa-arrow-right fa-sm fa-fw"></i></a>
</div>
{{- /* EOF */ -}}

0 comments on commit c825528

Please sign in to comment.