commit 9ee0e2a38a1dec843185a8a0947eab1b1270336d
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 07:54:33 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..15a1464
--- /dev/null
+++ b/body.html
@@ -0,0 +1,29 @@
+<header>
+ <h1>Simulateur de Crédit Immobilier</h1>
+ <p>Calculez votre prêt immobilier en quelques clics</p>
+</header>
+<main>
+ <section class="calculator">
+ <div class="input-group">
+ <label for="amount">Montant du prêt (€)</label>
+ <input type="number" id="amount" min="0" step="1000" placeholder="Ex: 200000">
+ </div>
+ <div class="input-group">
+ <label for="duration">Durée (années)</label>
+ <input type="number" id="duration" min="1" max="30" placeholder="Ex: 20">
+ </div>
+ <div class="input-group">
+ <label for="rate">Taux d'intérêt (%)</label>
+ <input type="number" id="rate" min="0" step="0.1" placeholder="Ex: 1.5">
+ </div>
+ <button id="calculate">Calculer</button>
+ <div class="result">
+ <h2>Résultat</h2>
+ <p>Mensualité : <span id="monthlyPayment">-</span> €</p>
+ <p>Coût total : <span id="totalCost">-</span> €</p>
+ </div>
+ </section>
+</main>
+<footer>
+ <p>Simulateur de crédit immobilier en France</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..3cc0255
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://pretimmobilier.scroll.pub
+metaTags
+editButton /edit.html
+title Simulateur de Crédit Immobilier en France
+style.css
+body.html
+script.js
\ No newline at end of file
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..4931652
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "25fcb165-17f0-463a-ac33-d06ea3acca7d",
+ "object": "chat.completion",
+ "created": 1735372455,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\npretimmobilier.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://pretimmobilier.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Simulateur de Crédit Immobilier en France\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Simulateur de Crédit Immobilier</h1>\n <p>Calculez votre prêt immobilier en quelques clics</p>\n</header>\n<main>\n <section class=\"calculator\">\n <div class=\"input-group\">\n <label for=\"amount\">Montant du prêt (€)</label>\n <input type=\"number\" id=\"amount\" min=\"0\" step=\"1000\" placeholder=\"Ex: 200000\">\n </div>\n <div class=\"input-group\">\n <label for=\"duration\">Durée (années)</label>\n <input type=\"number\" id=\"duration\" min=\"1\" max=\"30\" placeholder=\"Ex: 20\">\n </div>\n <div class=\"input-group\">\n <label for=\"rate\">Taux d'intérêt (%)</label>\n <input type=\"number\" id=\"rate\" min=\"0\" step=\"0.1\" placeholder=\"Ex: 1.5\">\n </div>\n <button id=\"calculate\">Calculer</button>\n <div class=\"result\">\n <h2>Résultat</h2>\n <p>Mensualité : <span id=\"monthlyPayment\">-</span> €</p>\n <p>Coût total : <span id=\"totalCost\">-</span> €</p>\n </div>\n </section>\n</main>\n<footer>\n <p>Simulateur de crédit immobilier en France</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --background-color: #ecf0f1;\n --text-color: #333;\n --border-radius: 8px;\n --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Arial', sans-serif;\n line-height: 1.6;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n}\n\nheader {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\nmain {\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\n.calculator {\n background: white;\n padding: 2rem;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n}\n\n.input-group {\n margin-bottom: 1.5rem;\n}\n\n.input-group label {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: bold;\n}\n\n.input-group input {\n width: 100%;\n padding: 0.75rem;\n border: 1px solid #ddd;\n border-radius: var(--border-radius);\n font-size: 1rem;\n}\n\nbutton {\n width: 100%;\n padding: 1rem;\n background-color: var(--secondary-color);\n color: white;\n border: none;\n border-radius: var(--border-radius);\n font-size: 1rem;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: #2980b9;\n}\n\n.result {\n margin-top: 2rem;\n padding: 1.5rem;\n background-color: var(--background-color);\n border-radius: var(--border-radius);\n text-align: center;\n}\n\n.result h2 {\n margin-top: 0;\n}\n\n.result p {\n margin: 0.5rem 0;\n font-size: 1.2rem;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 600px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n .calculator {\n padding: 1rem;\n }\n\n .input-group input {\n padding: 0.5rem;\n }\n\n button {\n padding: 0.75rem;\n }\n\n .result {\n padding: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('calculate').addEventListener('click', function() {\n const amount = parseFloat(document.getElementById('amount').value);\n const duration = parseFloat(document.getElementById('duration').value);\n const rate = parseFloat(document.getElementById('rate').value);\n\n if (isNaN(amount) || isNaN(duration) || isNaN(rate)) {\n alert('Veuillez remplir tous les champs correctement.');\n return;\n }\n\n const monthlyRate = rate / 100 / 12;\n const numberOfPayments = duration * 12;\n\n const monthlyPayment = (amount * monthlyRate) / (1 - Math.pow(1 + monthlyRate, -numberOfPayments));\n const totalCost = monthlyPayment * numberOfPayments;\n\n document.getElementById('monthlyPayment').textContent = monthlyPayment.toFixed(2);\n document.getElementById('totalCost').textContent = totalCost.toFixed(2);\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 253,
+ "completion_tokens": 1270,
+ "total_tokens": 1523,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 253
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..b14780e
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# pretimmobilier.scroll.pub
+Website generated by DeepSeek from prompt: creer un site pour simuler un credit immobilier en france. sois creatif
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..d53db32
--- /dev/null
+++ b/script.js
@@ -0,0 +1,19 @@
+document.getElementById('calculate').addEventListener('click', function() {
+ const amount = parseFloat(document.getElementById('amount').value);
+ const duration = parseFloat(document.getElementById('duration').value);
+ const rate = parseFloat(document.getElementById('rate').value);
+
+ if (isNaN(amount) || isNaN(duration) || isNaN(rate)) {
+ alert('Veuillez remplir tous les champs correctement.');
+ return;
+ }
+
+ const monthlyRate = rate / 100 / 12;
+ const numberOfPayments = duration * 12;
+
+ const monthlyPayment = (amount * monthlyRate) / (1 - Math.pow(1 + monthlyRate, -numberOfPayments));
+ const totalCost = monthlyPayment * numberOfPayments;
+
+ document.getElementById('monthlyPayment').textContent = monthlyPayment.toFixed(2);
+ document.getElementById('totalCost').textContent = totalCost.toFixed(2);
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..311397b
--- /dev/null
+++ b/style.css
@@ -0,0 +1,132 @@
+:root {
+ --primary-color: #2c3e50;
+ --secondary-color: #3498db;
+ --background-color: #ecf0f1;
+ --text-color: #333;
+ --border-radius: 8px;
+ --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+}
+
+body {
+ font-family: 'Arial', sans-serif;
+ line-height: 1.6;
+ margin: 0;
+ padding: 0;
+ background-color: var(--background-color);
+ color: var(--text-color);
+}
+
+header {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+}
+
+header h1 {
+ margin: 0;
+ font-size: 2.5rem;
+}
+
+header p {
+ margin: 0.5rem 0 0;
+ font-size: 1.2rem;
+}
+
+main {
+ padding: 2rem;
+ max-width: 800px;
+ margin: 0 auto;
+}
+
+.calculator {
+ background: white;
+ padding: 2rem;
+ border-radius: var(--border-radius);
+ box-shadow: var(--box-shadow);
+}
+
+.input-group {
+ margin-bottom: 1.5rem;
+}
+
+.input-group label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: bold;
+}
+
+.input-group input {
+ width: 100%;
+ padding: 0.75rem;
+ border: 1px solid #ddd;
+ border-radius: var(--border-radius);
+ font-size: 1rem;
+}
+
+button {
+ width: 100%;
+ padding: 1rem;
+ background-color: var(--secondary-color);
+ color: white;
+ border: none;
+ border-radius: var(--border-radius);
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+}
+
+button:hover {
+ background-color: #2980b9;
+}
+
+.result {
+ margin-top: 2rem;
+ padding: 1.5rem;
+ background-color: var(--background-color);
+ border-radius: var(--border-radius);
+ text-align: center;
+}
+
+.result h2 {
+ margin-top: 0;
+}
+
+.result p {
+ margin: 0.5rem 0;
+ font-size: 1.2rem;
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ background-color: var(--primary-color);
+ color: white;
+ margin-top: 2rem;
+}
+
+@media (max-width: 600px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ .calculator {
+ padding: 1rem;
+ }
+
+ .input-group input {
+ padding: 0.5rem;
+ }
+
+ button {
+ padding: 0.75rem;
+ }
+
+ .result {
+ padding: 1rem;
+ }
+}
\ No newline at end of file