Skip to content

Commit

Permalink
Merge pull request #118 from uspdev/issue117
Browse files Browse the repository at this point in the history
Skin do IFUSP
  • Loading branch information
sybgroff authored Apr 3, 2024
2 parents 6db266b + 8263852 commit 8c83bec
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
Binary file added resources/assets/skins/if/images/logo_if.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions resources/views/partials/skins/if/footer.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@section('skin_footer')
<!-- Footer uspdev -->
<footer>
<div class="text-center py-4">
<hr />
© {{ now()->year }} Instituto de Física - USP :: CCIF
</div>
</footer>
@endsection
39 changes: 39 additions & 0 deletions resources/views/partials/skins/if/header.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@section('skin_styles')
@parent {{-- devemos incluir o conteúdo existente --}}
<style>
/* #skin_header é o div pai */
#skin_header .container-fluid {
display: block;
height: 100px;
background-color: #FFFFFF;
font-size: 24px;
}
#skin_header .skin_logo img {
height: 80px;
margin: 10px;
}
#skin_header .skin_texto img {
margin-top: 8px;
height: 50px;
}
</style>
@endsection

@section('skin_header')
<!-- container vai ocultar em mobile para ganhar espaço -->
<div class="container-fluid d-none d-sm-block">
<div class="row">
<div class="col-md-12">
<a class="skin_logo float-left" href="{{ config('app.url')}}">
<img src="{{ asset('/vendor/laravel-usp-theme/skins/if/images/logo_if.png') }}" alt="Logo do Instituto de Física" />
</a>
<div class="float-left pr-1 pt-2">
</div>
</div>
</div>
</div>
</div>
@endsection
38 changes: 38 additions & 0 deletions resources/views/partials/skins/if/login_bar.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@section('skin_styles')
@parent {{-- devemos incluir o conteúdo existente --}}
<style>
/* #skin_login_bar é o div pai */
#skin_login_bar {
display: block;
/*background-color: #a19152; /*dourado*/
background-color: #004437; /*verde*/
font-size: 15px;
color: #FFFFFF;
padding-top: 5px;
margin-bottom: 5px;
}
/* .login_logout_link formata os links correspondentes que estão nos includes */
#skin_login_bar .login_logout_link {
color: #FFFFFF !important;
text-decoration: none !important;
font-weight: bold;
padding-left: 5px;
padding-right: 10px;
}
</style>
@endsection

@section('skin_login_bar')
{{-- esta faixa está fora de container para tocar as bordas da janela --}}
<div class="text-right">
@auth
{{ Auth::user()->name }} - {{ Auth::user()->email }} |
@include('laravel-usp-theme::partials.login_bar.logout_link')
@else
Não autenticado |
@include('laravel-usp-theme::partials.login_bar.login_link')
@endauth
</div>
@endsection

0 comments on commit 8c83bec

Please sign in to comment.