Skip to content

Commit

Permalink
Merge pull request #5743 from DevMhrn/ddev
Browse files Browse the repository at this point in the history
Fixed issue #5696 : Made the card clickable
  • Loading branch information
sudhanshutech committed Aug 6, 2024
2 parents 5a35993 + 1276765 commit ac2e5b0
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/sections/Projects/Sistent/components/button/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const ButtonCode = () => {
const { isDark } = useStyledDarkMode();

return (
<SistentLayout title="Button">
<SistentLayout title="Button" >
<div className="content">
<a id="Identity">
<h2>Button</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Projects/Sistent/components/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const SistentButton = () => {
const { isDark } = useStyledDarkMode();

return (
<SistentLayout title="Button">
<SistentLayout title="Button" >
<div className="content">
<a id="Identity">
<h2>Button</h2>
Expand Down
38 changes: 22 additions & 16 deletions src/sections/Projects/Sistent/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import TOC from "../../../../components/SistentNavigation";
import SearchBox from "../../../../reusecore/Search";
import useDataList from "../../../../utils/usedataList";
import { FaArrowRight } from "@react-icons/all-files/fa/FaArrowRight";
import { Link } from "gatsby";

const componentsData = [
{
Expand Down Expand Up @@ -41,6 +42,8 @@ const SistentComponents = () => {
"id"
);

const compArray = queryResults;

return (
<SistentWrapper>
<div className="page-header-section">
Expand All @@ -67,26 +70,29 @@ const SistentComponents = () => {
</div>
<div className="product_cards">
<div className="cards">
{queryResults.map((comp) => (
<div className="card" key={comp.id}>
<div className="card_head">
<div className="title">{comp.name}</div>
<div className="text">{comp.description}</div>
</div>
<div>
<div className="card_bottom">
<a className="learn" href={comp.url}>
<div className="learn-more">
<div>Learn more</div>
<div className="icon">
<FaArrowRight />
{compArray.map((comp) => (
<Link key={comp.id} to={comp.url}>
<div className="card">
<div className="card_head">
<div className="title">{comp.name}</div>
<div className="text">{comp.description}</div>
</div>
<div>
<div className="card_bottom">
<a className="learn" href={comp.url}>
<div className="learn-more">
<div>Learn more</div>
<div className="icon">
<FaArrowRight />
</div>
</div>
</div>
</a>
</a>
</div>
</div>
</div>
</div>
</Link>
))}

</div>
</div>
</div>
Expand Down
12 changes: 12 additions & 0 deletions src/sections/Projects/Sistent/sistent.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ const SistentWrapper = styled.div`
.card_head .title {
font-size: 32px;
font-weight: 700;
color: ${props => props.theme.text};
}
.card .text {
Expand All @@ -687,6 +688,17 @@ const SistentWrapper = styled.div`
color: ${(props) => props.theme.whiteToBlack};
}
.card {
box-shadow: 0px 2px 6px 0px ${props => props.theme.green00D3A9ToBlackTwo};
transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0s;
&:hover {
box-shadow: 0px 2px 15px 4px ${props => props.theme.whiteNineToBlackOne};
transform: scale(1.045);
}
}
.card_bottom {
border-top: 2px solid #2c2c2c;
display: flex;
Expand Down

0 comments on commit ac2e5b0

Please sign in to comment.