Skip to content

Commit

Permalink
add civicsabha
Browse files Browse the repository at this point in the history
  • Loading branch information
aashimgarg committed Oct 30, 2023
1 parent f8bdb0b commit 1d7de31
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Binary file added src/images/civicsabha.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import OurPartners from '../components/OurPartners';
import Seo from '../components/Seo/Seo';
import BlogStrip from '../components/BlogStrip';
import StandardGrid from '../styles/StandardGrid';
import { Link } from 'gatsby';
import Image from 'gatsby-image';

export const Section = styled.section`
padding: 0;
Expand Down Expand Up @@ -141,6 +143,12 @@ const Sectors = styled.section`
}
`;

const ImageBox = styled(Link)`
display: block;
margin-top:12px;
margin-bottom: 12px;
`;

const Index = ({ data }) => {
// const image = data?.landingBackground?.childImageSharp?.fluid;

Expand All @@ -164,6 +172,10 @@ const Index = ({ data }) => {
</MainContainer>
</HeroSection>
</>

<ImageBox to={'https://civicsabha.civicdatalab.in/'}>
<Image fluid={data?.civicsabha?.childImageSharp?.fluid} />
</ImageBox>
{/* <Fade bottom> */}
<Sectors>
<MainContainer>
Expand Down Expand Up @@ -206,6 +218,13 @@ export const pageQuery = graphql`
}
}
}
civicsabha: file(relativePath: { eq: "civicsabha.jpg" }) {
childImageSharp {
fluid(maxHeight: 400, quality: 100) {
...GatsbyImageSharpFluid
}
}
}
partners: allFile(
filter: { relativePath: { regex: "/partners/" }, extension: { in: ["jpg", "jpeg", "png"] } }
sort: { fields: name }
Expand Down

0 comments on commit 1d7de31

Please sign in to comment.