-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improved file structure and fix prettier issues
- Loading branch information
Showing
19 changed files
with
52 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/components/eventsCarousel/eventCardComponents/EventCard.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { EventImage } from '../utils/Image'; | ||
import { ParentEventCardComponent } from './Parent'; | ||
// import { CarouselButton } from '../../shared/Typography/Buttons'; | ||
|
||
import { CarouselButton, CarouselHead, CarouselParagraph } from './eventCard.style'; | ||
|
||
export const EventCard = ({ head, url, desc }) => { | ||
return ( | ||
<> | ||
<ParentEventCardComponent> | ||
<EventImage imgurl={url} alt={head} /> | ||
<CarouselHead>{head}</CarouselHead> | ||
<CarouselParagraph>{desc}</CarouselParagraph> | ||
<div className='flex justify-end mt-16'> | ||
<CarouselButton>REGISTER</CarouselButton> | ||
</div> | ||
</ParentEventCardComponent> | ||
</> | ||
); | ||
}; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/eventsCaraousal/parent.jsx → ...tsCarousel/eventCardComponents/Parent.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/components/eventsCarousel/eventCardComponents/eventCard.style.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import tw from 'twin.macro'; | ||
import styled from 'styled-components'; | ||
import { PrimaryButton } from '@/components/shared/Typography/Buttons'; | ||
import { Heading2 } from '@/components/shared/Typography/Headings'; | ||
import { SmallParagraph } from '@/components/shared/Typography/Paragraphs'; | ||
|
||
export const CarouselButton = styled(PrimaryButton)` | ||
${tw`w-[125.89px] h-[42.94px] flex justify-center items-center text-black font-share_tech rounded-[7.59px]`} | ||
`; | ||
|
||
export const CarouselHead = styled(Heading2)` | ||
${tw`font-bold `} | ||
`; | ||
|
||
export const CarouselParagraph = styled(SmallParagraph)` | ||
${tw`max-w-[414.1px] h-[76px] font-montserrat text-[rgba(224, 229, 237, 0.75)] mt-5 text-[12.66px] font-[400] leading-[18.99px] text-left flex text-wrap max-w-[500px]`} | ||
`; |
4 changes: 2 additions & 2 deletions
4
src/components/eventsCaraousal/main.jsx → .../eventsCarousel/layoutComponents/Main.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/components/eventsCaraousal/image.jsx → ...components/eventsCarousel/utils/Image.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ents/eventsCaraousal/paginationBullet.jsx → ...eventsCarousel/utils/PaginationBullet.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ponents/eventsCaraousal/sliderButtons.jsx → ...ts/eventsCarousel/utils/SliderButtons.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...mponents/eventsCaraousal/eventWrapper.jsx → ...rousel/wrapperComponents/EventWrapper.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters