Browse Source

Adaptations diverses avant déploiement

master
Guillaume 3 years ago
parent
commit
3a6b1dcc59
9 changed files with 47 additions and 46 deletions
  1. +0
    -4
      config/routes.yaml
  2. +1
    -1
      public/assets/sass/_home.scss
  3. +26
    -26
      public/assets/stylesheets/screen.css
  4. +7
    -10
      src/Controller/Admin/DashboardController.php
  5. +2
    -2
      src/Controller/Admin/PageCrudController.php
  6. +1
    -0
      templates/frontend/base.html.twig
  7. +9
    -2
      templates/frontend/home.html.twig
  8. +1
    -1
      templates/page/page.html.twig
  9. +0
    -0
      translations/admin.fr.yaml

+ 0
- 4
config/routes.yaml View File



app_homepage: app_homepage:
path: / path: /
defaults: { _controller: App\Controller\DefaultController::index , _locale: fr }

app_home:
path: /home
controller: App\Controller\Frontend\DefaultController:home controller: App\Controller\Frontend\DefaultController:home


app_legal_mention: app_legal_mention:

+ 1
- 1
public/assets/sass/_home.scss View File

#app_home {
#app_homepage {
padding-bottom: 30px; padding-bottom: 30px;
padding-top: 30px; padding-top: 30px;



+ 26
- 26
public/assets/stylesheets/screen.css View File

* In this file you should write your main styles. (or centralize your imports) * In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent: * Import this file using the following HTML or equivalent:
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */ * <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
/* line 5, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 5, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
html, body, div, span, applet, object, iframe, html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, a, abbr, acronym, address, big, cite, code,
vertical-align: baseline; vertical-align: baseline;
} }


/* line 22, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 22, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
html { html {
line-height: 1; line-height: 1;
} }


/* line 24, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 24, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
ol, ul { ol, ul {
list-style: none; list-style: none;
} }


/* line 26, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 26, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
} }


/* line 28, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 28, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
caption, th, td { caption, th, td {
text-align: left; text-align: left;
font-weight: normal; font-weight: normal;
vertical-align: middle; vertical-align: middle;
} }


/* line 30, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 30, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
q, blockquote { q, blockquote {
quotes: none; quotes: none;
} }
/* line 103, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 103, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
q:before, q:after, blockquote:before, blockquote:after { q:before, q:after, blockquote:before, blockquote:after {
content: ""; content: "";
content: none; content: none;
} }


/* line 32, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 32, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
a img { a img {
border: none; border: none;
} }


/* line 116, ../../../../../lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
/* line 116, ../../../../../../../var/lib/gems/2.7.0/gems/compass-core-1.0.3/stylesheets/compass/reset/_utilities.scss */
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
display: block; display: block;
} }


/* line 1, ../sass/_home.scss */ /* line 1, ../sass/_home.scss */
#app_home {
#app_homepage {
padding-bottom: 30px; padding-bottom: 30px;
padding-top: 30px; padding-top: 30px;
} }
/* line 6, ../sass/_home.scss */ /* line 6, ../sass/_home.scss */
#app_home header .logo-aac {
#app_homepage header .logo-aac {
width: 80%; width: 80%;
} }
/* line 10, ../sass/_home.scss */ /* line 10, ../sass/_home.scss */
#app_home header .personnages-acc {
#app_homepage header .personnages-acc {
width: 26%; width: 26%;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
} }
/* line 16, ../sass/_home.scss */ /* line 16, ../sass/_home.scss */
#app_home header h1 {
#app_homepage header h1 {
color: #aab769; color: #aab769;
font-size: 32px; font-size: 32px;
font-family: dinbold; font-family: dinbold;
width: 100%; width: 100%;
} }
/* line 24, ../sass/_home.scss */ /* line 24, ../sass/_home.scss */
#app_home header h1 .main-title {
#app_homepage header h1 .main-title {
margin-left: 26%; margin-left: 26%;
display: inline-block; display: inline-block;
width: 70%; width: 70%;
} }
/* line 30, ../sass/_home.scss */ /* line 30, ../sass/_home.scss */
#app_home header h1 .aac {
#app_homepage header h1 .aac {
color: #dc5b2f; color: #dc5b2f;
} }
/* line 36, ../sass/_home.scss */ /* line 36, ../sass/_home.scss */
#app_home h2 {
#app_homepage h2 {
color: #568a73; color: #568a73;
font-size: 30px; font-size: 30px;
margin-top: 80px; margin-top: 80px;
font-family: dinbold; font-family: dinbold;
} }
/* line 45, ../sass/_home.scss */ /* line 45, ../sass/_home.scss */
#app_home ul li {
#app_homepage ul li {
margin-top: 25px; margin-top: 25px;
} }
/* line 48, ../sass/_home.scss */ /* line 48, ../sass/_home.scss */
#app_home ul li button {
#app_homepage ul li button {
width: 70%; width: 70%;
font-size: 18px; font-size: 18px;
font-family: dinbold; font-family: dinbold;
border-radius: 15px / 15px; border-radius: 15px / 15px;
} }
/* line 54, ../sass/_home.scss */ /* line 54, ../sass/_home.scss */
#app_home ul li button a {
#app_homepage ul li button a {
color: #FFF; color: #FFF;
} }
/* line 59, ../sass/_home.scss */ /* line 59, ../sass/_home.scss */
#app_home ul li .yellow {
#app_homepage ul li .yellow {
background-color: #ffe680; background-color: #ffe680;
} }
/* line 63, ../sass/_home.scss */ /* line 63, ../sass/_home.scss */
#app_home ul li .green {
#app_homepage ul li .green {
background-color: #aab769; background-color: #aab769;
} }
/* line 67, ../sass/_home.scss */ /* line 67, ../sass/_home.scss */
#app_home ul li .orange {
#app_homepage ul li .orange {
background-color: #dc5b2f; background-color: #dc5b2f;
} }
/* line 73, ../sass/_home.scss */ /* line 73, ../sass/_home.scss */
#app_home .logo-coop {
#app_homepage .logo-coop {
width: 60%; width: 60%;
margin-top: 50px; margin-top: 50px;
} }
/* line 78, ../sass/_home.scss */ /* line 78, ../sass/_home.scss */
#app_home footer {
#app_homepage footer {
margin-top: 50px; margin-top: 50px;
font-family: dinregular; font-family: dinregular;
color: #568a73; color: #568a73;
text-align: center; text-align: center;
} }
/* line 84, ../sass/_home.scss */ /* line 84, ../sass/_home.scss */
#app_home footer a {
#app_homepage footer a {
color: #568a73; color: #568a73;
font-family: dinbold; font-family: dinbold;
} }
/* line 88, ../sass/_home.scss */ /* line 88, ../sass/_home.scss */
#app_home footer a:hover {
#app_homepage footer a:hover {
text-decoration: underline; text-decoration: underline;
} }



+ 7
- 10
src/Controller/Admin/DashboardController.php View File



public function configureMenuItems(): iterable public function configureMenuItems(): iterable
{ {
yield MenuItem::linkToDashboard('Tableau de bord', 'circle');
yield MenuItem::subMenu('Utilisateurs', 'user')->setSubItems(
yield MenuItem::linkToDashboard('dashboard', 'circle');
yield MenuItem::linkToCrud('page', 'copy', Page::class);
yield MenuItem::subMenu('user', 'user')->setSubItems(
[ [
MenuItem::linkToCrud('Utilisateurs', '', User::class),
MenuItem::linkToCrud('user_index', '', User::class),
] ]
); );

yield MenuItem::linkToCrud('Pages', 'copy', Page::class);

yield MenuItem::subMenu('Mon compte', 'user')->setSubItems(
yield MenuItem::subMenu('account', 'user')->setSubItems(
[ [
MenuItem::linkToRoute('Informations personnelles', '', 'sov_admin_account_profile'),
MenuItem::linkToRoute('Mot de passe', '', 'sov_admin_account_password'),
MenuItem::linkToRoute('account_profile', '', 'sov_admin_account_profile'),
MenuItem::linkToRoute('account_password', '', 'sov_admin_account_password'),
] ]
); );
} }

+ 2
- 2
src/Controller/Admin/PageCrudController.php View File



return array_merge( return array_merge(
[ [
FormField::addPanel('Général'),
FormField::addPanel('general'),
TextField::new('title'), TextField::new('title'),
NumberField::new('position')->hideOnForm(), NumberField::new('position')->hideOnForm(),
CKEditorField::new('description'), CKEditorField::new('description'),
FileManagerField::new('file'), FileManagerField::new('file'),
StatusField::new('status'), StatusField::new('status'),
FormField::addPanel('Galerie'),
FormField::addPanel('gallery'),
GalleryManagerField::new('gallery') GalleryManagerField::new('gallery')
], ],
$panel $panel

+ 1
- 0
templates/frontend/base.html.twig View File

<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{% block title %}Aux Actes Citoyens{% endblock %}</title> <title>{% block title %}Aux Actes Citoyens{% endblock %}</title>
{% block meta %}{% endblock %}
<link rel="stylesheet" href="{{ asset('assets/semantic/semantic.min.css') }}"> <link rel="stylesheet" href="{{ asset('assets/semantic/semantic.min.css') }}">
<link rel="stylesheet" href="{{ asset('assets/stylesheets/screen.css') }}"> <link rel="stylesheet" href="{{ asset('assets/stylesheets/screen.css') }}">
{% block stylesheets %}{% endblock %} {% block stylesheets %}{% endblock %}

+ 9
- 2
templates/frontend/home.html.twig View File

{% extends 'frontend/base.html.twig' %} {% extends 'frontend/base.html.twig' %}
{% import 'frontend/macro.html.twig' as macro %} {% import 'frontend/macro.html.twig' as macro %}


{% block title %}Aux Actes Citoyens - Imaginer et construire ensemble le futur du Nord Franche-Comté{% endblock %}

{% block meta %}
<meta name="title" content="Aux Actes Citoyens - Imaginer et construire ensemble le futur du Nord Franche-Comté" />
<meta name="description" content="La plateforme numérique « Aux actes Citoyens » arrive bientôt. En attendant, rejoignez-nous !" />
{% endblock %}

{% block body %} {% block body %}
<div class="ui container"> <div class="ui container">
<header class="ui stackable grid"> <header class="ui stackable grid">
<footer> <footer>
<div class="ui grid"> <div class="ui grid">
<div class="column sixteen wide"> <div class="column sixteen wide">
<a href="{{ path('app_legal_mention') }}" title="Mentions légales">Mentions légales</a>
- création <a href="https://www.laclic.fr/" title="La Clic !" target="_blank">LA CLIC !</a>
<!--<a href="{{ path('app_legal_mention') }}" title="Mentions légales">Mentions légales</a> - -->
Création <a href="https://www.laclic.fr/" title="La Clic !" target="_blank">LA CLIC !</a>
</div> </div>
</div> </div>
</footer> </footer>

+ 1
- 1
templates/page/page.html.twig View File

{% block body %} {% block body %}
<div class="ui container"> <div class="ui container">
<div class="logo-acc"> <div class="logo-acc">
<a href="{{ path('app_home') }}" title="Accueil">
<a href="{{ path('app_homepage') }}" title="Accueil">
<img src="{{ 'assets/img/Logo-Aux-Actes-Citoyens.jpg' }}" alt="Logo le panier de daphne"> <img src="{{ 'assets/img/Logo-Aux-Actes-Citoyens.jpg' }}" alt="Logo le panier de daphne">
</a> </a>
</div> </div>

+ 0
- 0
translations/admin.fr.yaml View File


Loading…
Cancel
Save