File tree Expand file tree Collapse file tree 6 files changed +22
-10
lines changed Expand file tree Collapse file tree 6 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const About = async () => {
9
9
const { collaborators : content } = await getContent ( [ "collaborators" ] ) ;
10
10
11
11
return (
12
- < Template >
12
+ < Template backThumb = { true } >
13
13
< Wrapper >
14
14
< Title > Colaboradores do Observatório da Caatinga</ Title >
15
15
< ContentWrapper >
Original file line number Diff line number Diff line change @@ -204,13 +204,12 @@ export const ContentContainer = styled.div`
204
204
width: 100%;
205
205
min-height: 100svh;
206
206
box-sizing: border-box;
207
- background-image: url("background.png");
208
207
background-size: 150vw;
209
208
background-repeat: repeat;
210
209
justify-content: space-between;
211
210
` ;
212
211
213
- export const Main = styled . main `
212
+ export const Main = styled . main < { backThumb : string } > `
214
213
display: flex;
215
214
flex-flow: column;
216
215
align-items: center;
@@ -219,9 +218,13 @@ export const Main = styled.main`
219
218
box-sizing: border-box;
220
219
transition: 0.3s;
221
220
222
- background-image: url("padrao-verde.png");
223
- background-size: 60vw;
224
- background-repeat: repeat;
221
+ background-image: url(${ ( { backThumb } ) =>
222
+ backThumb === "true" ? "background.png" : "padrao-verde.png" } );
223
+
224
+ background-size: ${ ( { backThumb } ) => backThumb === "false" && "60vw" } ;
225
+ background-repeat: ${ ( { backThumb } ) =>
226
+ backThumb === "true" ? "repeat-x" : "repeat" } ;
227
+ background-position: bottom;
225
228
` ;
226
229
227
230
export const Section = styled . section < { full ?: string } > `
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const TeamPage = async () => {
8
8
const data = await getContent ( [ "members" ] ) ;
9
9
10
10
return (
11
- < Template >
11
+ < Template backThumb = { true } >
12
12
< TeamMembersSection teamMembers = { data . members } />
13
13
</ Template >
14
14
) ;
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export const ModalWrapper = styled.div<{ retracted: string; position: string }>`
65
65
margin: auto 0;
66
66
transition: transform 0.5s ease-out;
67
67
background-color: ${ ( { theme } ) => theme . colors . white } ;
68
- background-image: url("background .png");
68
+ background-image: url("padrao-verde .png");
69
69
background-size: 50rem;
70
70
border-radius: 6px;
71
71
Original file line number Diff line number Diff line change 1
1
import HeaderSection from "@/components/Header/Section/HeaderSection" ;
2
2
import { Main } from "@/app/globalStyles" ;
3
3
import Footer from "@/components/Footer/Footer" ;
4
+ import React , { ReactNode } from "react" ;
4
5
5
- const HubTemplate = ( { children } : React . PropsWithChildren ) => {
6
+ const HubTemplate = ( {
7
+ children,
8
+ backThumb = false ,
9
+ } : {
10
+ children : ReactNode ;
11
+ backThumb ?: boolean ;
12
+ } ) => {
6
13
return (
7
14
< >
8
15
< HeaderSection />
9
- < Main id = "root" > { children } </ Main >
16
+ < Main id = "root" backThumb = { backThumb . toString ( ) } >
17
+ { children }
18
+ </ Main >
10
19
< Footer />
11
20
</ >
12
21
) ;
You can’t perform that action at this time.
0 commit comments