oddsgate-ds 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/cjs/index.js +5 -5
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/molecules/ProductCard/ProductCard.component.d.ts +4 -0
  4. package/dist/cjs/types/components/molecules/ProductCard/ProductCard.interface.d.ts +6 -0
  5. package/dist/{esm/types/components/molecules/ProjectCard/ProjectCard.stories.d.ts → cjs/types/components/molecules/ProductCard/ProductCard.stories.d.ts} +2 -2
  6. package/dist/cjs/types/components/molecules/ProductCard/ProductCard.theme.d.ts +4 -0
  7. package/dist/cjs/types/components/molecules/ProductCard/index.d.ts +1 -0
  8. package/dist/cjs/types/index.d.ts +1 -1
  9. package/dist/esm/index.js +5 -5
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/types/components/molecules/ProductCard/ProductCard.component.d.ts +4 -0
  12. package/dist/esm/types/components/molecules/ProductCard/ProductCard.interface.d.ts +6 -0
  13. package/dist/{cjs/types/components/molecules/ProjectCard/ProjectCard.stories.d.ts → esm/types/components/molecules/ProductCard/ProductCard.stories.d.ts} +2 -2
  14. package/dist/esm/types/components/molecules/ProductCard/ProductCard.theme.d.ts +4 -0
  15. package/dist/esm/types/components/molecules/ProductCard/index.d.ts +1 -0
  16. package/dist/esm/types/index.d.ts +1 -1
  17. package/dist/types.d.ts +4 -6
  18. package/package.json +1 -1
  19. package/src/components/atoms/Button/Button.theme.ts +2 -2
  20. package/src/components/atoms/SocialLinks/SocialLinks.theme.ts +1 -1
  21. package/src/components/molecules/ProductCard/ProductCard.component.tsx +31 -0
  22. package/src/components/molecules/ProductCard/ProductCard.interface.ts +6 -0
  23. package/src/components/molecules/ProductCard/ProductCard.stories.tsx +33 -0
  24. package/src/components/molecules/ProductCard/ProductCard.theme.ts +27 -0
  25. package/src/components/molecules/ProductCard/index.ts +1 -0
  26. package/src/components/organisms/CircularSlider/CircularSlider.component.tsx +2 -2
  27. package/src/components/organisms/CircularSlider/CircularSlider.theme.ts +4 -10
  28. package/src/index.ts +1 -1
  29. package/src/styles/utilities.ts +7 -0
  30. package/dist/cjs/types/components/molecules/ProjectCard/ProjectCard.component.d.ts +0 -4
  31. package/dist/cjs/types/components/molecules/ProjectCard/ProjectCard.interface.d.ts +0 -8
  32. package/dist/cjs/types/components/molecules/ProjectCard/ProjectCard.theme.d.ts +0 -3
  33. package/dist/cjs/types/components/molecules/ProjectCard/index.d.ts +0 -1
  34. package/dist/esm/types/components/molecules/ProjectCard/ProjectCard.component.d.ts +0 -4
  35. package/dist/esm/types/components/molecules/ProjectCard/ProjectCard.interface.d.ts +0 -8
  36. package/dist/esm/types/components/molecules/ProjectCard/ProjectCard.theme.d.ts +0 -3
  37. package/dist/esm/types/components/molecules/ProjectCard/index.d.ts +0 -1
  38. package/src/components/molecules/ProjectCard/ProjectCard.component.tsx +0 -45
  39. package/src/components/molecules/ProjectCard/ProjectCard.interface.ts +0 -8
  40. package/src/components/molecules/ProjectCard/ProjectCard.stories.tsx +0 -72
  41. package/src/components/molecules/ProjectCard/ProjectCard.theme.ts +0 -61
  42. package/src/components/molecules/ProjectCard/index.ts +0 -1
@@ -0,0 +1,4 @@
1
+ import { IProductCard } from './ProductCard.interface';
2
+ import React from 'react';
3
+ declare const ProductCard: ({ title, imageElement, description, className, style, ...props }: IProductCard) => React.JSX.Element;
4
+ export default ProductCard;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ICard } from '../Card/Card.interface';
3
+ export interface IProductCard extends ICard {
4
+ title?: string;
5
+ description?: string | React.ReactElement;
6
+ }
@@ -1,5 +1,5 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
- import { IProjectCard } from './ProjectCard.interface';
2
+ import { IProductCard } from './ProductCard.interface';
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
4
4
  export default _default;
5
- export declare const Simple: StoryObj<IProjectCard>;
5
+ export declare const Simple: StoryObj<IProductCard>;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IProductCard } from './ProductCard.interface';
3
+ export declare const StyledProductCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IProductCard>> & string;
4
+ export declare const StyledProductCardWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IProductCard>> & string;
@@ -0,0 +1 @@
1
+ export { default } from "./ProductCard.component";
@@ -35,7 +35,7 @@ export { default as IconTitle } from './components/molecules/IconTitle';
35
35
  export { default as BlogCard } from './components/molecules/BlogCard';
36
36
  export { default as TeamCard } from './components/molecules/TeamCard';
37
37
  export { default as LogosCard } from './components/molecules/LogosCard';
38
- export { default as ProjectCard } from './components/molecules/ProjectCard';
38
+ export { default as ProductCard } from './components/molecules/ProductCard';
39
39
  export { default as Slider } from './components/organisms/Slider';
40
40
  export { default as Cover } from './components/organisms/Cover';
41
41
  export { default as Tabs } from './components/organisms/Tabs';
package/dist/types.d.ts CHANGED
@@ -511,14 +511,12 @@ interface ILogosCard {
511
511
 
512
512
  declare const LogosCard: ({ imageElement, title, className, style, ...props }: ILogosCard) => React__default.JSX.Element;
513
513
 
514
- interface IProjectCard extends ICard {
515
- category?: string;
514
+ interface IProductCard extends ICard {
516
515
  title?: string;
517
- buttonLabel?: string;
518
- linkElement?: React.ReactElement;
516
+ description?: string | React.ReactElement;
519
517
  }
520
518
 
521
- declare const ProjectCard: ({ variant, category, title, imageElement, linkElement, buttonLabel, ...props }: IProjectCard) => React__default.JSX.Element;
519
+ declare const ProductCard: ({ title, imageElement, description, className, style, ...props }: IProductCard) => React__default.JSX.Element;
522
520
 
523
521
  interface ISlider {
524
522
  $responsiveCSS?: string;
@@ -590,4 +588,4 @@ declare const GlobalStyles: React$1.NamedExoticComponent<styled_components.Execu
590
588
 
591
589
  declare function clickOutSideToClose(ref: React.RefObject<HTMLDivElement>, closeFunction: () => void): void;
592
590
 
593
- export { Accordion, AccordionItem, BlogCard, Button, CheckRadioField, Chip, CircularSlider, CloseButton, Column, Counter, Cover, Dropdown, DropdownItem, EmptyState, Flex, FormField, GlobalStyles, Heading, Icon, IconBox, IconTitle, ImageWrapper, Loader, LogosCard, Marquee, Modal, OffCanvas, PortalComponent, ProjectCard, Quote, RichText, Row, ScrollingNav, Separator, ShareModal, Slider, SocialLinks, Spacer, Tabs, TeamCard, Video, VideoEmbed, clickOutSideToClose, iconsList, variables };
591
+ export { Accordion, AccordionItem, BlogCard, Button, CheckRadioField, Chip, CircularSlider, CloseButton, Column, Counter, Cover, Dropdown, DropdownItem, EmptyState, Flex, FormField, GlobalStyles, Heading, Icon, IconBox, IconTitle, ImageWrapper, Loader, LogosCard, Marquee, Modal, OffCanvas, PortalComponent, ProductCard, Quote, RichText, Row, ScrollingNav, Separator, ShareModal, Slider, SocialLinks, Spacer, Tabs, TeamCard, Video, VideoEmbed, clickOutSideToClose, iconsList, variables };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -63,7 +63,7 @@ export const StyledButton = styled.a<IButtonSC>`
63
63
  ${fontSize('h5')};
64
64
  font-weight: 700;
65
65
  text-transform:uppercase;
66
- padding: 18px 26px;
66
+ padding: 10px 20px;
67
67
  border-radius: 50px;
68
68
 
69
69
  ${props.$mode === "light" ? `
@@ -99,7 +99,7 @@ export const StyledButton = styled.a<IButtonSC>`
99
99
  color: ${colors.secondary50};
100
100
 
101
101
  &:hover{
102
- color: ${colors.third50};
102
+ color: ${colors.primary50};
103
103
  }
104
104
  `}
105
105
  `;
@@ -4,7 +4,7 @@ import { ISocialLinks } from './SocialLinks.interface';
4
4
  import { colors } from '@/styles/variables';
5
5
 
6
6
  export const StyledSocialLinks = styled.ul<ISocialLinks>`
7
- display: flex;
7
+ display: inline-flex;
8
8
  align-items: center;
9
9
  gap: 12px;
10
10
 
@@ -0,0 +1,31 @@
1
+ import { StyledProductCard, StyledProductCardWrapper } from './ProductCard.theme'
2
+
3
+ import Heading from '@/components/atoms/Heading'
4
+ import { IProductCard } from './ProductCard.interface'
5
+ import ImageWrapper from '@/components/atoms/ImageWrapper'
6
+ import React from 'react'
7
+ import RichText from '@/components/atoms/RichText/RichText.component'
8
+
9
+ const ProductCard = ({
10
+ title,
11
+ imageElement,
12
+ description,
13
+ className,
14
+ style,
15
+ ...props
16
+ }: IProductCard) => {
17
+
18
+ return (
19
+ <StyledProductCard className={className} style={style}>
20
+ <StyledProductCardWrapper>
21
+ <Heading tag={'h3'} size={'h3'} className={'fw-bold'}>
22
+ {title}
23
+ </Heading>
24
+ {imageElement}
25
+ </StyledProductCardWrapper>
26
+ {description && <RichText tag='p' className='color-secondary50 mt-4'>{description}</RichText>}
27
+ </StyledProductCard>
28
+ )
29
+ }
30
+
31
+ export default ProductCard
@@ -0,0 +1,6 @@
1
+ import { ICard } from '../Card/Card.interface';
2
+
3
+ export interface IProductCard extends ICard {
4
+ title?: string
5
+ description?: string | React.ReactElement
6
+ }
@@ -0,0 +1,33 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import { IProductCard } from './ProductCard.interface'
4
+ import ProductCard from './ProductCard.component'
5
+ import React from 'react'
6
+
7
+ // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
8
+ export default {
9
+ title: 'Components/ProductCard',
10
+ component: ProductCard,
11
+ tags: ['autodocs']
12
+ } as Meta
13
+
14
+ const image = (
15
+ <img
16
+ width="100%"
17
+ height="100%"
18
+ sizes="100vw"
19
+ decoding="async"
20
+ src="/assets/placeholder.png"
21
+ alt="Empty state"
22
+ />
23
+ )
24
+
25
+ export const Simple: StoryObj<IProductCard> = {
26
+ render: args => <ProductCard {...args} style={{ maxWidth: '320px' }}></ProductCard>,
27
+ args: {
28
+ title: 'Lorem ipsum',
29
+ imageElement: image,
30
+ description:
31
+ 'Cras vel facilisis tellus, id iaculis risus. Vestibulum non mollis ipsum. Vestibulum faucibus nisl sit amet magna interdum tristique. Cras vel facilisis tellus, id iaculis risus. Vestibulum non mollis ipsum. Vestibulum faucibus nisl sit amet magna interdum tristique.',
32
+ }
33
+ }
@@ -0,0 +1,27 @@
1
+ import { colors, radius } from '@/styles/variables';
2
+ import styled, { css } from 'styled-components';
3
+
4
+ import { IProductCard } from './ProductCard.interface';
5
+
6
+ export const StyledProductCard = styled.div <IProductCard>`
7
+ text-align:center;
8
+
9
+ & picture{
10
+ width: 100%;
11
+ max-width: 10rem;
12
+
13
+ &img{
14
+ object-fit: contain;
15
+ }
16
+ }
17
+ `;
18
+
19
+ export const StyledProductCardWrapper = styled.div<IProductCard>`
20
+ display:flex;
21
+ flex-flow:column;
22
+ align-items: center;
23
+ gap: 1rem;
24
+ background-color: ${colors.primary50};
25
+ padding: 2rem;
26
+ border-radius: ${radius.md};
27
+ `;
@@ -0,0 +1 @@
1
+ export { default } from "./ProductCard.component";
@@ -101,14 +101,14 @@ const CircularSlider = ({
101
101
  }, 400);
102
102
 
103
103
  content && setSlideContent(content[currentSlide] as any)
104
- slides[currentSlide].classList.add('slides-holder__item_active');
104
+ slides[currentSlide].classList.add('active');
105
105
  slides[currentSlide].style.height = slides[currentSlide].style.width = slidesSize + 20 + 'px';
106
106
  };
107
107
  const removeStyle = () => {
108
108
  contentHolder?.current?.classList.remove('active');
109
109
 
110
110
  content && setSlideContent(content[currentSlide] as any)
111
- slides[currentSlide].classList.remove('slides-holder__item_active');
111
+ slides[currentSlide].classList.remove('active');
112
112
  slides[currentSlide].style.height = slides[currentSlide].style.width = slidesSize + 'px';
113
113
  };
114
114
 
@@ -3,12 +3,7 @@ import styled from 'styled-components';
3
3
 
4
4
  export const StyledCircularSlider = styled.div<ICircularSlider>`
5
5
  width: 100%;
6
- min-height: 100vh;
7
6
  overflow: hidden;
8
- display: flex;
9
- justify-content: center;
10
- align-items: flex-end;
11
-
12
7
  `;
13
8
 
14
9
  export const StyledCircularSliderWrapper = styled.div<ICircularSlider>`
@@ -17,8 +12,8 @@ export const StyledCircularSliderWrapper = styled.div<ICircularSlider>`
17
12
  justify-content: center;
18
13
  margin: 0 auto;
19
14
  margin-right: 0;
20
- padding: 20px 20px 0px 20px;
21
- transform: translateX(65%);
15
+ top: 50%;
16
+ transform: translate(65%, -50%);
22
17
  `;
23
18
 
24
19
  export const StyledCircularSliderSlides = styled.div<ICircularSlider>`
@@ -40,7 +35,7 @@ export const StyledCircularSliderSlide = styled.div<ICircularSlider>`
40
35
  pointer-events:none;
41
36
  }
42
37
 
43
- &.slides-holder__item_active{
38
+ &.active{
44
39
  filter: brightness(100%);
45
40
  }
46
41
  `;
@@ -54,13 +49,12 @@ export const StyledCircularSliderContent = styled.div<ICircularSlider>`
54
49
  text-align: center;
55
50
 
56
51
  opacity: 0;
57
- transform: translateY(10%);
52
+ transform: translateY(5%);
58
53
  transition: all 0.3s ease;
59
54
 
60
55
  &.active{
61
56
  opacity: 1;
62
57
  transform: translateY(-50%);
63
-
64
58
  }
65
59
  `;
66
60
 
package/src/index.ts CHANGED
@@ -41,7 +41,7 @@ export { default as IconTitle } from './components/molecules/IconTitle'
41
41
  export { default as BlogCard } from './components/molecules/BlogCard'
42
42
  export { default as TeamCard } from './components/molecules/TeamCard'
43
43
  export { default as LogosCard } from './components/molecules/LogosCard'
44
- export { default as ProjectCard } from './components/molecules/ProjectCard'
44
+ export { default as ProductCard } from './components/molecules/ProductCard'
45
45
  // //organisms
46
46
  export { default as Slider } from './components/organisms/Slider'
47
47
  export { default as Cover } from './components/organisms/Cover'
@@ -68,6 +68,7 @@ export const utilities: {
68
68
  values: {
69
69
  relative: "relative",
70
70
  absolute: "absolute",
71
+ sticky: "sticky",
71
72
  fixed: "fixed"
72
73
  },
73
74
  },
@@ -210,6 +211,12 @@ export const utilities: {
210
211
  class: "ms",
211
212
  values: spacers
212
213
  },
214
+ "negative-margin-start": {
215
+ responsive: true,
216
+ property: "margin-left",
217
+ class: "ms-neg",
218
+ values: spacesNegative
219
+ },
213
220
  "padding": {
214
221
  responsive: true,
215
222
  property: "padding",
@@ -1,4 +0,0 @@
1
- import { IProjectCard } from './ProjectCard.interface';
2
- import React from 'react';
3
- declare const ProjectCard: ({ variant, category, title, imageElement, linkElement, buttonLabel, ...props }: IProjectCard) => React.JSX.Element;
4
- export default ProjectCard;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ICard } from '../Card/Card.interface';
3
- export interface IProjectCard extends ICard {
4
- category?: string;
5
- title?: string;
6
- buttonLabel?: string;
7
- linkElement?: React.ReactElement;
8
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IProjectCard } from './ProjectCard.interface';
3
- export declare const StyledProjectCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Card/Card.interface").ICard, IProjectCard>> & string & Omit<({ variant, imageElement, children, className, style, ...props }: import("../Card/Card.interface").ICard) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
@@ -1 +0,0 @@
1
- export { default } from "./ProjectCard.component";
@@ -1,4 +0,0 @@
1
- import { IProjectCard } from './ProjectCard.interface';
2
- import React from 'react';
3
- declare const ProjectCard: ({ variant, category, title, imageElement, linkElement, buttonLabel, ...props }: IProjectCard) => React.JSX.Element;
4
- export default ProjectCard;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ICard } from '../Card/Card.interface';
3
- export interface IProjectCard extends ICard {
4
- category?: string;
5
- title?: string;
6
- buttonLabel?: string;
7
- linkElement?: React.ReactElement;
8
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IProjectCard } from './ProjectCard.interface';
3
- export declare const StyledProjectCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../Card/Card.interface").ICard, IProjectCard>> & string & Omit<({ variant, imageElement, children, className, style, ...props }: import("../Card/Card.interface").ICard) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
@@ -1 +0,0 @@
1
- export { default } from "./ProjectCard.component";
@@ -1,45 +0,0 @@
1
- import Button from '@/components/atoms/Button/Button.component'
2
- import Chip from '@/components/atoms/Chip/Chip.component'
3
- import Heading from '@/components/atoms/Heading'
4
- import { IProjectCard } from './ProjectCard.interface'
5
- import Icon from '@/components/atoms/Icon/Icon.component'
6
- import ImageWrapper from '@/components/atoms/ImageWrapper'
7
- import React from 'react'
8
- import Separator from '@/components/atoms/Separator/Separator.component'
9
- import { StyledProjectCard } from './ProjectCard.theme'
10
-
11
- const ProjectCard = ({
12
- variant,
13
- category,
14
- title,
15
- imageElement,
16
- linkElement,
17
- buttonLabel,
18
- ...props
19
- }: IProjectCard) => {
20
- return (
21
- <StyledProjectCard
22
- variant={variant}
23
- imageElement={
24
- <ImageWrapper aspectRatioHeight={variant === 'featured' ? 40 : 82}>
25
- {imageElement}
26
- </ImageWrapper>
27
- }
28
- {...props}
29
- >
30
- <div className="w-100">
31
- <div className="d-flex align-items-center justify-content-between mb-4">
32
- <Heading tag={'h3'} size={'h5'} className={'textEllipsis'}>
33
- {title}
34
- </Heading>
35
- <Icon icon="icon-forward-arrow"></Icon>
36
- </div>
37
-
38
- <Separator color="#fff" height="1px" />
39
- {linkElement}
40
- </div>
41
- </StyledProjectCard>
42
- )
43
- }
44
-
45
- export default ProjectCard
@@ -1,8 +0,0 @@
1
- import { ICard } from '../Card/Card.interface';
2
-
3
- export interface IProjectCard extends ICard {
4
- category?: string
5
- title?: string
6
- buttonLabel?: string,
7
- linkElement?: React.ReactElement
8
- }
@@ -1,72 +0,0 @@
1
- import { Column, Row } from './../../atoms/FlexGrid'
2
- import type { Meta, StoryObj } from '@storybook/react'
3
-
4
- import { IProjectCard } from './ProjectCard.interface'
5
- import ProjectCard from './ProjectCard.component'
6
- import React from 'react'
7
-
8
- // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
9
- export default {
10
- title: 'Components/ProjectCard',
11
- component: ProjectCard,
12
- tags: ['autodocs']
13
- } as Meta
14
-
15
- const image = (
16
- <img
17
- width="100%"
18
- height="100%"
19
- sizes="100vw"
20
- decoding="async"
21
- src="/assets/placeholder.png"
22
- alt="Empty state"
23
- />
24
- )
25
-
26
- export const Simple: StoryObj<IProjectCard> = {
27
- render: args => (
28
- <Row>
29
- <Column md={4}>
30
- <ProjectCard {...args}></ProjectCard>
31
- </Column>
32
- <Column md={4}>
33
- <ProjectCard {...args}></ProjectCard>
34
- </Column>
35
- <Column md={4}>
36
- <ProjectCard {...args}></ProjectCard>
37
- </Column>
38
-
39
- <Column md={6}>
40
- <ProjectCard variant="featured" {...args}></ProjectCard>
41
- </Column>
42
- <Column md={6}>
43
- <ProjectCard variant="featured" {...args}></ProjectCard>
44
- </Column>
45
-
46
- <Column md={4}>
47
- <ProjectCard {...args}></ProjectCard>
48
- </Column>
49
- <Column md={4}>
50
- <ProjectCard {...args}></ProjectCard>
51
- </Column>
52
- <Column md={4}>
53
- <ProjectCard {...args}></ProjectCard>
54
- </Column>
55
-
56
- <Column md={8}>
57
- <ProjectCard variant="featured" {...args}></ProjectCard>
58
- </Column>
59
-
60
- <Column md={4}>
61
- <ProjectCard {...args}></ProjectCard>
62
- </Column>
63
- </Row>
64
- ),
65
- args: {
66
- category: 'Document type',
67
- title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
68
- imageElement: image,
69
- buttonLabel: 'Download',
70
- linkElement: <a href="#" className="linker"></a>
71
- }
72
- }
@@ -1,61 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
-
3
- import Card from '../Card/Card.component';
4
- import { IProjectCard } from './ProjectCard.interface';
5
- import { colors } from '@/styles/variables';
6
-
7
- export const StyledProjectCard = styled(Card) <IProjectCard>`
8
- & picture{
9
- &:before{
10
- content: '';
11
- position: absolute;
12
- top: 0;
13
- left: 0;
14
- width: 100%;
15
- height: 100%;
16
- background: rgba(0,0,0,0.5);
17
- z-index: 1;
18
- }
19
- }
20
-
21
- & figcaption{
22
- position: absolute;
23
- top: 0;
24
- left: 0;
25
- width: 100%;
26
- height: 100%;
27
- display: flex;
28
- align-items: flex-end;
29
- padding: 1rem;
30
- color: ${colors.white};
31
- z-index: 2;
32
-
33
- & i{
34
- min-width: 3rem;
35
- height: 3rem;
36
- line-height: 3rem;
37
- font-size: 2.6rem;
38
-
39
- border-radius: 50px;
40
- color: ${colors.deepblue};
41
- background-color: ${colors.softgreen};
42
-
43
- transition: all 0.3s linear;
44
- transform: rotateZ(-45deg);
45
- transform-origin: center center;
46
- text-align: center;
47
-
48
- &::before{
49
- line-height: inherit;
50
- }
51
- }
52
- }
53
-
54
- &:hover{
55
- & figcaption{
56
- & i{
57
- transform: rotateZ(0);
58
- }
59
- }
60
- }
61
- `;
@@ -1 +0,0 @@
1
- export { default } from "./ProjectCard.component";