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
36211a30
Commit
36211a30
authored
3 years ago
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Credits, BackHome wip
parent
60ae2578
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
1 deletion
+121
-1
_app.js
pages/_app.js
+18
-1
credits.js
pages/credits.js
+81
-0
[id].js
pages/photos/[id].js
+22
-0
No files found.
pages/_app.js
View file @
36211a30
// pages/_app.js
// pages/_app.js
import
{
ChakraProvider
}
from
"@chakra-ui/react"
;
import
{
ChakraProvider
,
Divider
,
Box
,
Text
}
from
"@chakra-ui/react"
;
import
Link
from
"next/link"
;
function
MyApp
({
Component
,
pageProps
})
{
function
MyApp
({
Component
,
pageProps
})
{
return
(
return
(
<
ChakraProvider
>
<
ChakraProvider
>
<
Component
{...
pageProps
}
/
>
<
Component
{...
pageProps
}
/
>
<
Divider
/>
<
Box
m
=
"2"
>
<
Text
fontSize
=
"sm"
textAlign
=
"center"
>
Con
ç
u
par
{
" "
}
<
Link
href
=
"https://me.plnech.fr"
_hover
=
{{
textDecoration
:
"underline"
}}
>
Paul
-
Louis
Nech
<
/Link>{" "
}
grace
aux
contenus
partag
é
s
par
les
proches
de
Philippe
-
{
" "
}
<
Link
href
=
"/credits"
>
<
u
>
Cr
é
dits
<
/u
>
<
/Link
>
<
/Text
>
<
/Box
>
<
/ChakraProvider
>
<
/ChakraProvider
>
);
);
}
}
...
...
This diff is collapsed.
Click to expand it.
pages/credits.js
0 → 100644
View file @
36211a30
// pages/index.js
import
Head
from
"next/head"
;
import
{
Box
,
Container
,
Divider
,
Text
,
Wrap
,
WrapItem
}
from
"@chakra-ui/react"
;
import
Image
from
"next/image"
;
import
Link
from
"next/link"
;
export
async
function
getStaticProps
()
{
let
credits
=
[
{
title
:
"Famille et Amis"
,
text
:
"Pour tous ces bons moments et leurs photos/vidéos"
,
},
{
title
:
"Vercel"
,
text
:
"Pour l'hébergement de ces pages"
,
link
:
"vercel.com"
,
},
{
title
:
"Next.JS"
,
text
:
"Utilisé pour construire le site"
,
link
:
"nextjs.org"
},
];
return
{
props
:
{
credits
,
},
};
}
export
default
function
Credits
({
credits
})
{
return
(
<
div
>
<
Head
>
<
title
>
Philippe
Bureau
-
Cr
é
dits
<
/title
>
<
link
rel
=
"icon"
href
=
"/favicon.ico"
/>
<
Box
overflow
=
"hidden"
bg
=
"gray.100"
minH
=
"100vh"
>
<
Container
>
<
Text
color
=
"gray.700"
fontWeight
=
"semibold"
m
=
"1rem"
textAlign
=
"center"
textDecoration
=
"underline"
fontSize
=
{[
"5xl"
,
"5xl"
,
"6xl"
,
"6xl"
]}
>
Philippe
Bureau
-
Cr
é
dits
<
/Text
>
<
/Container
>
<
Wrap
px
=
"1rem"
spacing
=
{
"4px"
}
justify
=
"center"
>
{
credits
.
map
((
credit
)
=>
(
<
WrapItem
key
=
{
"wrap-"
+
credit
.
title
}
m
=
{
"30px"
}
bg
=
"white"
lineHeight
=
"0"
maxW
=
"sm"
borderWidth
=
"1px"
borderRadius
=
{
"10px"
}
>
<
Text
color
=
"gray.700"
fontWeight
=
"semibold"
fontSize
=
"2xl"
m
=
"1rem"
>
{
credit
.
title
}
<
/Text
>
<
br
/>
<
Text
color
=
"gray.500"
fontWeight
=
"semibold"
fontSize
=
"sm"
m
=
"1rem"
>
{
credit
.
text
}
<
/Text
>
<
/WrapItem
>
))}
<
/Wrap
>
<
/Box
>
<
/Head
>
<
/div
>
);
}
This diff is collapsed.
Click to expand it.
pages/photos/[id].js
View file @
36211a30
...
@@ -11,7 +11,11 @@ import {
...
@@ -11,7 +11,11 @@ import {
import
Image
from
"next/image"
;
import
Image
from
"next/image"
;
import
Head
from
"next/head"
;
import
Head
from
"next/head"
;
import
Link
from
"next/link"
;
import
Link
from
"next/link"
;
<<<<<<<
HEAD
import
BackHome
from
"../../components/BackHome"
;
import
BackHome
from
"../../components/BackHome"
;
=======
import
BackHome
from
"components/Back"
;
>>>>>>>
ad87045
(
feat
:
Credits
,
BackHome
wip
)
import
{
InfoIcon
,
AtSignIcon
}
from
"@chakra-ui/icons"
;
import
{
InfoIcon
,
AtSignIcon
}
from
"@chakra-ui/icons"
;
// import { getPlaiceholder } `from "plaiceholder";
// import { getPlaiceholder } `from "plaiceholder";
...
@@ -84,6 +88,7 @@ export default function Photos({ photo, placeholder }) {
...
@@ -84,6 +88,7 @@ export default function Photos({ photo, placeholder }) {
<
/Head
>
<
/Head
>
<<<<<<<
HEAD
<<<<<<<
HEAD
<<<<<<<
HEAD
<
BackHome
/>
<
BackHome
/>
<
Divider
my
=
"1rem"
/>
<
Divider
my
=
"1rem"
/>
...
@@ -129,6 +134,23 @@ export default function Photos({ photo, placeholder }) {
...
@@ -129,6 +134,23 @@ export default function Photos({ photo, placeholder }) {
loading
=
"eager"
loading
=
"eager"
/>
/>
>>>>>>>
54109
d5
(
feat
:
Modulated
Links
)
>>>>>>>
54109
d5
(
feat
:
Modulated
Links
)
=======
<
BackHome
/>
<
Divider
my
=
"1rem"
/>
<
Center
>
<
a
href
=
{
pic
.
path
}
>
<
Image
src
=
{
pic
.
path
}
width
=
{
pic
.
dimensions
.
width
||
480
}
height
=
{
pic
.
dimensions
.
height
||
480
}
// objectFit="cover"
quality
=
{
80
}
priority
loading
=
"eager"
/>
<
/a
>
>>>>>>>
ad87045
(
feat
:
Credits
,
BackHome
wip
)
<
/Center
>
<
/Center
>
<
Divider
my
=
"1rem"
/>
<
Divider
my
=
"1rem"
/>
...
...
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