askrobots / dbbasic-examples
Public
Example DBBasic apps (an API, a blog and a microblog) and a template for new DBBasic modules.
danq9
Add official module template for creating DBBasic packages
17cf88a
1 year, 1 month ago
History
base.html · 1.5 KB · 25 lines
| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>{% block title %}Microblog{% endblock %}</title> |
| 5 | <style> |
| 6 | body { font-family: Arial, sans-serif; max-width: 600px; margin: 40px auto; padding: 20px; } |
| 7 | nav { background: #1da1f2; padding: 15px; margin: -20px -20px 20px -20px; } |
| 8 | nav a { color: white; text-decoration: none; margin-right: 15px; } |
| 9 | .post { border: 1px solid #ddd; padding: 15px; margin: 10px 0; border-radius: 8px; } |
| 10 | .post-meta { color: #666; font-size: 0.9em; margin-bottom: 10px; } |
| 11 | .post-meta a { color: #1da1f2; text-decoration: none; font-weight: bold; } |
| 12 | textarea { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; } |
| 13 | input { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; } |
| 14 | button { padding: 10px 20px; background: #1da1f2; color: white; border: none; border-radius: 5px; cursor: pointer; } |
| 15 | .button { display: inline-block; padding: 8px 16px; background: #1da1f2; color: white; text-decoration: none; border-radius: 5px; } |
| 16 | .error { background: #ffebee; border: 1px solid #f44336; padding: 10px; margin: 10px 0; border-radius: 5px; color: #c62828; } |
| 17 | .hero { text-align: center; padding: 40px 0; } |
| 18 | .hero h1 { font-size: 3em; color: #1da1f2; } |
| 19 | </style> |
| 20 | </head> |
| 21 | <body> |
| 22 | {% block nav %}{% endblock %} |
| 23 | {% block content %}{% endblock %} |
| 24 | </body> |
| 25 | </html> |