@@ -2,9 +2,8 @@ import React from "react";
22import Button from "./reusecore/Button" ;
33import styled from "styled-components" ;
44// import AcademyIcon from './assets/images/academy-icon.svg';
5- import CatalogIcon from "./assets/images/catalog-icon.svg" ;
6- import BookIcon from "./assets/images/book-icon.svg" ;
7-
5+ import CatalogIcon from './assets/images/catalog-icon.svg'
6+ import BookIcon from './assets/images/book-icon.svg'
87const Container = styled . div `
98 max-width: 1200px;
109 margin: 0 auto;
@@ -28,18 +27,19 @@ const Subheading = styled.p`
2827 margin: 0 auto;
2928` ;
3029
30+
3131const CardGrid = styled . div `
3232 display: grid;
3333 grid-template-columns: 1fr;
3434 gap: 2rem;
35-
35+
3636 @media (min-width: 768px) {
3737 grid-template-columns: repeat(2, 1fr);
3838 }
3939` ;
4040
4141const Card = styled . div `
42- background-color: ${ ( { theme } ) => theme . body } ;
42+ background-color: ${ ( { theme } ) => theme . body } ;
4343 border-radius: 0.5rem;
4444 box-shadow: 0px 0px 2px;
4545 padding: 2rem;
@@ -48,11 +48,9 @@ const Card = styled.div`
4848 flex-direction: column;
4949 align-items: center;
5050` ;
51-
5251const CardImageContainer = styled . div `
5352 max-width: 6rem;
5453` ;
55-
5654const CardImage = styled . img `
5755 max-width: 6rem;
5856 object-fit: contain;
@@ -62,7 +60,7 @@ const CardImage = styled.img`
6260const CardTitle = styled . h3 `
6361 font-size: 1.5rem;
6462 font-weight: bold;
65- color: ${ ( props ) => props . theme . text } ;
63+ color: ${ props => props . theme . text } ;
6664 margin-bottom: 1rem;
6765` ;
6866
@@ -74,23 +72,25 @@ const Spacer = styled.div`
7472 flex-grow: 1;
7573` ;
7674
75+
7776const ResourcesSection = ( ) => {
7877 return (
7978 < Container >
8079 < HeaderSection >
81- < MainHeading > No setup required</ MainHeading >
80+ < MainHeading >
81+ No setup required
82+ </ MainHeading >
8283 < Subheading >
83- Learn by doing: explore these hands-on resources using the playground
84- right in your browser
84+ Learn by doing: explore these hands-on resources using the playground right in your browser
8585 </ Subheading >
8686 </ HeaderSection >
8787
8888 < CardGrid >
8989 < Card >
9090 < CardImageContainer >
91- < CardImage
92- src = { BookIcon }
93- alt = "Hands-on tutorials"
91+ < CardImage
92+ src = { BookIcon }
93+ alt = "Hands-on tutorials"
9494 style = { { paddingTop : "1.2rem" } }
9595 />
9696 </ CardImageContainer >
@@ -99,26 +99,42 @@ const ResourcesSection = () => {
9999 Interactive tutorials to increase your cloud native knowledge.
100100 </ CardDescription >
101101 < Spacer />
102- { /* Use same markup as the Join button — let the Button component decide styling */ }
103- < Button url = "https://docs.meshery.io/guides/tutorials" >
104- Tutorials
105- </ Button >
102+ < Button url = "https://docs.meshery.io/guides/tutorials" style = { { color : "rgb(255,255,255)" } } > Tutorials</ Button >
106103 </ Card >
107104
105+ { /* <Card>
106+ <CardImageContainer>
107+ <CardImage
108+ src={AcademyIcon}
109+ alt="Academy Icon"
110+ />
111+ </CardImageContainer>
112+ <CardTitle>Academy</CardTitle>
113+ <CardDescription>
114+ Learn how to use various cloud native tools with Meshery.
115+ </CardDescription>
116+ <Spacer />
117+ <Button url="https://docs.meshery.io/guides/tutorials" style={{ color: "rgb(255,255,255)"}}>Get Started</Button>
118+ </Card> */ }
119+
120+
108121 < Card >
109122 < CardImageContainer >
110- < CardImage src = { CatalogIcon } alt = "Catalog Icon" />
123+ < CardImage
124+ src = { CatalogIcon }
125+ alt = "Catalog Icon"
126+ />
111127 </ CardImageContainer >
112128 < CardTitle > Catalog</ CardTitle >
113129 < CardDescription >
114- Reusable designs and templates for Cloud Native Infrastructure.
130+ Reusable designs and templates for Cloud Native Infrastructure.
115131 </ CardDescription >
116132 < Spacer />
117- < Button url = "https://meshery.io/catalog" > Learn More</ Button >
133+ < Button url = "https://meshery.io/catalog" style = { { color : "rgb(255,255,255)" } } > Learn More</ Button >
118134 </ Card >
119135 </ CardGrid >
120136 </ Container >
121137 ) ;
122138} ;
123139
124- export default ResourcesSection ;
140+ export default ResourcesSection ;
0 commit comments