entire app update:
Some checks failed
Build and Deploy Flask App / test (pull_request) Has been cancelled
Build and Deploy Flask App / build-and-push (pull_request) Has been cancelled
Build and Deploy Flask App / deploy (pull_request) Has been cancelled

moder view app with static page, forgejo ci/cd workflow
This commit is contained in:
Norvicdev 2026-08-04 17:29:48 +03:00
parent 25c896f809
commit e6e700c2ee
13 changed files with 460 additions and 28 deletions

124
app/static/css/style.css Normal file
View file

@ -0,0 +1,124 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
flex-direction: column;
}
nav {
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 1rem 2rem;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-container h1 {
color: #333;
font-size: 1.5rem;
}
.nav-links a {
color: #555;
text-decoration: none;
margin-left: 2rem;
padding: 0.5rem 1rem;
border-radius: 4px;
transition: all 0.3s;
}
.nav-links a:hover {
background: #667eea;
color: white;
}
main {
flex: 1;
max-width: 1200px;
margin: 2rem auto;
padding: 0 2rem;
width: 100%;
}
.container {
background: white;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
h2 {
color: #333;
margin-bottom: 1.5rem;
}
.status-card {
background: #f8f9fa;
border-radius: 8px;
padding: 1.5rem;
margin: 1.5rem 0;
}
.status-item {
display: flex;
justify-content: space-between;
padding: 0.5rem 0;
border-bottom: 1px solid #e9ecef;
}
.status-item:last-child {
border-bottom: none;
}
.label {
color: #666;
font-weight: 500;
}
.value {
color: #333;
font-weight: 600;
}
.green {
color: #28a745;
}
.info-box {
background: #e8f4fd;
border-left: 4px solid #667eea;
padding: 1.5rem;
border-radius: 4px;
margin-top: 2rem;
}
.info-box ol {
margin-left: 1.5rem;
margin-top: 0.5rem;
}
.info-box li {
padding: 0.3rem 0;
color: #333;
}
footer {
background: rgba(255, 255, 255, 0.9);
text-align: center;
padding: 1rem;
color: #666;
font-size: 0.9rem;
}

10
app/static/js/main.js Normal file
View file

@ -0,0 +1,10 @@
document.addEventListener('DOMContentLoaded', function() {
console.log('Flask CI/CD App загружен!');
// Добавляем время сборки если есть
const footer = document.querySelector('footer p');
if (footer) {
const buildTime = new Date().toLocaleString('ru-RU');
footer.textContent += ` | Собрано: ${buildTime}`;
}
});