Skip to content

Commit

Permalink
Refactor styling in data-card.js, header.js, and index.js
Browse files Browse the repository at this point in the history
Signed-off-by: Aviral Asthana <[email protected]>
  • Loading branch information
Aviral0702 committed Sep 20, 2024
1 parent 68f6279 commit 178be1c
Show file tree
Hide file tree
Showing 36 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion src/components/Call-To-Actions/CTA_Bottom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const CTA_Bottom = ({ alt, button_text, category, content, external_link, image,
<p>{content ? content : defaultContent}</p>
</>
)}
<Button primary title={category ? Categories[category]["Button_Text"] : (button_text ? button_text : "Join Us")} url={category ? Categories[category]["Link"] : (url ? url : defaultURL)} external={category ? Categories[category]["Link_external"] : (external_link ? true : false)} />
<Button $primary title={category ? Categories[category]["Button_Text"] : (button_text ? button_text : "Join Us")} url={category ? Categories[category]["Link"] : (url ? url : defaultURL)} external={category ? Categories[category]["Link_external"] : (external_link ? true : false)} />
</div>

</CTA_BottomWrapper>
Expand Down
6 changes: 3 additions & 3 deletions src/components/PlanCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const PlanCard = (props) => {

<PlanCardWrapper>
<Container>
<Row Hcenter={true}>
<Row $Hcenter={true}>
{props.planData.map((x) => (
<Col lg={4} md={6} key={x.tier}>
<div
Expand All @@ -36,13 +36,13 @@ const PlanCard = (props) => {
))}
</div>
<Button
primary
$primary
className={
x.button[0] === "Coming Soon"
? "price-button-disabled"
: "price-button-link"
}
url={x.button[1]}
$url={x.button[1]}
>
{x.button[0]}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SistentNavigation/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SistentPagination = () => {
return (
<PaginationWrapper>
{currentPage > 0 ? (
<Button secondary url={content[currentPage - 1]?.link}>
<Button $secondary $url={content[currentPage - 1]?.link}>
&larr; Previous
</Button>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion src/components/specs/data-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const DataCard = () => {

return (
<DataCardWrapper>
<Row Vcenter>
<Row $Vcenter>
<Col className="col-1" sm={6} lg={6}>
<ul>
<li>
Expand Down
6 changes: 3 additions & 3 deletions src/components/specs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const HowMesheryWorksSpecs = ({ title, desc, btnUrl }) => {
<SpecsWrapper>
<div className="management-plane">
<Container>
<Row Vcenter>
<Row $Vcenter>
<Col className="text" xs={12} lg={6}>
<h2>{title}</h2>
<p>{desc}</p>
<VintageBox left={true} vintageTwo={true}>
<Button
primary
url={btnUrl}
$primary
$url={btnUrl}
title="Learn More"
/>
</VintageBox>
Expand Down
4 changes: 2 additions & 2 deletions src/sections/AWS-Diagram/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ const Header = () => {
</p>
<div className="header__button_section">
<Button
primary
$primary
title="Try Kanvas Now!"
$external={true}
url="/kanvas"
$url="/kanvas"
/>
</div>
</Col>
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Cloud-Native-Catalog/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ const Header = () => {
</p>
<div className="header__button_section">
<Button
primary
$primary
title="Browse Catalog"
$external={true}
url="https://meshery.io/catalog"
$url="https://meshery.io/catalog"
/>
</div>
</Col>
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Community/Members-grid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const MembersGrid = (props) => {
primary
className="banner-btn memberProfileBtn"
title="Collect Badges"
url="https://badges.layer5.io/"
$url="https://badges.layer5.io/"
$external={true}
>
<FaCertificate size={21} className="icon-left" />
Expand All @@ -172,7 +172,7 @@ const MembersGrid = (props) => {
secondary
className="banner-btn two memberProfileBtn"
title="Join the Community"
url="https://slack.layer5.io"
$url="https://slack.layer5.io"
>
<FaUsers size={21} className="icon-left" />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const SocialBackgrounds = () => {
</Row>

<Row>
<Row Vcenter className="ImgDiv">
<Row $Vcenter className="ImgDiv">
<Col xs={12} className="social-backgrounds">
<img src={SocialBackgroundImg} alt="Layer5 Social backgrounds" />
</Col>
Expand Down
2 changes: 1 addition & 1 deletion src/sections/FeatureHero/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const FeatureHero = (props) => {
<h1 className={"whiteboard-heading"}>{props.data.heading}</h1>
<p className={"whiteboard-text"}>{props.data.sub_heading}</p>
<Button
primary
$primary
title="Try Now!"
url="https://meshery.layer5.io"
$external={true}
Expand Down
2 changes: 1 addition & 1 deletion src/sections/GCP-Diagram/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Header = () => {
</p>
<div className="header__button_section">
<Button
primary
$primary
title="Try Kanvasow!"
$external={true}
url="/kanvas"
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Home/Banner-4/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Banner1 = (props) => {
{hasMounted && window.innerWidth > 760 && (
<Col $sm={4} $lg={6} className="section-title-wrapper video-col">
<ReactPlayer
url="https://youtu.be/034nVaQUyME?si=Yya8m6i7JUoSdZm4"
$url="https://youtu.be/034nVaQUyME?si=Yya8m6i7JUoSdZm4"
playing
controls
light={videoThumbnail}
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Home/CloudNativeManagement/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const BannerDefault = () => {
</Col>
<Col $sm={12} $md={6} $lg={6} className="right-col">
<ReactPlayer
url="https://youtu.be/qaoYRP3oLok"
$url="https://youtu.be/qaoYRP3oLok"
playing
controls
light={
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Home/Playground-home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ const KanvasVisualizerViews = () => {
integrations.
</p>
<Button
primary
$primary
title="Open in Demo System &rarr;"
$external={true}
url="https://playground.meshery.io/"
$url="https://playground.meshery.io/"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const CatalogGrid = ({ frontmatter }) => {
</section>
{designSize <= designs?.total_count && (
<Button
primary
$primary
className="loadmore"
title="Load More"
onClick={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const PerformanceCTA = ({ category }) => {
<div className="text">
<h2><span>Cloud Native Performance</span></h2>
<h3 className="subtext">Standardizing Service Mesh Value Measurement</h3>
<Button primary url="/projects/cloud-native-performance" className="button" external={false}>
<Button $primary $url="/projects/cloud-native-performance" className="button" $external={false}>
Learn More
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Meshery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const MesheryPage = () => {
</video>
{/* <img className="meshery-sup-img" src={mesheryFullStack} alt="Meshery the multi-mesh manager" /> */}
<Button $primary className="banner-btn align-btn"
title="Star the Repository" url="https://github.com/meshery/meshery" $external={ true }>
title="Star the Repository" $url="https://github.com/meshery/meshery" $external={ true }>
<FaGithub size={21} className="button-icon" />
</Button>
</Col>
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Playground/playground-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const PlaygroundFeatures = () => {
<div className="feature-text">
<h2>Design architecture diagrams </h2>
<h5>The Whiteboarding and Freestyle Drawing feature introduces versatile drawing capabilities within Playground.</h5>
<Button url="/solutions/architecture-diagram" style={{ marginTop: "1.5rem" }}>
<Button $url="/solutions/architecture-diagram" style={{ marginTop: "1.5rem" }}>
Learn more
</Button>
</div>
Expand All @@ -100,7 +100,7 @@ const PlaygroundFeatures = () => {
<div className="feature-text">
<h2>Brainstorm with Comments </h2>
<h5>Playground’s Designer Mode offers a powerful collaboration feature through comments.</h5>
<Button url="/cloud-native-management/kanvas/collaborate/peer-reviews" style={{ marginTop: "1.5rem" }}>
<Button $url="/cloud-native-management/kanvas/collaborate/peer-reviews" style={{ marginTop: "1.5rem" }}>
Learn more
</Button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Products/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ const index = () => {

<PlanCard planData={options}/>

<Row Vcenter Hcenter className={"comparison-button"}>
<Row $Vcenter $Hcenter className={"comparison-button"}>
<Button $primary title="Feature Comparison" alt="Feature Comparison" $url={"/pricing/#feature-comparison"}/>
</Row>

Expand Down
10 changes: 5 additions & 5 deletions src/sections/Projects/Sistent/components/button/guidance.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const ButtonGuidance = () => {
page, or complete an action. The filled button serves as the primary
button.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button
variant="contained"
Expand All @@ -100,7 +100,7 @@ export const ButtonGuidance = () => {
option which the primary button highlights. The outlined button
serves as the secondary button
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button
variant="outlined"
Expand All @@ -119,7 +119,7 @@ export const ButtonGuidance = () => {
to be taken by the user. The text button serves as the tertiary
button.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button variant="text" label="Tertiary" size="medium" />
</SistentThemeProvider>
Expand All @@ -134,7 +134,7 @@ export const ButtonGuidance = () => {
categories so for easy identification and additional styling can be
added to them to achieve this necessary distinction.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button color="warning" label="Call to Action" size="medium" />
</SistentThemeProvider>
Expand All @@ -146,7 +146,7 @@ export const ButtonGuidance = () => {
irreversible action is about to take place and as such confirmation
is required in order to proceed.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button color="error" label="Danger" size="medium" />
</SistentThemeProvider>
Expand Down
12 changes: 6 additions & 6 deletions src/sections/Projects/Sistent/components/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const SistentButton = () => {
fill can range from a primary brand color to any other applicable
color in a brand’s color palette.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button variant="contained" label="Filled" size="medium" />
</SistentThemeProvider>
Expand All @@ -93,7 +93,7 @@ const SistentButton = () => {
be used to style these buttons in order to fit into the theme align
with brand guidelines.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button variant="outlined" label="Outlined" size="medium" />
</SistentThemeProvider>
Expand All @@ -105,7 +105,7 @@ const SistentButton = () => {
just have a specific text styling and color to denote different
states for easier identification.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button variant="text" label="Text" size="medium" />
</SistentThemeProvider>
Expand All @@ -130,7 +130,7 @@ const SistentButton = () => {
and desktop resolutions, but it serves in different capacities
across these different resolutions.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button variant="contained" label="56px / 3.5rem" size="large" />
</SistentThemeProvider>
Expand All @@ -141,7 +141,7 @@ const SistentButton = () => {
available from mobile to desktop resolutions, even though it serves
in different capacities across these screen sizes.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button variant="contained" label="48px / 3rem" size="medium" />
</SistentThemeProvider>
Expand All @@ -153,7 +153,7 @@ const SistentButton = () => {
devices - the fingers, are a lot larger than the cursor on a desktop
or larger screen.
</p>
<Row Hcenter className="image-container">
<Row $Hcenter className="image-container">
<Col sm={12}>
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Button variant="contained" label="Full width" fullWidth />
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Projects/Sistent/components/modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const SistentModal = () => {
confirm and cancel actions or make progress while carrying out a
particular task.
</p>
<Row className="image-container" Hcenter>
<Row className="image-container" $Hcenter>
<Col md={8} lg={8} sm={12}>
<img
width="100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const TextInputGuidance = () => {
input is mostly utilized. Icons are not seldom required in this text
input, however, they can included when extremely necessary.
</p>
<Row Hcenter>
<Row $Hcenter>
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Input placeholder="PlaceHolder" />
</SistentThemeProvider>
Expand All @@ -89,7 +89,7 @@ export const TextInputGuidance = () => {
line of text. This text input adjusts vertically based on the amount
of lines of text entered into the text field.
</p>
<Row Hcenter>
<Row $Hcenter>
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Input placeholder="Placeholder" multiline />
</SistentThemeProvider>
Expand Down
6 changes: 3 additions & 3 deletions src/sections/Projects/Sistent/components/text-input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const SistentTextInput = () => {
they generally perform is to ensure that users are able to send in
data and receive corresponding information.
</p>
<Row Hcenter>
<Row $Hcenter>
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Input placeholder="Placeholder goes here" type="text" />
</SistentThemeProvider>
Expand All @@ -102,7 +102,7 @@ const SistentTextInput = () => {
desktop resolutions, but it serves in different capacities across
these different resolutions.
</p>
<Row Hcenter>
<Row $Hcenter>
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Input
placeholder="Placeholder goes here"
Expand All @@ -117,7 +117,7 @@ const SistentTextInput = () => {
available from mobile to desktop resolutions, even though it serves
in different capacities across these screen sizes.
</p>
<Row Hcenter>
<Row $Hcenter>
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Input
placeholder="Placeholder goes here"
Expand Down
Loading

0 comments on commit 178be1c

Please sign in to comment.