Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
Philippe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
Philippe
Commits
4477a771
Commit
4477a771
authored
3 years ago
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Spacing
parent
33458a32
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
5 deletions
+3
-5
BackHome.js
components/BackHome.js
+1
-1
NavLinks.js
components/NavLinks.js
+1
-1
index.js
pages/index.js
+1
-1
[id].js
pages/photos/[id].js
+0
-2
No files found.
components/BackHome.js
View file @
4477a771
...
@@ -3,7 +3,7 @@ import { Button, Text, Flex } from "@chakra-ui/react";
...
@@ -3,7 +3,7 @@ import { Button, Text, Flex } from "@chakra-ui/react";
function
BackHome
()
{
function
BackHome
()
{
return
(
return
(
<
Flex
p
x
=
"1rem"
justify
=
"center"
align
=
"center"
>
<
Flex
m
x
=
"1rem"
justify
=
"center"
align
=
"center"
>
<
Link
href
=
{
`/`
}
>
<
Link
href
=
{
`/`
}
>
<
Button
<
Button
as
=
"a"
as
=
"a"
...
...
This diff is collapsed.
Click to expand it.
components/NavLinks.js
View file @
4477a771
...
@@ -5,7 +5,7 @@ function NavLinks({ prev, next }) {
...
@@ -5,7 +5,7 @@ function NavLinks({ prev, next }) {
let
prevText
=
next
==
2
?
"Dernière"
:
"Précédente"
;
let
prevText
=
next
==
2
?
"Dernière"
:
"Précédente"
;
let
nextText
=
next
!=
1
?
"Suivante"
:
"Retour au début"
;
let
nextText
=
next
!=
1
?
"Suivante"
:
"Retour au début"
;
return
(
return
(
<
Center
p
=
"6"
justify
=
"space-between"
>
<
Center
m
=
"6"
justify
=
"space-between"
>
<
Link
href
=
{
"/photos/"
+
prev
}
>
<
Link
href
=
{
"/photos/"
+
prev
}
>
<
Button
<
Button
borderRadius
=
"full"
borderRadius
=
"full"
...
...
This diff is collapsed.
Click to expand it.
pages/index.js
View file @
4477a771
...
@@ -49,7 +49,7 @@ export default function Home({ data, placeholders }) {
...
@@ -49,7 +49,7 @@ export default function Home({ data, placeholders }) {
Philippe
Bureau
-
Galerie
Photo
Philippe
Bureau
-
Galerie
Photo
<
/Text
>
<
/Text
>
<
/Container
>
<
/Container
>
<
Wrap
px
=
"1rem"
spacing
=
{
"10px"
}
justify
=
"center"
>
<
Wrap
px
=
"1rem"
spacing
=
{
"10px"
}
mb
=
{
1
}
justify
=
"center"
>
{
photos
.
map
((
photo
)
=>
(
{
photos
.
map
((
photo
)
=>
(
<
WrapItem
<
WrapItem
key
=
{
"wrap-"
+
photo
.
id
}
key
=
{
"wrap-"
+
photo
.
id
}
...
...
This diff is collapsed.
Click to expand it.
pages/photos/[id].js
View file @
4477a771
...
@@ -87,8 +87,6 @@ export default function Photos({ photo, placeholder }) {
...
@@ -87,8 +87,6 @@ export default function Photos({ photo, placeholder }) {
/>
/>
<
/Link
>
<
/Link
>
<
/Center
>
<
/Center
>
<
Divider
my
=
"1rem"
/>
<
NavLinks
prev
=
{
photo
.
prev
}
next
=
{
photo
.
next
}
/
>
<
NavLinks
prev
=
{
photo
.
prev
}
next
=
{
photo
.
next
}
/
>
<
/Box
>
<
/Box
>
);
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment