Skip to content

Commit 81947f9

Browse files
authored
Merge pull request #10 from Craftserve/rozwader/pra-40-sekcja-hero
Tasks review
2 parents 5193d63 + 9edfbdd commit 81947f9

File tree

25 files changed

+375
-100
lines changed

25 files changed

+375
-100
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<title>Vitresoft</title>
1414
</head>
1515
<body>
16-
<div id="root"></div>
16+
<div id="root" style="width: 100%"></div>
1717
<script type="module" src="/src/main.tsx"></script>
1818
</body>
1919
</html>

src/App.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ function App() {
99
globalStyles();
1010

1111
return (
12-
<>
13-
<Routes>
14-
<Route path="/" element={<HeroScreen />} />
15-
<Route path="/whyus" element={<WhyusScreen />} />
16-
</Routes>
17-
</>
12+
<Routes>
13+
<Route path="/" element={<HeroScreen />} />
14+
<Route path="/whyus" element={<WhyusScreen />} />
15+
</Routes>
1816
);
1917
}
2018

src/i18n/en.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Join Us"
44
},
55
"Contact": {
6-
"title": "Contact Us"
6+
"title": "Contact"
77
},
88
"FindOut": {
99
"title": "Find Out"
@@ -13,5 +13,9 @@
1313
},
1414
"WhyUs": {
1515
"title": "Why Us"
16+
},
17+
"ExampleOffer": {
18+
"title": "Event Organization",
19+
"text": "from 2115 €"
1620
}
1721
}

src/i18n/i18n.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ const DEFAULT_LANG = "en-US";
88

99
const userLang = navigator.language || DEFAULT_LANG;
1010
const resources = {
11-
"pl-PL": pl,
11+
"pl": pl,
1212
"en-US": en,
1313
"en-GB": en,
1414
};
15+
console.log(userLang);
1516

1617
i18n
1718
.use(initReactI18next) // passes i18n down to react-i18next

src/i18n/pl.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Dołącz do nas"
44
},
55
"Contact": {
6-
"title": "Zkontaktuj się"
6+
"title": "Skontaktuj się"
77
},
88
"FindOut": {
99
"title": "Dowiedz się"
@@ -13,5 +13,9 @@
1313
},
1414
"WhyUs": {
1515
"title": "Dlaczego my"
16+
},
17+
"ExampleOffer": {
18+
"title": "Organizacja Eventu",
19+
"text": "od 9000 pln"
1620
}
1721
}

src/modules/shared/components/box/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ interface Props {
1313
margin?: string;
1414
gap?: string;
1515
backgroundImage?: string;
16+
backgroundColor?: string;
17+
borderRadius?: string;
18+
position?: string;
1619
}
1720

1821
const Box = ({
@@ -27,14 +30,17 @@ const Box = ({
2730
margin,
2831
gap,
2932
backgroundImage,
33+
backgroundColor,
34+
borderRadius,
35+
position,
3036
}: Props) => {
3137
return (
3238
<StyledBox
3339
display={display}
3440
direction={direction}
3541
justifyContent={justifyContent}
3642
alignItems={alignItems}
37-
css={{ height, width, padding, margin, gap, backgroundImage }}
43+
css={{ height, width, padding, margin, gap, backgroundImage, backgroundColor, borderRadius, position }}
3844
>
3945
{children}
4046
</StyledBox>

src/modules/shared/components/box/style.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const StyledBox = styled("div", {
2626
start: { alignItems: "start" },
2727
center: { alignItems: "center" },
2828
end: { alignItems: "end" },
29+
spaceBetween: { justifyContent: "space-between"}
2930
},
3031
},
3132
});

src/modules/shared/components/button/style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const StyledButton = styled("button", {
1818
backgroundColor: "$black",
1919
color: "$border",
2020
fontWeight: "bolder",
21-
boxShadow: "0px 2px 6px black",
21+
boxShadow: "0px 6px 5px rgba(0, 0, 0, 0.33)",
2222

2323
"&:hover": {
2424
background: "#0c0c0cee",

src/modules/shared/components/card/index.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { CardVariants } from "./style";
55
interface Props {
66
children: string | React.ReactNode | React.ReactNode[];
77
variant: CardVariants["variant"];
8-
title: string;
8+
title?: string;
99
height: string;
1010
width: string;
1111
backgroundColor?: string;
@@ -15,7 +15,14 @@ interface Props {
1515

1616
const Card = ({ children, variant, title, height, width, backgroundColor, color, margin }: Props) => {
1717
return (
18-
<StyledCard variant={variant} css={{ height, width, backgroundColor, color, margin }}>
18+
<StyledCard variant={variant} css={{
19+
height,
20+
width,
21+
backgroundColor,
22+
color,
23+
margin,
24+
}}
25+
>
1926
<Box
2027
display="flex"
2128
direction="row"
@@ -39,10 +46,12 @@ const Card = ({ children, variant, title, height, width, backgroundColor, color,
3946
<StyledCircleIcon color="danger" />
4047
</Box>
4148
</Box>
42-
43-
<Box display="flex" width="100%" margin="0px 0px 15px 0px">
44-
<StyledTitle>{title}</StyledTitle>
45-
</Box>
49+
{title && (
50+
<Box display="flex" width="100%" margin="0px 0px 15px 0px">
51+
<StyledTitle>{title}</StyledTitle>
52+
</Box>
53+
)}
54+
4655
<Box>{children}</Box>
4756
</StyledCard>
4857
);

src/modules/shared/components/card/style.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,29 @@ export const StyledCard = styled("div", {
88
padding: "0px 20px 30px 20px",
99
fontSize: "$md",
1010
border: "2.5px solid ",
11-
overflowY: "auto",
11+
overflowY: "hidden",
1212
backdropFilter: "blur(32px)",
13+
boxShadow: "0px 10px 5px rgba(0,0,0,0.1)",
1314

1415
variants: {
1516
variant: {
1617
light: {
17-
backgroundColor: "#E1E6F14D",
18+
backgroundColor: "rgba(225, 230, 241, 0.3)",
1819
color: "$black",
1920
borderColor: "#E5E5E533",
2021
},
2122
dark: {
22-
backgroundColor: "#0C0C0C59",
23+
backgroundColor: `$black80`,
2324
color: "white",
2425
borderColor: "#E5E5E533",
2526
},
2627
},
2728
},
29+
30+
"@sm": {
31+
width: "100%",
32+
height: "100%",
33+
}
2834
});
2935

3036
export const StyledCircleIcon = styled("div", {
@@ -48,6 +54,7 @@ export const StyledTitle = styled("span", {
4854
margin: "0",
4955
lineHeight: "24px",
5056
textAlign: "left",
57+
marginTop: "5px",
5158
});
5259

5360
export type CardVariants = Stitches.VariantProps<typeof StyledCard>;

0 commit comments

Comments
 (0)