Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]:Added hover effect to Supporters Cards #414

Merged
merged 4 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/components/supporters/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import SectionContainer from "../sectionContainer";
import Translate from "@docusaurus/Translate";
import Link from "@docusaurus/Link";
import "./index.scss";

const supportList = [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coder12git Thank you for your contributions! I think adding a blank line here between import and following parts would make the format look better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coder12git Thank you for your contributions! I think adding a blank line here between import and following parts would make the format look better.

Done @Shelley-BaoYue

Expand Down Expand Up @@ -94,9 +95,10 @@ const supportList = [
external_link: "https://kubesphere.io",
},

{ name: "Orange",
img_src: "img/supporters/orange.png",
external_link: "https://www.orange.com/en"
{
name: "Orange",
img_src: "img/supporters/orange.png",
external_link: "https://www.orange.com/en",
},
{
name: "Raisecom Technology",
Expand Down Expand Up @@ -168,7 +170,7 @@ const supportList = [
name: "njhyst",
img_src: "img/supporters/njhyst.png",
external_link: "http://njhyst.com/",
}
},
];

export default function Supporters() {
Expand All @@ -181,11 +183,9 @@ export default function Supporters() {
{supportList.map((item, index) => (
<div key={index} className="supporterBox">
<div className="imgContainer">
<img
alt={item.name}
src={item.img_src}
onClick={() => window.open(item.external_link)}
/>
<Link to={item.external_link}>
<img alt={item.name} src={item.img_src} />
</Link>
</div>
</div>
))}
Expand Down
12 changes: 9 additions & 3 deletions src/components/supporters/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@
padding: 5px 15px 15px;
text-align: center;
background-color: #fff;
border-style: solid;
border-width: 0.5px;
border-color: #dde6ed;
}
.imgContainer:hover {
background-color: #eeeeee;
border-width: 2px;
}

img {
position: relative;
display: inline-block;
Expand Down Expand Up @@ -51,8 +57,8 @@
}
}

html[data-theme='dark'] {
html[data-theme="dark"] {
.supporterContainer {
background-color: #242526;
}
}
}