Skip to content

Commit

Permalink
Add username and links
Browse files Browse the repository at this point in the history
  • Loading branch information
bartjroos committed Nov 15, 2017
1 parent ca14f6b commit a5e40b2
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 8 deletions.
31 changes: 28 additions & 3 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -8355,15 +8355,40 @@ body {
background: linear-gradient(to right, #71B280, #134E5E);
}

h1 {
margin: 15px;
header {
margin: 0 15px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
font-size: 16px;
}

header > * {
margin: 15px 0;
}

.user {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}

.user,
.user a {
color: white;
}

.board {
display: grid;
grid-gap: 15px;
grid-template-columns: 1fr 1fr;
margin: 0 15px 0 15px;
margin: 0 15px;
}

.category {
Expand Down
23 changes: 19 additions & 4 deletions resources/assets/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,31 @@ body{
background: linear-gradient(to right, #71B280, #134E5E);
}

h1{
margin: 15px;
header{
margin: 0 15px;
display: flex;
justify-content: space-between;
font-size: 16px;
}

header > *{
margin: 15px 0;
}

.user{
display: flex;
align-items: center;
}

.user, .user a{
color: white;
}

.board{
display: grid;
grid-gap: 15px;
grid-template-columns: 1fr 1fr;

margin: 0 15px 0 15px;
margin: 0 15px;
}

.category{
Expand Down
12 changes: 11 additions & 1 deletion resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@
<title>Whiteboard</title>
</head>
<body>
<h1>Whiteboard</h1>
<header>
<h1>Whiteboard</h1>
<div class="user">
{{ Auth::user()->name }} (
@if(Auth::user()->type == 'teacher')
<a href="/admin">admin</a>&nbsp;|&nbsp;
@endif
<a href="https://login.amo.rocks/logout">uitloggen</a>
)
</div>
</header>
@yield('content')
@stack('scripts')
</body>
Expand Down

0 comments on commit a5e40b2

Please sign in to comment.