Skip to content

Commit

Permalink
Merge pull request #16 from hellof2e/feature/home-ui4.10
Browse files Browse the repository at this point in the history
optimize homePage layout css
  • Loading branch information
xsf0105 authored Apr 10, 2024
2 parents c212d44 + a137d97 commit 84a235e
Show file tree
Hide file tree
Showing 5 changed files with 520 additions and 563 deletions.
53 changes: 45 additions & 8 deletions src/assets/styles/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

--main-shadow: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);

--vp-c-divider: #e2e2e3;
--vp-c-gutter: var(--vp-c-divider);


--text-font-color: rgb(34, 45, 58);
--text-font-color: rgba(60, 60, 67);
--text-code-font-color: #476582;
Expand All @@ -37,6 +41,7 @@
--vp-c-neutral-inverse: var(--vp-c-white);

--vp-nav-height: 64px;
--vp-nav-bg-color: var(--vp-c-bg);
--vp-button-brand-bg: var(--vp-c-brand-1);
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, var(--vp-c-brand-1) 30%, var(--vp-c-brand-next));
Expand Down Expand Up @@ -171,14 +176,48 @@ html.dark {
.flyout-menu .menu-group-title {
color: rgba(235, 235, 235, .38);
}

.btn {
border: none;
color: #e2e3dc;
background-color: #33363f;
transition: .2s ease;
&:hover {
background: #414853;
}
}
.tagline {
color: rgba(235, 235, 245, .6);
}
.box-group {
.box {
background: #202127;
border: 1px solid #202127;
}
a:hover{
border:1px solid var(--vp-button-brand-bg);
}
h2 {
color: #e0e0d9
}
p{
color: #9a9aa3
}
.box-link-text {
color: #e7e7df
}
}
.flyout-menu .menu-link {
color: rgba(255, 255, 255, .87);
&:hover {
color: #646cff;
}
}

.main-footer {
background-color: #1e1e20;
p {
color: rgba(235, 235, 245, .5);
}
}
.nav-item a:hover,
.nav-item button:hover {
color: var(--nav-link-color);
Expand All @@ -205,15 +244,13 @@ html.dark {
}

.install-btn {
background: #000000;
color: #ddd;
border-color: #222;
color: #e2e3dc;
background-color: #33363f;
border: 1px solid #33363f;
transition: all .2s ease-out;

&:hover {
color: #fff;
background: #111;
transition: all .2s ease-out;
background: #414853;
}

}
Expand Down
46 changes: 14 additions & 32 deletions src/components/Header/index.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
.header {
width: 100%;
height: var(--vp-nav-height);
padding: 0 32px;
position: fixed;
top: var(--vp-layout-top-height, 0px);
left: 0;
z-index: var(--vp-z-index-nav, 1);
transition: background-color .5s;

p {
margin: 0;
}

a {
transition: all 0.25s;
display: flex;
justify-content: space-between;
}

button {
background-color: transparent;
cursor: pointer;
header.scrolled {
background-color: var(--vp-nav-bg-color);
border-bottom: 1px solid var(--vp-nav-border-color, #e2e2e3);;
}

.header {
z-index: 30;
top: 0px;
position: sticky;
min-width: 860px;
width: 100%;
background: #fff;
}
.toper-bar,
.left-bar {
display: flex;
Expand All @@ -42,21 +39,6 @@ button {
height: 2rem;
}

.header > div {
margin-left: auto;
margin-right: auto;
}

.header .container {
margin: 0 auto;
padding: 1.25rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--line-light);
background-color: var(--main-bg);
}

.nav-item a {
font-size: 14px;
color: var(--text-font-color-light);
Expand Down
Loading

0 comments on commit 84a235e

Please sign in to comment.