Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Atelier_1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HOHLER Bastien
Atelier_1
Commits
5e06ca7b
Commit
5e06ca7b
authored
3 years ago
by
BERNARD Hugo
Browse files
Options
Downloads
Plain Diff
Merge branch 'css' into 'main'
Css See merge request
!7
parents
531a17dd
ee206f1f
Branches
main
No related tags found
1 merge request
!7
Css
Pipeline
#6667
passed
3 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
css/style.css
+63
-0
63 additions, 0 deletions
css/style.css
js/main.js
+34
-1
34 additions, 1 deletion
js/main.js
signIn.html
+54
-0
54 additions, 0 deletions
signIn.html
with
151 additions
and
1 deletion
css/style.css
+
63
−
0
View file @
5e06ca7b
...
...
@@ -589,3 +589,66 @@ html body .content #list-toggle:checked + label::after {
.bg-white
{
background-color
:
white
;
}
#hidden1
{
height
:
0
;
overflow
:
hidden
;
transition
:
height
0.8s
ease
;
}
#hidden2
{
height
:
0
;
overflow
:
hidden
;
transition
:
height
0.8s
ease
;
}
#button_prod
,
#button_gerant
,
#button_login
{
border-radius
:
20px
;
border
:
1px
solid
#ff4b2b
;
background-color
:
#ff4b2b
;
color
:
white
;
font-size
:
12px
;
font-weight
:
bold
;
padding
:
12px
45px
;
letter-spacing
:
1px
;
text-transform
:
uppercase
;
transition
:
transform
80ms
ease-in
;
width
:
300px
;
}
.button_login
{
border-radius
:
20px
;
border
:
1px
solid
green
;
background-color
:
green
;
color
:
white
;
font-size
:
12px
;
font-weight
:
bold
;
padding
:
12px
45px
;
letter-spacing
:
1px
;
text-transform
:
uppercase
;
transition
:
transform
80ms
ease-in
;
}
.login
{
text-align
:
center
;
margin-top
:
10px
;
}
.formlogin
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
margin-top
:
20px
;
justify-content
:
space-evenly
;
font-size
:
20px
;
}
form
input
{
margin
:
10px
;
border-radius
:
10px
;
width
:
200px
;
height
:
30px
;
text-align
:
center
;
}
This diff is collapsed.
Click to expand it.
js/main.js
+
34
−
1
View file @
5e06ca7b
...
...
@@ -4,4 +4,37 @@ function plus(input){
function
minus
(
input
){
input
.
value
=
Math
.
max
(
parseInt
(
input
.
value
)
-
1
,
0
)
}
\ No newline at end of file
}
but1
=
document
.
getElementById
(
"
button_prod
"
);
but2
=
document
.
getElementById
(
"
button_gerant
"
);
but1
.
clicked
=
false
;
but2
.
clicked
=
false
;
but1
.
onclick
=
function
()
{
this
.
clicked
=
!
this
.
clicked
;
let
target
=
document
.
getElementById
(
'
hidden1
'
);
if
(
this
.
clicked
)
{
if
(
but2
.
clicked
)
{
but2
.
click
();
}
target
.
style
.
height
=
target
.
scrollHeight
+
"
px
"
;
}
else
{
target
.
style
.
height
=
0
;
}
}
but2
.
onclick
=
function
()
{
this
.
clicked
=
!
this
.
clicked
;
let
target
=
document
.
getElementById
(
'
hidden2
'
);
if
(
this
.
clicked
)
{
if
(
but1
.
clicked
)
{
but1
.
click
();
}
target
.
style
.
height
=
target
.
scrollHeight
+
"
px
"
;
}
else
{
target
.
style
.
height
=
0
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
signIn.html
0 → 100644
+
54
−
0
View file @
5e06ca7b
<!DOCTYPE html>
<html
lang=
"fr"
dir=
"ltr"
>
<head>
<meta
charset=
"utf-8"
>
<link
rel=
"stylesheet"
href=
"./css/style.css"
>
<link
rel=
"stylesheet"
href=
"https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css"
>
<link
rel=
"stylesheet"
href=
"https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity=
"sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin=
"anonymous"
/>
<script
src=
"./js/main.js"
defer
></script>
<title>
Login
</title>
</head>
<body>
<header>
<nav>
<label
class=
"logo"
>
LeHangar
</label>
</nav>
</header>
<h1
class=
"titreListe"
>
Connexion
</h1>
<div
class=
"login"
>
<h3>
Vous êtes...
</h3>
<button
id=
'button_prod'
>
Producteur
</button>
<button
id=
'button_gerant'
>
Gérant de coopérative
</button>
</div>
<form
id=
'hidden1'
action=
"authentication.php"
method=
"post"
>
<div
class=
"formlogin"
>
<label
for=
"uname"
><b>
Username
</b></label>
<input
type=
"text"
placeholder=
"Enter Username"
name=
"uname"
required
>
<label
for=
"psw"
><b>
Password
</b></label>
<input
type=
"password"
placeholder=
"Enter Password"
name=
"psw"
required
>
<button
class=
"button_login"
type=
"submit"
>
Login
</button>
</div>
</form>
<form
id=
'hidden2'
action=
"authentication.php"
method=
"post"
>
<div
class=
"formlogin"
>
<label
for=
"uname"
><b>
Username
</b></label>
<input
type=
"text"
placeholder=
"Enter Username"
name=
"uname"
required
>
<label
for=
"psw"
><b>
Password
</b></label>
<input
type=
"password"
placeholder=
"Enter Password"
name=
"psw"
required
>
<button
class=
"button_login"
type=
"submit"
>
Login
</button>
</div>
</form>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment