Skip to content

Commit

Permalink
fix: secondary button
Browse files Browse the repository at this point in the history
Signed-off-by: upsaurav12 . <[email protected]>
  • Loading branch information
upsaurav12 committed Aug 17, 2024
1 parent 278d077 commit 02c9461
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/sections/General/Navigation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ const Navigation = () => {
{!userData && (
<div>
<ul>
<li>
<li className="get-started-list">
<Button
id="get-started"
secondary
Expand All @@ -393,9 +393,9 @@ const Navigation = () => {
</ul>
</div>
)}
<div>
<div className="playground">
<ul>
<li className="mobile-nav-item">
<li className="mobile-nav-item" id="playground-list">
{/* <a href="https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56?gv=true" className="menu-item">Book Demo</a> */}
<a href="https://play.meshery.io" className="menu-item">
Playground
Expand Down
59 changes: 56 additions & 3 deletions src/sections/General/Navigation/navigation.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,42 @@ const NavigationWrap = styled.header`
margin-top: -34px;
}
}
.get-started-list{
width: 100%;
}
#get-started{
width: 100%;
}
.playground{
padding: 6px;
width: 94%;
margin: 10px auto auto;
display: flex;
justify-content: center;
border: 1px solid ${(props) => props.theme.menuHoverColor};
border-radius: 0.2rem;
ul{
width: 100%;
a{
display: flex;
justify-content: center;
color: ${(props) => props.theme.menuHoverColor};
}
}
}
@media only screen and (min-width: 300px) and (max-width: 580px){
.playground{
width: 92.5%;
}
}
#playground-list{
width: 100%;
}
@media only screen and (min-width: 912px) and (max-width: 992px) {
.nav {
margin-left: 1.375rem;
Expand Down Expand Up @@ -544,7 +580,7 @@ const NavigationWrap = styled.header`
}
.mobile-dropdown {
position: relative;
padding: 10px 0 10px 15px;
padding: 10px 0 32px;
display: block;
background: ${(props) => props.theme.grey141414ToGreyFAFAFA};
border-radius: 10px;
Expand Down Expand Up @@ -625,7 +661,6 @@ const NavigationWrap = styled.header`
line-height: 2rem;
font-size: 1.125rem;
width: 100%;
padding: 10px 0;
}
a:before {
content: none;
Expand All @@ -644,6 +679,9 @@ const NavigationWrap = styled.header`
.mobile-nav-subitem-container{
display:none;
background: ${(props) => props.theme.subItemColor};
padding: -1px 0 13px;
border-radius: 0.2rem;
}
.plus {
Expand Down Expand Up @@ -690,17 +728,32 @@ const NavigationWrap = styled.header`
border: 1px solid pink;
}
.playground{
margin-top: 17px
}
.mobile-nav-subitem {
padding-left: 10px;
padding-top: 0.4rem;
background-color: ${(props) => props.theme.subItemColor};
padding: 12px 0;
&:hover{
background-position: left bottom;
}
}
.mobile-sub-menu-item {
font-size: 1.1rem;
&:hover {
color: ${(props) => props.theme.menuColor};
}
}
}
.nav-link-active {
color: ${(props) => props.theme.menuHoverColor};
color: ${(props) => props.theme.menuHoverColor};
border: 1px solid;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
Expand Down
10 changes: 10 additions & 0 deletions src/theme/app/themeStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ const lighttheme = {
// charcoal
menuColor: "#3c494f",

//light grey
//subItemColor: "#c1c1c1a6",
subItemColor: "linear-gradient(90deg, rgba(226,226,226,1) 0%, rgba(203,203,203,1) 83%, rgba(213,213,213,1) 98%)",

// caribbean green (light green)
menuHoverColor: "#00b39f",
linkColor: "#00b39f",
Expand Down Expand Up @@ -279,11 +283,17 @@ export const darktheme = {

// charcoal
menuColor: "#ffffff",


//dark grey
//subItemColor: "#565656",
subItemColor: "linear-gradient(90deg, rgba(159,159,159,1) 0%, rgba(147,147,147,1) 69%, rgba(143,143,143,1) 83%)",
// 00D3A9
// caribbean green (light green)
menuHoverColor: "#00D3A9",
linkColor: "#00D3A9",


// saffron (dark yellow)
highlightColor: "#EBC017",
saffronColor: "#EBC017",
Expand Down

0 comments on commit 02c9461

Please sign in to comment.