Skip to content

Commit

Permalink
Added hover effect to supporters cards
Browse files Browse the repository at this point in the history
Signed-off-by: Suruchi Kumari <[email protected]>
  • Loading branch information
coder12git committed Aug 20, 2023
1 parent 69ce661 commit d65233b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
19 changes: 9 additions & 10 deletions src/components/supporters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import SectionContainer from "../sectionContainer";
import Translate from "@docusaurus/Translate";
import "./index.scss";

import Link from "@docusaurus/Link";
const supportList = [
{
name: "ARM",
Expand Down Expand Up @@ -94,9 +94,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 +169,7 @@ const supportList = [
name: "njhyst",
img_src: "img/supporters/njhyst.png",
external_link: "http://njhyst.com/",
}
},
];

export default function Supporters() {
Expand All @@ -181,11 +182,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;
}
}
}

0 comments on commit d65233b

Please sign in to comment.