Added some Twiggy goodness
This commit is contained in:
19
templates/base.html.twig
Normal file
19
templates/base.html.twig
Normal file
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Welcome!{% endblock %}</title>
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
|
||||
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
|
||||
{% block stylesheets %}
|
||||
{{ encore_entry_link_tags('app') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ encore_entry_script_tags('app') }}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
16
templates/question/show.html.twig
Normal file
16
templates/question/show.html.twig
Normal file
@ -0,0 +1,16 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
{% block title %}Question: {{ question }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>{{ question }}</h1>
|
||||
<div>
|
||||
Eventually, we'll print the full question here!
|
||||
</div>
|
||||
|
||||
<h2>Answers</h2>
|
||||
<ul>
|
||||
{% for answer in answers %}
|
||||
<li>{{ answer }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user