Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
EasyAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
pajasry committed Mar 1, 2020
1 parent 5524c00 commit 2f4aa17
Show file tree
Hide file tree
Showing 94 changed files with 63,551 additions and 50 deletions.
8 changes: 8 additions & 0 deletions .idea/symfony2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions config/packages/easy_admin.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#easy_admin:
# entities:
# # List the entity class name you want to manage
# - App\Entity\Product
# - App\Entity\Category
# - App\Entity\User
easy_admin:
site_name: '<a href="/">Niners Brutal Admin</a>'
user:
display_name: true
display_avatar: true
avatar_property_path: 'getAvatar'
entities:
- App\Entity\User
- App\Entity\Team
9 changes: 7 additions & 2 deletions config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ security:
entity:
class: App\Entity\User
property: email

role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
Expand All @@ -33,5 +38,5 @@ security:
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
- { path: ^/brutalAdmin, roles: ROLE_SUPER_ADMIN }
- { path: ^/admin, roles: ROLE_ADMIN }
2 changes: 1 addition & 1 deletion config/routes/easy_admin.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
easy_admin_bundle:
resource: '@EasyAdminBundle/Controller/EasyAdminController.php'
prefix: /admin
prefix: /brutalAdmin
type: annotation
16 changes: 16 additions & 0 deletions public/css/landing-page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

#intro{
height: 100vh;
padding-bottom: calc(10rem - 72px);
background: linear-gradient(to bottom,rgba(249,250,245,.7) 0,rgba(0,51,204,.9) 100%),url(../img/education.jpg.webp);
background-position-x: 0%;
background-position-y: 0%;
background-repeat: repeat, repeat;
background-attachment: scroll, scroll;
background-size: auto, auto;
background-position: center;
background-repeat: no-repeat;
background-attachment: scroll;
background-size: cover;

}
13 changes: 13 additions & 0 deletions public/css/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.login{
padding-bottom: calc(10rem - 72px);
background: linear-gradient(to bottom,rgba(249,250,245,.7) 25%,rgba(0,51,204,.9) 100%),url("https://images.wallpaperscraft.com/image/boy_girl_cheating_students_80454_1920x1080.jpg");
background-position-x: 0%;
background-position-y: 0%;
background-attachment: scroll, scroll;
background-size: auto, auto;
background-position: center;
background-repeat: no-repeat;
background-attachment: scroll;
background-size: cover;

}
13 changes: 13 additions & 0 deletions public/css/moodle_chapter.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.img-thumbnail:hover {
padding: 0.25rem;
background-color: #abe6da;
border: 0.125rem solid #dee2e6;
border-radius: 0.5rem;
max-width: 100%;
height: auto;
}

.img-thumbnail.selected{
background-color: #007bff;
}

43 changes: 43 additions & 0 deletions public/css/navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.bg-white {
background-color: #f9faf5 !important;
color: black!important;
}
.navbar-brand{
color: #294eb1!important;
}
.nav-item a{
color: #294eb1!important;
}
@media (min-width: 1000px) {
.nav-item a:hover{
transform: scale(1.2,1.2);
}
}
@media (max-width: 1199px) {
.nav-item a:hover{
padding-left: 10px!important;
}
}

.navbar-toggler{
font-size: 175%!important;
padding: 0;
margin:0;
}
.bg-blue a{
color:#80b3ff;
}
.bg-blue{
background: rgba(0,51,204,.9);
color: whitesmoke;
}
.btn-outline-blue {
color: #2c5af4;
border-color: #284c9b;
}

.btn-outline-blue:hover {
color: #fff;
background-color: #294eb1;
border-color: #294eb1;
}
Loading

0 comments on commit 2f4aa17

Please sign in to comment.