Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
babitarit committed Nov 11, 2023
1 parent 7f1c0c1 commit 58fe407
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 34 deletions.
4 changes: 2 additions & 2 deletions src/components/AboutUs/About.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Content from '../../../config/content/About';
import {AboutContainer,AboutContent,Heading} from './styles';
import { AboutContainer, AboutContent, Heading } from './styles';
import Carousel from './Carousel';

const AboutUs = () => {

Check failure on line 6 in src/components/AboutUs/About.jsx

View workflow job for this annotation

GitHub Actions / eslint / Eslint Check

Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`
Expand All @@ -10,7 +10,7 @@ const AboutUs = () => {
<Heading>About Us</Heading>
<AboutContent>{Content.desc}</AboutContent>
</AboutContainer>
<Carousel />
<Carousel />
</>
);
};
Expand Down
28 changes: 15 additions & 13 deletions src/components/AboutUs/Carousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,27 @@ import { Helmet } from 'react-helmet';
function CustomPrevArrow({ onClick }) {
return (
<div className='arrow custom-prev-arrow' onClick={onClick}>

Check failure on line 10 in src/components/AboutUs/Carousel.jsx

View workflow job for this annotation

GitHub Actions / eslint / Eslint Check

Visible, non-interactive elements with click handlers must have at least one keyboard listener

Check failure on line 10 in src/components/AboutUs/Carousel.jsx

View workflow job for this annotation

GitHub Actions / eslint / Eslint Check

Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element
<Helmet>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
</Helmet>
<span class="material-symbols-outlined">
arrow_back_ios_new
</span>
<Helmet>
<link
rel='stylesheet'
href='https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0'

Check failure on line 14 in src/components/AboutUs/Carousel.jsx

View workflow job for this annotation

GitHub Actions / eslint / Eslint Check

This line has a length of 114. Maximum allowed is 100
/>
</Helmet>
<span class='material-symbols-outlined'>arrow_back_ios_new</span>

Check failure on line 17 in src/components/AboutUs/Carousel.jsx

View workflow job for this annotation

GitHub Actions / eslint / Eslint Check

Unknown property 'class' found, use 'className' instead
</div>
);
}

function CustomNextArrow({ onClick }) {
return (
<div className='arrow custom-next-arrow' onClick={onClick}>

Check failure on line 24 in src/components/AboutUs/Carousel.jsx

View workflow job for this annotation

GitHub Actions / eslint / Eslint Check

Visible, non-interactive elements with click handlers must have at least one keyboard listener

Check failure on line 24 in src/components/AboutUs/Carousel.jsx

View workflow job for this annotation

GitHub Actions / eslint / Eslint Check

Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element
<Helmet>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
</Helmet>
<span class="material-symbols-outlined">
arrow_forward_ios
</span>
<Helmet>
<link
rel='stylesheet'
href='https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0'
/>
</Helmet>
<span class='material-symbols-outlined'>arrow_forward_ios</span>
</div>
);
}
Expand All @@ -43,7 +45,7 @@ function Carousel() {
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 1000,
beforeChange: (current,next) => setSlideIndex(next),
beforeChange: (current, next) => setSlideIndex(next),
centerMode: true,
responsive: [
{
Expand Down
38 changes: 19 additions & 19 deletions src/components/AboutUs/styles.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import styled from 'styled-components';
import { Body1 } from '../shared';
import { Heading1 } from '../shared';
export const AboutContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin-top: 0px;
overflow: hidden;
width: 100%;
margin-bottom: 50px;
`;
export const AboutContent = styled(Body1)`
margin-top: 20px;
margin-bottom: 50px;
width: 80%;
font-size: 16px;
line-height: 24px;
`;
export const Heading = styled(Heading1)`
export const AboutContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin-top: 0px;
overflow: hidden;
width: 100%;
margin-bottom: 50px;
`;
export const AboutContent = styled(Body1)`
margin-top: 20px;
margin-bottom: 50px;
width: 80%;
font-size: 16px;
line-height: 24px;
`;
export const Heading = styled(Heading1)`
font-weight: 700;
`;
`;

0 comments on commit 58fe407

Please sign in to comment.