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

Add Five and Friends CTA to column of widgets #4930

Merged
merged 4 commits into from
Sep 23, 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
Binary file added src/assets/images/blog/five-and-friends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions src/sections/Blog/Blog-sidebar/blogSidebar.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,26 +199,32 @@ const BlogSideBarWrapper = styled.div`
.card {
-webkit-transition: 450ms all;
transition: 450ms all;
margin: 2px 2px 2px 2px;
padding: 1.25rem;
display: flex;
flex-direction: column;
justify-content: space-around;
gap: 1rem;
background-color: ${props => props.theme.darkJungleGreenColor};
border-radius: 25px;
border-radius: 1.5rem;

p {
text-align: center;
letter-spacing: 0;
font-size: 15px;
font-weight: 200;
margin-top: -1rem;
color: ${props => props.theme.white};
}
h2 {
text-align: center;
font-size: 21px;
font-size: 1.5rem;
text-transform:uppercase;
clear: both;
margin-bottom: 0rem;
margin-top: 1rem;
color: ${props => props.theme.white};
}
img {
border-radius: 1rem;
}
.logo{
width: 100%;
}
Expand Down
11 changes: 11 additions & 0 deletions src/sections/Blog/Blog-sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { HiOutlineChevronDown } from "@react-icons/all-files/hi/HiOutlineChevron
// import { FaSearch } from "@react-icons/all-files/fa/FaSearch";

const Discuss = "../../../assets/images/discuss/layer5-discuss-white.webp";
const FiveandFriendsAdventures = "../../../assets/images/blog/five-and-friends.png";
Copy link
Member

Choose a reason for hiding this comment

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

Could we just use the already present one instead of adding another new image of the Five and Friends?

What do you think @toth2000?

Copy link
Member Author

Choose a reason for hiding this comment

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

@Mohith234 are you referring to the image src\assets\images\adventure-five\layer_five.png?
Both the images have different texts on it.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, IMO that text represented a bit more intuitive as a CTA. But yeah I saw the mockup has this image you've used so it's ok 👍 @toth2000

Copy link
Member

Choose a reason for hiding this comment

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

@ritiksaxena124 Which one do you think is good? Any suggestions?

Copy link
Contributor

Choose a reason for hiding this comment

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

journey 2 (2)

we can use this image. I have updated the text

Copy link
Member Author

Choose a reason for hiding this comment

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

@ritiksaxena124 @Mohith234 updated the image.


const Sidebar = ({ pageContext }) => {
const data = useStaticQuery(
Expand Down Expand Up @@ -114,6 +115,16 @@ const Sidebar = ({ pageContext }) => {
))}
</ul>
</div>
<div className="explain-1">
<div className="cards">
<a href="https://layer5.io/community/adventures-of-five-and-friends">
<div className="card">
<h2>See the Adventures of Five and Friends</h2>
<StaticImage alt="layer5 five and friends adventures" src={FiveandFriendsAdventures} />
</div>
</a>
</div>
</div>
<div className="subscribe">
<form
name="contactform"
Expand Down