Add exercises 26

Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
This commit is contained in:
2023-10-09 00:00:03 +02:00
parent d8426a91d9
commit 08d20fee61
10 changed files with 354 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{% extends 'layout.html' %} {% block content %}
<div class="container">
<h1>Sobre esto</h1>
<iframe src="https://giphy.com/embed/eH9sawQbajAQM" width="480" height="120"
frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
<p>
Poco que decir, solo que esto es una web hecha con python y flask.
Es un ejercicio que se ha extraído del <a
href="https://github.com/Asabeneh/30-Days-Of-Python"> repositorio
github de 30DaysOfPython</a>.
</p>
</div>
{% endblock %}

View File

@@ -0,0 +1,23 @@
{% extends 'layout.html' %} {% block content %}
<div class="container">
<h1>Welcome to {{name}}</h1>
<div>
<img src="https://c.tenor.com/Zdpc10JrZrIAAAAC/tenor.gif"
alt="python" />
</div>
<p>
This application clean texts and analyse the number of word, characters
and
most frequent words in the text. Check it out by click text analyzer at
the
menu. You need the following technologies to build this web application:
</p>
<ul class="tech-lists">
{% for tech in techs %}
<li class="tech">{{tech}}</li>
{% endfor %}
</ul>
</div>
{% endblock %}

View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css?family=Lato:300,400|Nunito:300,400|Raleway:300,400,500&display=swap"
rel="stylesheet" />
<link
rel="stylesheet"
href="{{ url_for('static', filename='css/main.css') }}" />
{% if title %}
<title>30 Days of Python - {{ title}}</title>
{% else %}
<title>30 Days of Python</title>
{% endif %}
</head>
<body>
<header>
<div class="menu-container">
<div>
<a class="brand-name nav-link" href="/">30DaysOfPython</a>
</div>
<ul class="nav-lists">
<li class="nav-list">
<a class="nav-link active" href="{{ url_for('home') }}">Home</a>
</li>
<li class="nav-list">
<a class="nav-link active" href="{{ url_for('about') }}">About</a>
</li>
<li class="nav-list">
<a class="nav-link active" href="{{ url_for('post') }}">Text
Analyzer</a>
</li>
</ul>
</div>
</header>
<main>
{% block content %} {% endblock %}
</main>
</body>
</html>

View File

@@ -0,0 +1,15 @@
{% extends 'layout.html' %} {% block content %}
<div class="container">
<h1>Text Analyzer</h1>
<form action="localhost:5000/post"
method="POST">
<div>
<textarea rows="25" name="content" autofocus></textarea>
</div>
<div>
<input type="submit" class="btn" value="Process Text" />
</div>
</form>
</div>
{% endblock %}