Compare commits
12 Commits
feature/is
...
3df40952c1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3df40952c1 | ||
|
|
c467f8cc1e | ||
|
|
d4a59ee306 | ||
|
|
7be0a2e9d5 | ||
|
|
10bc7c1d77 | ||
|
|
e24db23888 | ||
| 88780c300a | |||
|
|
cc7b2d8d70 | ||
| ea85280cde | |||
| 958f52fd5d | |||
| 9c68365ab8 | |||
| 5b304730fa |
71
.gitea/workflows/deploy-test.yml
Normal file
71
.gitea/workflows/deploy-test.yml
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
name: Deploy Feature Branch to Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "feature/**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
volumes:
|
||||||
|
- /var/www/test/html:/deploy
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Show branch info
|
||||||
|
run: |
|
||||||
|
echo "=== Deploying branch: ${{ gitea.ref_name }} ==="
|
||||||
|
echo "=== Commit: ${{ gitea.sha }} ==="
|
||||||
|
echo "=== By: ${{ gitea.actor }} ==="
|
||||||
|
date
|
||||||
|
|
||||||
|
- name: Deploy to test environment
|
||||||
|
run: |
|
||||||
|
echo "Syncing files to test environment..."
|
||||||
|
apt-get update -qq && apt-get install -y -qq rsync > /dev/null 2>&1 || true
|
||||||
|
|
||||||
|
rsync -av --delete \
|
||||||
|
--exclude='.git' \
|
||||||
|
--exclude='.gitea' \
|
||||||
|
--exclude='.husky' \
|
||||||
|
--exclude='.prettierrc' \
|
||||||
|
--exclude='.prettierignore' \
|
||||||
|
--exclude='.stylelintrc.json' \
|
||||||
|
--exclude='.htmlhintrc' \
|
||||||
|
--exclude='.gitignore' \
|
||||||
|
--exclude='.dockerignore' \
|
||||||
|
--exclude='Dockerfile' \
|
||||||
|
--exclude='nginx.conf' \
|
||||||
|
--exclude='eslint.config.js' \
|
||||||
|
--exclude='package.json' \
|
||||||
|
--exclude='docker-preview.png' \
|
||||||
|
--exclude='page-preview.png' \
|
||||||
|
--exclude='screenshot-landingpage*' \
|
||||||
|
--exclude='AGENTS.md' \
|
||||||
|
--exclude='README.md' \
|
||||||
|
./ /deploy/
|
||||||
|
|
||||||
|
# Set haus-schleusingen.html as index
|
||||||
|
cp /deploy/haus-schleusingen.html /deploy/index.html 2>/dev/null || true
|
||||||
|
|
||||||
|
echo "✅ Deployment complete!"
|
||||||
|
|
||||||
|
- name: Set permissions
|
||||||
|
run: |
|
||||||
|
chown -R 33:33 /deploy/ 2>/dev/null || true
|
||||||
|
chmod -R 755 /deploy/ 2>/dev/null || true
|
||||||
|
echo "✅ Permissions set"
|
||||||
|
|
||||||
|
- name: Deployment summary
|
||||||
|
run: |
|
||||||
|
echo "=========================================="
|
||||||
|
echo " 🚀 Deployment Summary"
|
||||||
|
echo "=========================================="
|
||||||
|
echo " Branch: ${{ gitea.ref_name }}"
|
||||||
|
echo " Commit: ${{ gitea.sha }}"
|
||||||
|
echo " Target: http://178.104.150.0/"
|
||||||
|
echo " Time: $(date)"
|
||||||
|
echo "=========================================="
|
||||||
@@ -928,6 +928,29 @@ nav.scrolled .nav-links a:hover {
|
|||||||
color: var(--stone);
|
color: var(--stone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contact-details {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 2rem;
|
||||||
|
padding-top: 1.5rem;
|
||||||
|
border-top: 1px solid var(--warm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-details p {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
color: var(--stone);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-details a {
|
||||||
|
color: var(--accent);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 600;
|
||||||
|
transition: color 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-details a:hover {
|
||||||
|
color: var(--accent-light);
|
||||||
|
}
|
||||||
|
|
||||||
/* FOOTER */
|
/* FOOTER */
|
||||||
footer {
|
footer {
|
||||||
background: var(--dark);
|
background: var(--dark);
|
||||||
|
|||||||
@@ -527,16 +527,19 @@
|
|||||||
<div class="form-success" id="formSuccess">
|
<div class="form-success" id="formSuccess">
|
||||||
<p>Vielen Dank für Ihre Anfrage!</p>
|
<p>Vielen Dank für Ihre Anfrage!</p>
|
||||||
<br />
|
<br />
|
||||||
<small>Wir melden uns schnellstmöglich bei Ihnen.</small>
|
<small>Ihr E-Mail-Programm wurde geöffnet. Bitte senden Sie die E-Mail ab, damit Ihre Anfrage bei uns eingeht.</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="contact-details">
|
||||||
|
<p>Oder schreiben Sie uns direkt: <a href="mailto:mki@kies-media.de">mki@kies-media.de</a></p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div class="footer-logo">Bahnhofstraße 10 · Schleusingen</div>
|
<div class="footer-logo">Bahnhofstraße 10 · Schleusingen</div>
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
<a href="#">Impressum</a>
|
<a href="/impressum" target="_blank">Impressum</a>
|
||||||
<a href="#">Datenschutz</a>
|
<a href="#">Datenschutz</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -71,14 +71,33 @@ $(function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Form submit
|
// Form submit – opens email client with pre-filled mailto: link
|
||||||
$("#contactForm").on("submit", function (e) {
|
$("#contactForm").on("submit", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var btn = $(this).find(".btn-submit");
|
|
||||||
btn.text("Wird gesendet...").prop("disabled", true);
|
var fname = $("#fname").val().trim();
|
||||||
setTimeout(function () {
|
var lname = $("#lname").val().trim();
|
||||||
$("#contactForm").hide();
|
var email = $("#email").val().trim();
|
||||||
$("#formSuccess").fadeIn(400);
|
var phone = $("#phone").val().trim();
|
||||||
}, 1200);
|
var interest = $("#interest").val();
|
||||||
|
var message = $("#message").val().trim();
|
||||||
|
|
||||||
|
var subject = "Kontaktanfrage: " + interest;
|
||||||
|
var body = "Von: " + fname + " " + lname + "\n";
|
||||||
|
body += "E-Mail: " + email + "\n";
|
||||||
|
if (phone) body += "Telefon: " + phone + "\n";
|
||||||
|
body += "Anliegen: " + interest + "\n\n";
|
||||||
|
body += message;
|
||||||
|
|
||||||
|
var mailto =
|
||||||
|
"mailto:mki@kies-media.de" +
|
||||||
|
"?subject=" + encodeURIComponent(subject) +
|
||||||
|
"&body=" + encodeURIComponent(body);
|
||||||
|
|
||||||
|
window.location.href = mailto;
|
||||||
|
|
||||||
|
// Show success message
|
||||||
|
$("#contactForm").hide();
|
||||||
|
$("#formSuccess").fadeIn(400);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user