@@ -6,34 +6,76 @@ pub fn ProjectIntroduction(
66 #[ prop( into) ] project_summary : String ,
77 #[ prop( into) ] project_what : String ,
88 #[ prop( into) ] project_why : String ,
9+ #[ prop( into, optional) ] small_image_url : String ,
10+ #[ prop( into, optional) ] big_image_url : String ,
911) -> impl IntoView {
1012 view ! {
11- <section
12- class="background_primary"
13- style="
14- padding: 120px 120px 120px 0;
15- "
16- >
13+ <section class="background_primary" >
1714 <div class="flex flex-row gap-[80px]" >
18- { /* Left Column */ }
19- <div class="flex flex-col items-start" style="width: 1035px; height: 930px; position: relative; margin-left: 0; padding-left: 0;" >
15+ { /* Left Column: Big Picture with Overlayed Text and Small Image */ }
16+ <div
17+ class="relative"
18+ style="
19+ width: 1035px;
20+ height: 930px;
21+ margin-left: 0;
22+ padding-left: 0;
23+ flex-shrink: 0;
24+ position: relative;
25+ display: flex;
26+ align-items: center;
27+ justify-content: flex-start;
28+ "
29+ >
30+ { /* Big Picture */ }
31+ <img
32+ src={ big_image_url}
33+ alt="Project Main"
34+ style="
35+ width: 1035px;
36+ height: 930px;
37+ object-fit: cover;
38+ display: block;
39+ border-top-right-radius: 100px;
40+ border-bottom-right-radius: 100px;
41+ "
42+ />
43+ { /* Overlayed Text and Small Picture */ }
2044 <div
2145 style="
2246 position: absolute;
2347 top: 50%;
24- left: 50%;
25- transform: translate(-50%, -50%);
26- z-index: 10;
27- text-align: center;
48+ left: 0;
49+ transform: translateY(-50%);
50+ z-index: 2;
51+ text-align: left;
52+ width: 90%;
53+ padding-left: 60px;
54+ display: flex;
55+ flex-direction: column;
56+ align-items: flex-start;
2857 "
2958 >
59+ { /* Small Picture aligned with project title and 60px above */ }
60+ <img
61+ src={ small_image_url}
62+ alt="Project Logo"
63+ style="
64+ width: 102px;
65+ height: 102px;
66+ object-fit: contain;
67+ margin-bottom: 60px;
68+ margin-left: 0;
69+ "
70+ />
3071 <span
3172 class="h1"
3273 style="
3374 display: block;
3475 color: white;
35- text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
3676 margin-bottom: 10px;
77+ word-break: break-word;
78+ text-align: left;
3779 "
3880 >
3981 { project_title}
@@ -43,25 +85,13 @@ pub fn ProjectIntroduction(
4385 style="
4486 display: block;
4587 color: white;
46- text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
88+ word-break: break-word;
89+ text-align: left;
4790 "
4891 >
4992 { project_summary}
5093 </span>
5194 </div>
52- <picture style="width: 100%; height: 100%;" >
53- <source srcset="/images/patina_header.svg" />
54- <img
55- src="/images/patina_header.svg"
56- alt="Patina Project"
57- class="icon"
58- style="
59- width: 100%;
60- height: 100%;
61- object-fit: contain;
62- "
63- />
64- </picture>
6595 </div>
6696 { /* Right Column */ }
6797 <div class="flex flex-col items-start" style="width: 600px;" >
@@ -77,7 +107,7 @@ pub fn ProjectIntroduction(
77107 </span>
78108 { /* WHAT description */ }
79109 <span
80- class="p1 "
110+ class="p2 "
81111 style="
82112 display: block;
83113 text-align: left;
@@ -97,7 +127,7 @@ pub fn ProjectIntroduction(
97127 </span>
98128 { /* WHY description */ }
99129 <span
100- class="p1 "
130+ class="p2 "
101131 style="
102132 display: block;
103133 text-align: left;
@@ -108,13 +138,15 @@ pub fn ProjectIntroduction(
108138 </div>
109139 </div>
110140 </section>
111- <div>
141+ <div class= "background_primary" >
112142 <span
113143 class="p1"
114144 style="
115145 display: block;
116146 text-align: left;
117147 padding-left: 20px;
148+ padding-top: 100px;
149+ padding-bottom: 20px;
118150 "
119151 >
120152 Repository Diagram
0 commit comments