commit d5ff4bbf208e43b44a623bb7f50c2a4869bf4600
Author: root <root@hub.scroll.pub>
Date: 2024-12-27 05:10:38 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..be711b7
--- /dev/null
+++ b/body.html
@@ -0,0 +1,96 @@
+<header>
+ <nav>
+ <div class="logo">InvestWise</div>
+ <div class="nav-links">
+ <a href="#calculator">Calculator</a>
+ <a href="#analysis">Analysis</a>
+ <a href="#trends">Trends</a>
+ </div>
+ </nav>
+</header>
+
+<main>
+ <section class="hero">
+ <h1>Make Smarter Investment Decisions</h1>
+ <p>Compare historical performance and future potential of Cryptocurrency vs Gold</p>
+ </section>
+
+ <section id="calculator" class="calculator-section">
+ <h2>Investment Calculator</h2>
+ <div class="calculator-grid">
+ <div class="input-group">
+ <label for="investment-amount">Investment Amount ($)</label>
+ <input type="number" id="investment-amount" min="0" value="10000">
+ </div>
+ <div class="input-group">
+ <label for="time-horizon">Time Horizon (Years)</label>
+ <input type="range" id="time-horizon" min="1" max="5" value="5">
+ <span id="years-display">5 years</span>
+ </div>
+ <div class="input-group">
+ <label for="risk-tolerance">Risk Tolerance</label>
+ <select id="risk-tolerance">
+ <option value="low">Conservative</option>
+ <option value="medium">Moderate</option>
+ <option value="high">Aggressive</option>
+ </select>
+ </div>
+ </div>
+ <div class="results-container">
+ <div class="result-card" id="crypto-result">
+ <h3>Cryptocurrency</h3>
+ <div class="prediction"></div>
+ </div>
+ <div class="result-card" id="gold-result">
+ <h3>Gold</h3>
+ <div class="prediction"></div>
+ </div>
+ </div>
+ </section>
+
+ <section id="analysis" class="analysis-section">
+ <h2>Market Analysis</h2>
+ <div class="chart-container">
+ <canvas id="comparison-chart"></canvas>
+ </div>
+ <div class="analysis-grid">
+ <div class="analysis-card">
+ <h3>Volatility</h3>
+ <div class="indicator" id="volatility-indicator"></div>
+ </div>
+ <div class="analysis-card">
+ <h3>Growth Potential</h3>
+ <div class="indicator" id="growth-indicator"></div>
+ </div>
+ <div class="analysis-card">
+ <h3>Risk Level</h3>
+ <div class="indicator" id="risk-indicator"></div>
+ </div>
+ </div>
+ </section>
+
+ <section id="trends" class="trends-section">
+ <h2>Current Trends</h2>
+ <div class="trends-grid">
+ <div class="trend-card" id="crypto-trend">
+ <h3>Crypto Market Sentiment</h3>
+ <div class="trend-indicator"></div>
+ </div>
+ <div class="trend-card" id="gold-trend">
+ <h3>Gold Market Sentiment</h3>
+ <div class="trend-indicator"></div>
+ </div>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <div class="footer-content">
+ <p>InvestWise - Making Investment Decisions Simpler</p>
+ <nav class="footer-links">
+ <a href="#privacy">Privacy Policy</a>
+ <a href="#terms">Terms of Use</a>
+ <a href="#contact">Contact</a>
+ </nav>
+ </div>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..171411c
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://investwise.scroll.pub
+metaTags
+editButton /edit.html
+title InvestWise - Smart Crypto vs Gold Investment Decisions
+style.css
+body.html
+script.js
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..43f5956
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# investwise.scroll.pub
+Website generated by Claude from prompt: I want a website that will help me decide if I should invest in crypto or gold over the next 5 years. Look at historical macro correlations and other market factors. Be creative!
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..5c0e22a
--- /dev/null
+++ b/script.js
@@ -0,0 +1,135 @@
+document.addEventListener('DOMContentLoaded', () => {
+ // Initialize chart
+ const ctx = document.getElementById('comparison-chart').getContext('2d');
+ let chart = createComparisonChart(ctx);
+
+ // Setup event listeners
+ setupCalculator();
+ updateIndicators();
+
+ // Update displays initially
+ updateResults();
+});
+
+function createComparisonChart(ctx) {
+ const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
+ const cryptoData = generateRandomData(12, 30000, 60000);
+ const goldData = generateRandomData(12, 1500, 2000);
+
+ return new Chart(ctx, {
+ type: 'line',
+ data: {
+ labels: months,
+ datasets: [{
+ label: 'Cryptocurrency (BTC)',
+ data: cryptoData,
+ borderColor: '#f4b942',
+ tension: 0.4
+ }, {
+ label: 'Gold (per oz)',
+ data: goldData,
+ borderColor: '#2a3b4c',
+ tension: 0.4
+ }]
+ },
+ options: {
+ responsive: true,
+ maintainAspectRatio: false
+ }
+ });
+}
+
+function generateRandomData(points, min, max) {
+ return Array.from({length: points}, () =>
+ Math.floor(Math.random() * (max - min + 1)) + min
+ );
+}
+
+function setupCalculator() {
+ const timeHorizon = document.getElementById('time-horizon');
+ const yearsDisplay = document.getElementById('years-display');
+
+ timeHorizon.addEventListener('input', (e) => {
+ yearsDisplay.textContent = `${e.target.value} years`;
+ updateResults();
+ });
+
+ document.getElementById('investment-amount').addEventListener('input', updateResults);
+ document.getElementById('risk-tolerance').addEventListener('change', updateResults);
+}
+
+function updateResults() {
+ const amount = parseFloat(document.getElementById('investment-amount').value);
+ const years = parseInt(document.getElementById('time-horizon').value);
+ const risk = document.getElementById('risk-tolerance').value;
+
+ const cryptoResult = calculatePrediction(amount, years, risk, 'crypto');
+ const goldResult = calculatePrediction(amount, years, risk, 'gold');
+
+ document.querySelector('#crypto-result .prediction').textContent =
+ `Predicted Value: $${cryptoResult.toLocaleString()}`;
+ document.querySelector('#gold-result .prediction').textContent =
+ `Predicted Value: $${goldResult.toLocaleString()}`;
+}
+
+function calculatePrediction(amount, years, risk, type) {
+ const rateMap = {
+ crypto: {
+ low: 0.15,
+ medium: 0.25,
+ high: 0.40
+ },
+ gold: {
+ low: 0.05,
+ medium: 0.08,
+ high: 0.12
+ }
+ };
+
+ const rate = rateMap[type][risk];
+ return Math.round(amount * Math.pow(1 + rate, years));
+}
+
+function updateIndicators() {
+ const indicators = {
+ volatility: {
+ crypto: 0.85,
+ gold: 0.35
+ },
+ growth: {
+ crypto: 0.75,
+ gold: 0.45
+ },
+ risk: {
+ crypto: 0.90,
+ gold: 0.30
+ }
+ };
+
+ Object.keys(indicators).forEach(type => {
+ updateIndicator(`${type}-indicator`, indicators[type]);
+ });
+}
+
+function updateIndicator(elementId, values) {
+ const element = document.getElementById(elementId);
+ const maxHeight = 100;
+
+ const cryptoHeight = values.crypto * maxHeight;
+ const goldHeight = values.gold * maxHeight;
+
+ element.innerHTML = `
+ <div class="indicator-bar crypto" style="height: ${cryptoHeight}%"></div>
+ <div class="indicator-bar gold" style="height: ${goldHeight}%"></div>
+ `;
+}
+
+// Add smooth scrolling for navigation links
+document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..a533ac9
--- /dev/null
+++ b/style.css
@@ -0,0 +1,212 @@
+:root {
+ --primary-color: #2a3b4c;
+ --secondary-color: #f4b942;
+ --text-color: #333;
+ --background-light: #f5f7fa;
+ --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ --transition: all 0.3s ease;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background: var(--background-light);
+}
+
+header {
+ background: var(--primary-color);
+ padding: 1rem;
+ position: fixed;
+ width: 100%;
+ top: 0;
+ z-index: 1000;
+}
+
+nav {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.logo {
+ color: white;
+ font-size: 1.5rem;
+ font-weight: bold;
+ text-transform: uppercase;
+}
+
+.nav-links a {
+ color: white;
+ text-decoration: none;
+ margin-left: 2rem;
+ transition: var(--transition);
+}
+
+.nav-links a:hover {
+ color: var(--secondary-color);
+}
+
+main {
+ margin-top: 4rem;
+ padding: 2rem;
+}
+
+.hero {
+ text-align: center;
+ padding: 4rem 0;
+ background: linear-gradient(135deg, var(--primary-color), #1a2632);
+ color: white;
+ border-radius: 1rem;
+ margin-bottom: 3rem;
+}
+
+.hero h1 {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+ animation: fadeIn 1s ease-out;
+}
+
+.calculator-section,
+.analysis-section,
+.trends-section {
+ max-width: 1200px;
+ margin: 0 auto 3rem;
+ padding: 2rem;
+ background: white;
+ border-radius: 1rem;
+ box-shadow: var(--card-shadow);
+}
+
+.calculator-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ margin: 2rem 0;
+}
+
+.input-group {
+ display: flex;
+ flex-direction: column;
+}
+
+input, select {
+ padding: 0.8rem;
+ border: 2px solid #ddd;
+ border-radius: 0.5rem;
+ font-size: 1rem;
+ transition: var(--transition);
+}
+
+input:focus, select:focus {
+ border-color: var(--secondary-color);
+ outline: none;
+}
+
+.results-container {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 2rem;
+ margin-top: 2rem;
+}
+
+.result-card {
+ padding: 1.5rem;
+ background: var(--background-light);
+ border-radius: 0.5rem;
+ text-align: center;
+ transition: var(--transition);
+}
+
+.result-card:hover {
+ transform: translateY(-5px);
+}
+
+.chart-container {
+ height: 400px;
+ margin: 2rem 0;
+}
+
+.analysis-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 2rem;
+}
+
+.analysis-card {
+ padding: 1.5rem;
+ background: var(--background-light);
+ border-radius: 0.5rem;
+ text-align: center;
+}
+
+.trends-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+}
+
+.trend-card {
+ padding: 2rem;
+ background: white;
+ border-radius: 0.5rem;
+ box-shadow: var(--card-shadow);
+}
+
+footer {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ margin-top: 4rem;
+}
+
+.footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.footer-links a {
+ color: white;
+ text-decoration: none;
+ margin-left: 1rem;
+}
+
+@keyframes fadeIn {
+ from { opacity: 0; transform: translateY(20px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+@media (max-width: 768px) {
+ .nav-links {
+ display: none;
+ }
+
+ .hero h1 {
+ font-size: 2rem;
+ }
+
+ .footer-content {
+ flex-direction: column;
+ text-align: center;
+ }
+
+ .footer-links {
+ margin-top: 1rem;
+ }
+
+ .footer-links a {
+ display: block;
+ margin: 0.5rem 0;
+ }
+}