Skip to content

Commit

Permalink
改變手機版Nav字體與背景顏色🙂
Browse files Browse the repository at this point in the history
  • Loading branch information
Dannygod committed Apr 14, 2024
1 parent 3f923c2 commit 22eb02c
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions my-app/src/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ const Flyout = styled.div`
transition: max-height 0.15s ease-out;
overflow: hidden;
background: linear-gradient(
45deg,
180deg,
rgba(39, 27, 78, 1) 0%,
rgba(40, 29, 79, 1) 35%,
rgba(27, 19, 54, 1) 82%,
rgba(27, 19, 54, 1) 100%
rgba(27, 19, 54, 1) 70%,
rgba(11, 0, 23, 1) 100%
);
div {
height: 100%;
Expand All @@ -97,13 +97,23 @@ const Flyout = styled.div`
// animation-iteration-count: infinite;
div {
height: auto;
}
a {
color: #fff;
font-size: 1.5rem;
padding: 1rem 0;
text-decoration: none;
font-weight: 600;
a {
background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(230, 230, 230, 1) 100%);
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: #fff;
font-size: 1.5rem;
padding: 1rem 0;
letter-spacing: 0.25rem;
text-decoration: none;
font-weight: 600;
}
a.login_button {
background: linear-gradient(90deg, rgba(255, 215, 0, 1) 0%, rgba(255, 165, 0, 1) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
@media screen and (max-width: 690px) {
Expand Down Expand Up @@ -211,15 +221,15 @@ const Nav = () => {
</li>
))}
<li class="banner_button_register">
<a href="https://camp-app.csie.cool/login" class="login_button">
<a href="https://camp-app.csie.cool/login" className="login_button">
立即報名
</a>
</li>
</ul>
<Flyout className="flyout">
<div>
<div class="banner_button_register">
<a href="https://camp-app.csie.cool/login" class="login_button">
<a href="https://camp-app.csie.cool/login" className="login_button">
立即報名
</a>
</div>
Expand Down

0 comments on commit 22eb02c

Please sign in to comment.