55 * @supported DESKTOP, MOBILE
66 * @file build_steps.tsx
77 * @created 2025-07-25
8- * @updated 2025-08-12
9- * @version 0.0.4
8+ * @updated 2025-08-22
9+ * @version 0.0.5
1010 */
1111
1212// Chakra dependencies.
@@ -19,17 +19,22 @@ import {useTranslation} from "react-i18next";
1919import solidExpertiseImage from "/assets/images/solid_expertise.webp" ;
2020import trustRelationImage from "/assets/images/trust_relation.webp" ;
2121import shortResultsImage from "/assets/images/short_results.webp" ;
22- import ProjectCard from "@/common/components/project_card.tsx" ;
2322import listenNeedImage from "/assets/images/listen_need.webp" ;
2423import { GLOBAL_LANG } from "@/common/i18n/localization.ts" ;
2524import Section from "@/common/components/section.tsx" ;
25+ import ProjectCard , {
26+ ProjectCardProps
27+ } from "@/common/components/project_card.tsx" ;
2628
2729// Displays company projects building steps.
2830export default function ProjectsBuildingSteps ( ) {
2931 // Attributes.
3032 const { t} = useTranslation < string , undefined > ( GLOBAL_LANG ) ;
33+ const commonProjectCardStyle : ProjectCardProps = {
34+ descriptionStyle : { textAlign : { base : "justify" , lg : "left" } }
35+ } ;
3136 const commonDualBoxesStyle : FlexProps = {
32- direction : { base : "column" , sm : "column" , md : "column" , lg : "row" } ,
37+ direction : { base : "column" , lg : "row" } ,
3338 gap : { base : 4 , sm : 5 , md : 6 } ,
3439 transition : "all .2s" ,
3540 width : "100%"
@@ -38,35 +43,32 @@ export default function ProjectsBuildingSteps () {
3843 // Builds tsx code.
3944 return < Section
4045 description = { t ( "projectsBuildingStepsDescription" ) }
46+ titleStyle = { { width : { base : "auto" , lg : "620px" } } }
4147 containerStyle = { { backgroundColor : "primary.50" } }
4248 title = { t ( "projectsBuildingStepsTitle" ) }
43- titleStyle = { {
44- width : { base : "auto" , sm : "auto" , md : "auto" , lg : "620px" }
45- } }
4649 descriptionStyle = { {
47- width : { base : "auto" , sm : "auto" , md : "auto" , lg : "620px" } ,
50+ width : { base : "auto" , lg : "620px" } ,
4851 textAlign : "center" ,
4952 color : "neutral.8"
5053 } }
5154 children = { < Flex
55+ direction = { { base : "column" , "2xl" : "row" } }
5256 gap = { { base : 4 , sm : 5 , md : 6 } }
5357 transition = "all .2s"
5458 marginTop = { 4 }
55- direction = { {
56- base : "column" , sm : "column" , md : "column" ,
57- lg : "column" , xl : "column" , "2xl" : "row"
58- } }
5959 >
6060 { /** Dual boxes */ }
6161 < Flex { ...commonDualBoxesStyle } >
6262 { /** Solid expertise */ }
6363 < ProjectCard
64+ { ...commonProjectCardStyle }
6465 description = { t ( "solidExpertiseDescription" ) }
6566 title = { t ( "solidExpertiseTitle" ) }
6667 imageUrl = { solidExpertiseImage }
6768 />
6869 { /** Listen your needs */ }
6970 < ProjectCard
71+ { ...commonProjectCardStyle }
7072 description = { t ( "listenNeedDescription" ) }
7173 title = { t ( "listenNeedTitle" ) }
7274 imageUrl = { listenNeedImage }
@@ -76,12 +78,14 @@ export default function ProjectsBuildingSteps () {
7678 < Flex { ...commonDualBoxesStyle } >
7779 { /** Trust relation */ }
7880 < ProjectCard
81+ { ...commonProjectCardStyle }
7982 description = { t ( "trustRelationDescription" ) }
8083 title = { t ( "trustRelationTitle" ) }
8184 imageUrl = { trustRelationImage }
8285 />
8386 { /** Short exploitable results */ }
8487 < ProjectCard
88+ { ...commonProjectCardStyle }
8589 description = { t ( "shortResultsDescription" ) }
8690 title = { t ( "shortResultsTitle" ) }
8791 imageUrl = { shortResultsImage }
0 commit comments