Compare commits

...

27 Commits

Author SHA1 Message Date
b481863d47 added Reichard
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 20s
2025-07-30 00:07:49 +02:00
4078f5f83d changed header image
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 40s
2025-07-27 23:01:57 +02:00
42498fe19b removed tests
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 8s
2025-07-19 09:58:31 +02:00
ZbynekDostal
bb7b075657 news update
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 13s
2025-07-19 09:56:34 +02:00
ZbynekDostal
864c0dbddd news update
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 20s
2025-07-19 09:48:46 +02:00
595f8087dc revert test
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 9s
2025-07-17 11:37:25 +02:00
winbloat
285f0cd443 news update
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 13s
2025-07-17 11:36:15 +02:00
2637281af6 revert test
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 19s
2025-07-17 11:35:34 +02:00
winbloat
c27071bdcd news update
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 8s
2025-07-17 11:32:17 +02:00
5d9a306c64 added requirements.txt
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 24s
2025-07-17 11:23:09 +02:00
9c85ee9f2f removed nonsense news
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 8s
2025-07-17 11:10:22 +02:00
967457883a news update
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 19s
2025-07-17 11:07:53 +02:00
e43abc01e6 replace logo with white text
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 24s
2025-07-16 01:57:20 +02:00
d580765162 removed last test news
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 8s
2025-07-16 01:20:51 +02:00
dcc3ee8b55 edit test line
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 14s
2025-07-16 01:19:35 +02:00
c6591219e6 added horizontal line separator
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 18s
2025-07-16 01:15:27 +02:00
52042c4c35 first news + edit.py edit
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 8s
2025-07-16 01:01:34 +02:00
9a9ac137ef first news 2025-07-16 00:59:39 +02:00
acd812fed1 header image edit + grammar
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 19s
2025-07-16 00:55:31 +02:00
d292d96302 edit of contacts page and replaced header image
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 13s
2025-07-16 00:52:38 +02:00
0106ab72e2 added FMCZ logo
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 18s
2025-07-16 00:42:40 +02:00
dfd2e5c85f changed all white to cream
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 20s
2025-07-16 00:29:34 +02:00
567ccca6a4 changed bg color
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 15s
2025-07-16 00:26:05 +02:00
bfcb5583f8 removed dědečky
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 20s
2025-07-16 00:17:22 +02:00
22e558e19a removed about us section from index
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 9s
2025-07-16 00:14:11 +02:00
f87c68b8d4 bugfix
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 9s
2025-07-16 00:11:18 +02:00
d322b4ea2b added about us page
All checks were successful
Modelari site build and deploy / Build-site (push) Successful in 25s
2025-07-16 00:07:06 +02:00
9 changed files with 104 additions and 15 deletions

53
about.html Normal file
View File

@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FMCZ - Kontakty</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<!-- <h1>Vítejte na stránkách FMCZ</h1> -->
</header>
<div class="page-layout">
<aside>
<nav>
<ul>
<li><a href="index.html">Domů</a></li>
<!-- <li><a href="application.html">Application</a></li> -->
<li><a href="contacts.html">Kontakty</a></li>
<li><a href="about.html">O nás</a></li>
<li><a href="https://animo.zamberk.cz"><img src="img/animo.png" alt="Animo logo" style="max-width:100%;"></a></li>
<li><a href="index.html"><img src="img/logo.png" alt="FMCZ logo" style="max-width:100%;"></a></li>
<li><a href="https://www.reichard.cz/"><img src="img/reichard_white.png" alt="Reichard logo" style="max-width:100%;"></a></li>
</ul>
</nav>
</aside>
<main>
<h1>O nás Láska k létání začíná u modelů</h1>
<p>Vítejte na stránkách našeho kroužku leteckých modelářů místa, kde se sny o létání mění ve skutečnost. Jsme parta nadšenců, které spojuje vášeň pro letectví, techniku a tvořivost. Od dětských letadel z balzy až po moderní dálkově řízené modely, pro nás není model jen hračka je to zhmotnění preciznosti, trpělivosti a radosti z pohybu ve vzduchu.</p>
<h2>Kdo jsme?</h2>
<p>Jsme otevřená komunita pro malé i velké vítáme všechny od začátečníků až po zkušené modeláře. Naši členové jsou školáci, studenti, tatínci i letečtí profesionálové. Spojuje nás chuť tvořit, učit se novým věcem a sdílet společné nadšení.</p>
<h2>Co děláme?</h2>
<p>V našem kroužku se naučíte:</p>
<ul>
<li>základy aerodynamiky a konstrukce modelů</li>
<li>práci s různými materiály (balza, pěnovky, kompozity…)</li>
<li>ovládání dálkově řízených modelů letadel, dronů i větroňů</li>
<li>jak opravovat a vylepšovat vlastní modely</li>
<li>a hlavně: jak si užít každý start, let i přistání</li>
</ul>
<p>Scházíme se pravidelně v dílně i na letišti. Stavíme, testujeme, soutěžíme ale hlavně si létání užíváme. V zimě pracujeme na modelech, v létě brázdíme oblohu.</p>
<h2>Proč se k nám přidat?</h2>
<p>Protože letecké modelářství rozvíjí technické myšlení, jemnou motoriku, kreativitu i týmového ducha. A hlavně je to zábava! Každý nový model je výzva a každý první vzlet malý zázrak.</p>
<p>Tak neváhejte a přidejte se k nám. Pomůžeme vám vzlétnout od prvních nákresů až po první let.</p>
</main>
</div>
<footer>
&copy; 2025 FMCZ. All rights reserved.
</footer>
</body>
</html>

View File

@@ -17,16 +17,20 @@
<li><a href="index.html">Domů</a></li>
<!-- <li><a href="application.html">Application</a></li> -->
<li><a href="contacts.html">Kontakty</a></li>
<li><a href="about.html">O nás</a></li>
<li><a href="https://animo.zamberk.cz"><img src="img/animo.png" alt="Animo logo" style="max-width:100%;"></a></li>
<li><a href="index.html"><img src="img/logo.png" alt="FMCZ logo" style="max-width:100%;"></a></li>
<li><a href="https://www.reichard.cz/"><img src="img/reichard_white.png" alt="Reichard logo" style="max-width:100%;"></a></li>
</ul>
</nav>
</aside>
<main>
<h1>Contact Us</h1>
<p>Email: info@fmcz.org</p>
<p>Phone: +1-555-123-4567</p>
<p>Address: 123 FMCZ Street, City, Country</p>
<h1>Kontakty</h1>
<p>Středisko volného času, ANIMO, Žamberk</p>
<p>Adresa - 28. října 713, 564 01 Žamberk</p>
<p>Pevná linka - 465 612 741</p>
<p>Email: <a href="mailto:info@fmcz.eu">info@fmcz.eu</a></p>
</main>
</div>

29
edit.py
View File

@@ -3,10 +3,31 @@ from tkinter import messagebox
from tkinter import filedialog
import os
import shutil
from git import Repo
PATH_OF_GIT_REPO = r'.git'
COMMIT_MESSAGE = 'news update'
HTML_INSERT_TAG = "<!-- INSERT HERE -->"
uploaded_image_path = None # Global to track uploaded image
def git_pull():
try:
repo = Repo(PATH_OF_GIT_REPO)
origin = repo.remotes.origin
origin.pull()
except:
messagebox.showerror("Git error", "Something went wrong while pulling from origin")
def git_push():
try:
repo = Repo(PATH_OF_GIT_REPO)
repo.git.add(update=True)
repo.index.commit(COMMIT_MESSAGE)
origin = repo.remote(name='origin')
origin.push()
except:
messagebox.showerror("Git error", "Something went wrong while pushing to origin")
def upload_image():
global uploaded_image_path
path = filedialog.askopenfilename(
@@ -37,7 +58,7 @@ def submit_content():
# if not html_file_path:
# return
html_file_path = './home.html'
html_file_path = './index.html'
if not img_lib:
new_entry = f"""
@@ -85,7 +106,7 @@ def submit_content():
return
full_entry = f"{new_entry}\n{image_tag}" if image_tag else new_entry
new_html = html_content.replace(HTML_INSERT_TAG, f"{HTML_INSERT_TAG}\n{full_entry}")
new_html = html_content.replace(HTML_INSERT_TAG, f"{HTML_INSERT_TAG}\n{full_entry}\n<hr>")
with open(html_file_path, 'w', encoding='utf-8') as f:
f.write(new_html)
@@ -94,6 +115,8 @@ def submit_content():
except Exception as e:
messagebox.showerror("Error", str(e))
git_push()
# GUI Setup
root = tk.Tk()
@@ -122,5 +145,7 @@ img_lib_text.pack(padx=10, pady=5)
submit_button = tk.Button(root, text="Submit to HTML", command=submit_content)
submit_button.pack(pady=5)
git_pull()
root.mainloop()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

BIN
img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
img/reichard_white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -17,22 +17,25 @@
<li><a href="index.html">Domů</a></li>
<!-- <li><a href="application.html">Registrace</a></li> -->
<li><a href="contacts.html">Kontakty</a></li>
<li><a href="about.html">O nás</a></li>
<li><a href="https://animo.zamberk.cz"><img src="img/animo.png" alt="Animo logo" style="max-width:100%;"></a></li>
<li><a href="index.html"><img src="img/logo.png" alt="FMCZ logo" style="max-width:100%;"></a></li>
<li><a href="https://www.reichard.cz/"><img src="img/reichard_white.png" alt="Reichard logo" style="max-width:100%;"></a></li>
</ul>
</nav>
</aside>
<main>
<section id="about">
<h2>O nás</h2>
<p>Welcome to FMCZ. We are a forward-thinking organization dedicated to excellence in our domain.</p>
</section>
<section id="news">
<h2>Novinky</h2>
<ul>
<!-- INSERT HERE -->
<li><i>16.7.2025</i></li>
<li><b>Spuštění stránek</b></li>
<li>Slavnostně oznamujeme spuštění kroužkových stránek</li>
<hr>
</ul>
</section>
</main>

3
requirements.txt Normal file
View File

@@ -0,0 +1,3 @@
tk
GitPython
shutils

View File

@@ -9,6 +9,7 @@ html, body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
background-color: #cccccc;
}
/* Header */
@@ -54,7 +55,7 @@ aside nav ul li a {
display: block;
padding: 10px 15px;
border: 2px solid white;
color: white;
color: #cccccc;
text-decoration: none;
border-radius: 4px;
text-align: center;
@@ -62,7 +63,7 @@ aside nav ul li a {
}
aside nav ul li a:hover {
background-color: white;
background-color: #cccccc;
color: #333;
}
@@ -97,7 +98,7 @@ main {
/* Footer */
footer {
background-color: #333;
color: white;
color: #cccccc;
text-align: center;
padding: 15px;
}