Skip to content

Commit

Permalink
add new release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoujols committed Mar 17, 2024
1 parent 1e43057 commit de455b4
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ DB_NAME=app_db
## << Config préfixe des conteneurs Docker
APP_NAME=edu-framework
## >> Config préfixe des conteneurs Docker

## << Config application
APP_ENV=dev
## >> Config application
4 changes: 0 additions & 4 deletions app/Config/routes.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
index:
uri: /
controller: Controller\HomeController
httpMethod: [GET]
testdb:
uri: /testdb
controller: Controller\DataBaseTestController
httpMethod: [GET]
3 changes: 1 addition & 2 deletions app/Controller/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function execute(Request $request): string|null
return TwigCore::getEnvironment()->render(
'home/home.html.twig',
[
'titre' => 'Hello World !',
'requete' => $request
'bonjour' => "welcome to the home page",
]
);
}
Expand Down
1 change: 1 addition & 0 deletions app/Template/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>{% block titre %}{% endblock %}</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" >
<link href="/assets/css/base.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid">
Expand Down
12 changes: 9 additions & 3 deletions app/Template/home/home.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
{% block title %}{{ titre }}{% endblock %}

{% block content %}
<h1>{{ titre }}</h1>
{% endblock %}

<div class="d-flex justify-content-center align-items-center vh-100">
<div class="text-center">
<img src="/assets/media/studoo.svg" alt="Logo Edu Framework" width="50px">
<p class="lead">welcome to Edu-Framework</p>
<p class="mini-lead">{{ bonjour }}</p>
</div>
</div>
</div>
{% endblock %}
27 changes: 27 additions & 0 deletions public/assets/css/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
body {
font-family: 'Open Sans', sans-serif;
font-size: 16px;
line-height: 1.6;
color: #333;
background-color: #e8fff3;
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.lead {
font-size: 24px;
font-weight: 600;
line-height: 1.4;
}

.mini-lead {
font-size: 14px;
font-weight: 300;
line-height: 0;
}
20 changes: 20 additions & 0 deletions public/assets/media/studoo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit de455b4

Please sign in to comment.