Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Projet tutoré S5
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
Container 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
DUCRUET THIBAULT p2306959
Projet tutoré S5
Commits
2892cce1
Commit
2892cce1
authored
1 year ago
by
Pascalou
Browse files
Options
Downloads
Patches
Plain Diff
rendu bo le header
parent
991f44dd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/assets/main.css
+8
-7
8 additions, 7 deletions
frontend/src/assets/main.css
frontend/src/components/Header.vue
+55
-8
55 additions, 8 deletions
frontend/src/components/Header.vue
with
63 additions
and
15 deletions
frontend/src/assets/main.css
+
8
−
7
View file @
2892cce1
@import
'./base.css'
;
#app
{
max-width
:
1280px
;
margin
:
0
auto
;
padding
:
2rem
;
/*
max-width: 1280px;
*/
/*
margin: 0 auto;
*/
/*
padding: 2rem;
*/
font-weight
:
normal
;
}
...
...
@@ -23,13 +23,14 @@ a,
@media
(
min-width
:
1024px
)
{
body
{
display
:
flex
;
/*
display: flex;
*/
place-items
:
center
;
}
#app
{
display
:
grid
;
grid-template-columns
:
1
fr
1
fr
;
padding
:
0
2rem
;
/*
display: grid;
*/
/*
grid-template-columns: 1fr 1fr;
*/
/*
padding: 0 2rem;
*/
}
}
This diff is collapsed.
Click to expand it.
frontend/src/components/Header.vue
+
55
−
8
View file @
2892cce1
...
...
@@ -47,17 +47,64 @@ onMounted(() => {
<
template
>
<header>
<router-link
to=
"/"
>
<div>
Projet S5
</div>
</router-link>
<nav>
<router-link
v-if=
"!isConnected"
to=
"/inscription"
>
Inscription
</router-link>
<router-link
v-if=
"!isConnected"
to=
"/connexion"
>
Connexion
</router-link>
<router-link
v-if=
"isConnected"
to=
"/account"
>
Mon compte :
{{
firstname
}}
</router-link>
<button
v-if=
"isConnected"
@
click=
"logout"
>
Déconnexion
</button>
<ul>
<li
class =
"gauche"
>
<router-link
to=
"/"
>
Projet S5
</router-link></li>
<li
class =
"droite"
><router-link
v-if=
"!isConnected"
to=
"/inscription"
>
Inscription
</router-link></li>
<li
class =
"droite"
><router-link
v-if=
"!isConnected"
to=
"/connexion"
>
Connexion
</router-link></li>
<li
class =
"droite"
><router-link
v-if=
"isConnected"
to=
"/account"
>
Mon compte :
{{
firstname
}}
</router-link></li>
<li
class =
"droite"
><a
v-if=
"isConnected"
@
click=
"logout"
>
Déconnexion
</a></li>
</ul>
</nav>
</header>
</
template
>
<
style
scoped
></
style
>
\ No newline at end of file
<
style
scoped
>
header
{
padding
:
0
;
margin
:
auto
;
}
ul
{
list-style-type
:
none
;
margin
:
0
;
padding
:
0
;
overflow
:
hidden
;
background-color
:
#333
;
}
li
.gauche
{
float
:
left
;
}
li
.droite
{
float
:
right
;
}
li
.gauche
a
{
font-weight
:
bold
;
}
li
a
{
display
:
block
;
color
:
white
;
text-align
:
center
;
padding
:
14px
16px
;
text-decoration
:
none
;
}
/* Change the link color to #111 (black) on hover */
li
a
:hover
{
background-color
:
#111
;
}
button
{
display
:
block
;
color
:
white
;
text-align
:
center
;
padding
:
14px
16px
;
text-decoration
:
none
;
}
</
style
>
\ 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