Skip to content

Instantly share code, notes, and snippets.

View MarcosYaiama's full-sized avatar

MarcosYaiama

View GitHub Profile
p{
color: white;
font-weight: bolder
}
p:hover{
color: red;
}
body {
<html>
<head>
<meta charset="UTF-8">
<title>APLICAÇÃO</title>
<link rel="stylesheet" href="../static/site.css">
</head>
<body class="corpo">
<main>
<ul>
<li>
from flask import Flask, render_template
@app.route("/")
def index():
lista = [1 , 2, 3, 4]
return render_template("index.html", b1 = lista)
app.run(debug=True)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jogoteca</title>
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.css') }}">
</head>
from flask import Flask,render_template, request, redirect, session, flash
app = Flask(__name__)
app.secret_key = 'alura'
class Jogo():
def __init__(self, nome, categoria, console):
self.nome = nome
self.categoria = categoria
self.console = console