Skip to content

Commit 52b2661

Browse files
HaudinFlorenceSylvainCorlay
authored andcommittedAug 13, 2024
Try another rendering for the project page.
1 parent 39ab0f5 commit 52b2661

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed
 

‎src/components/projects/desktop/ProjectDesktop.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export default function ProjectDesktop({
77
if (project.reverse === "false") {
88
return (
99
<div className={"container" + " " + styles.project_container}>
10-
<div className={"row" + " " + "padding-none" + " " + "margin-none"}>
10+
<div className={"row" + " " + "padding-none" + " " + "margin-none"+" "+ styles.row_project}>
1111
<div
1212
className={
13-
"col col--6 col--offset-1" + " " + styles.col_project_text
13+
"col col--6" + " " + styles.col_project_text
1414
}
1515
>
1616
<div className={styles.project_title}>{project.title}</div>
@@ -20,15 +20,15 @@ export default function ProjectDesktop({
2020
</div>
2121
<div
2222
className={
23-
"col col--4" +
23+
"col col--5" +
2424
" " +
2525
"flex-full-centered" +
2626
" " +
2727
"padding-none" +
2828
" " +
2929
styles.col_project_picture_right
3030
}
31-
style={{ border: project.pictureBorderDesktop }}
31+
/*style={{ border: project.pictureBorderDesktop }}*/
3232
>
3333
<div className={styles.project_picture}></div>
3434
<img
@@ -43,16 +43,17 @@ export default function ProjectDesktop({
4343
} else if (project.reverse === "true") {
4444
return (
4545
<div className={"container" + " " + styles.project_container}>
46-
<div className={"row" + " " + "padding-none" + " " + "margin-none"}>
46+
<div className={"row" + " " + "padding-none" + " " + "margin-none" + " "+ styles.row_project}>
4747
<div
4848
className={
49-
"col col--4 col--offset-1" +
49+
"col col--5" +
5050
" " +
5151
"flex-full-centered" + " "+ "padding-none"+
5252
" " +
5353
styles.col_project_picture_left
5454
}
55-
style={{ border: project.pictureBorderDesktop }}
55+
/*style={{ border: project.pictureBorderDesktop }}*/
56+
style={{border: "Opx"}}
5657
>
5758
<div className={styles.project_picture}>
5859
<img

‎src/components/projects/styles.module.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,30 +111,36 @@ div .schedule_container {
111111
}
112112

113113
.project_description {
114-
padding: var(--ifm-spacing-md) var(--ifm-spacing-xl);
114+
/*padding: var(--ifm-spacing-md) var(--ifm-spacing-xl);*/
115115
text-align: center;
116116
}
117117

118118
.project_description p {
119119
color: var(--ifm-text-color-project-card);
120120
}
121121

122+
.row_project {
123+
background-color: var(--ifm-background-color-project-card);
124+
border-radius: 10px;
125+
box-shadow: 0px 0px 8px 1px #d0cb54;
126+
}
127+
122128
.col_project_text {
123129
background-color: var(--ifm-background-color-project-card);
124130
padding: var(--ifm-spacing-4xl) var(--ifm-spacing-3xl);
125131
border-radius: 10px;
126-
box-shadow: 0px 0px 8px 1px #d0cb54;
132+
/*box-shadow: 0px 0px 8px 1px #d0cb54;*/
127133
}
128134

129135
.col_project_picture_left {
130136
margin-right: var(--ifm-spacing-lg);
131-
border-radius: 10px;
132-
box-shadow: 0px 0px 8px 1px;
137+
/*border-radius: 10px;*/
138+
/*border: solid 2px;*/
133139
}
134140

135141
.col_project_picture_right {
136142
margin-left: var(--ifm-spacing-lg);
137-
box-shadow: 0px 0px 8px 1px;
143+
border-radius: 10px;
138144
}
139145

140146
.col_schedule {

‎src/css/custom.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
--ifm-background-color: white;
3232
--ifm-background-color-dark-mode: #1c1c16;
3333

34-
3534
--ifm-text-color: #1c1c16;
3635
--ifm-text-color-dark-mode: white;
3736

@@ -74,7 +73,10 @@
7473
--ifm-text-color-large-portrait-card-dark-mode: #1c1c16;
7574

7675
--ifm-background-color-project-card: var(--ifm-color-orange-light);
77-
--ifm-background-color-project-card-dark-mode: #1c1c16;
76+
--ifm-background-color-project-card-dark-mode:#1e1c00;
77+
78+
--ifm-text-color-project-card: #1c1c16;
79+
--ifm-text-color-project-card-dark-mode: white;
7880

7981
--ifm-color-text-on-primary-p1: #1c1c16;
8082
--ifm-color-text-on-primary-p1-dark-mode: black;

0 commit comments

Comments
 (0)
Please sign in to comment.