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

Fixed issue #5696 : Made the card clickable #5743

Merged
merged 4 commits into from
Aug 6, 2024
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
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 {
DevMhrn marked this conversation as resolved.
Show resolved Hide resolved
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