Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ALGLAVE Ivan
Drinkpedia
Commits
eec234d3
Commit
eec234d3
authored
Nov 23, 2020
by
ALGLAVE Ivan
Browse files
Initial commit
parents
Changes
24
Show whitespace changes
Inline
Side-by-side
Photos/Tipunch.jpg
0 → 100644
View file @
eec234d3
15 KB
RecipeView.php
0 → 100644
View file @
eec234d3
<!-- HTML Fragment to display a recipe -->
<head>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/RecipeView.css"
>
</head>
<body>
<?php
include
"Donnees.inc.php"
;
$id_recipe
=
$_GET
[
'id_recipe'
];
$recipe
=
$Recettes
[
$id_recipe
];
$r_name
=
$recipe
[
'titre'
];
$r_ingredients
=
$recipe
[
'ingredients'
];
$r_recipe
=
$recipe
[
'preparation'
];
?>
<div>
<span>
<h1>
<?php
echo
$r_name
;
?>
</h1>
<h2>
Ingrédients :
</h2>
<ul>
<?php
$ingredients
=
explode
(
'|'
,
$r_ingredients
);
foreach
(
$ingredients
as
$ing
)
{
echo
'<li>'
.
$ing
.
'</li>'
;
}
?>
</ul>
<h2>
Préparation :
</h2>
<p>
<?php
echo
$r_recipe
?>
</p>
</span>
</div>
</body>
\ No newline at end of file
css/Index.css
0 → 100644
View file @
eec234d3
*
{
margin
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
}
body
{
background
:
lightblue
;
width
:
100vw
;
}
#content
{
width
:
100%
;
}
#content
.blur
{
filter
:
blur
(
5px
);
}
#BlurredElementCenteredContainer
{
width
:
100vw
;
height
:
100vh
;
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
1
;
display
:
none
;
justify-content
:
center
;
align-items
:
center
;
}
#BlurredElementCenteredContainer
.active
{
display
:
flex
;
}
#BlurredElementCenteredChildContainer
{
border
:
none
;
width
:
75%
;
max-height
:
90%
;
overflow
:
auto
;
}
#BlurredElementCenteredClose
{
position
:
absolute
;
top
:
10px
;
right
:
10px
;
text-shadow
:
0px
0px
10px
black
;
border-color
:
transparent
;
background
:
transparent
;
font-size
:
x-large
;
}
iframe
{
width
:
75vw
;
height
:
90vh
;
padding
:
20px
;
border-radius
:
5px
;
background-color
:
white
;
border-color
:
black
;
border-width
:
1px
;
overflow
:
auto
;
position
:
relative
;
border-radius
:
5px
;
box-shadow
:
0px
0px
50px
5px
black
;
}
\ No newline at end of file
css/RecipeView.css
0 → 100644
View file @
eec234d3
body
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
\ No newline at end of file
Prev
1
2
Next
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