commit 6d1d9c8903857665c2aabce64a01aa22dc21041a
Author: root <root@hub.scroll.pub>
Date: 2025-01-09 10:50:31 +0000
Subject: Initial commit
diff --git a/concepts.scroll b/concepts.scroll
new file mode 100644
index 0000000..d976822
--- /dev/null
+++ b/concepts.scroll
@@ -0,0 +1,36 @@
+measures.parsers
+
+id DirectAffiliate
+tier 1
+commission 10.0
+minReferrals 0
+maxAffiliates 100
+earningsPotential 1000
+
+id SilverLeader
+tier 2
+commission 5.0
+minReferrals 10
+maxAffiliates 50
+earningsPotential 2500
+
+id GoldManager
+tier 3
+commission 3.0
+minReferrals 25
+maxAffiliates 25
+earningsPotential 5000
+
+id PlatinumDirector
+tier 4
+commission 2.0
+minReferrals 50
+maxAffiliates 10
+earningsPotential 7500
+
+id DiamondExecutive
+tier 5
+commission 1.0
+minReferrals 100
+maxAffiliates 5
+earningsPotential 10000
diff --git a/footer.scroll b/footer.scroll
new file mode 100644
index 0000000..679e89f
--- /dev/null
+++ b/footer.scroll
@@ -0,0 +1,3 @@
+importOnly
+center
+scrollVersionLink
diff --git a/header.scroll b/header.scroll
new file mode 100644
index 0000000..f200060
--- /dev/null
+++ b/header.scroll
@@ -0,0 +1,9 @@
+importOnly
+buildHtml
+homeButton
+metaTags
+editButton
+editBaseUrl /edit.html?folderName=affiliate5.scroll.pub&fileName=
+metaTags
+style.css
+script.js
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..7b2050c
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,19 @@
+title 5-Tier Affiliate Structure Database
+header.scroll
+
+# 5-Tier Affiliate Structure System
+
+This database defines a sophisticated 5-layer affiliate marketing structure with progressive tiers, commissions, and requirements.
+
+## Key Features
+- Supports up to 5 levels of affiliate hierarchy
+- Progressive commission structure
+- Scalable referral requirements
+- Controlled growth through affiliate limits
+- Transparent earnings potential
+
+concepts.scroll
+concepts
+ printTable
+
+footer.scroll
diff --git a/measures.parsers b/measures.parsers
new file mode 100644
index 0000000..a2840c5
--- /dev/null
+++ b/measures.parsers
@@ -0,0 +1,17 @@
+idParser
+ extends abstractIdParser
+tierParser
+ extends abstractIntegerMeasureParser
+ description The depth level in the affiliate structure (1-5)
+commissionParser
+ extends abstractFloatMeasureParser
+ description The commission percentage earned at this level
+minReferralsParser
+ extends abstractIntegerMeasureParser
+ description Minimum referrals needed to unlock this tier
+maxAffiliatesParser
+ extends abstractIntegerMeasureParser
+ description Maximum number of direct affiliates allowed at this level
+earningsPotentialParser
+ extends abstractIntegerMeasureParser
+ description Estimated monthly earnings potential in USD
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..2c47926
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_01ANqWU7fg2G4iQxsm8GeSke",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll help create a knowledge base for an affiliate database system with 5 layers.\n\n---domain---\naffiliate5.scroll.pub\n\n---measures.parsers---\nidParser\n extends abstractIdParser\ntierParser\n extends abstractIntegerMeasureParser\n description The depth level in the affiliate structure (1-5)\ncommissionParser\n extends abstractFloatMeasureParser\n description The commission percentage earned at this level\nminReferralsParser\n extends abstractIntegerMeasureParser\n description Minimum referrals needed to unlock this tier\nmaxAffiliatesParser\n extends abstractIntegerMeasureParser\n description Maximum number of direct affiliates allowed at this level\nearningsPotentialParser\n extends abstractIntegerMeasureParser\n description Estimated monthly earnings potential in USD\n\n---concepts.scroll---\nmeasures.parsers\n\nid DirectAffiliate\ntier 1\ncommission 10.0\nminReferrals 0\nmaxAffiliates 100\nearningsPotential 1000\n\nid SilverLeader\ntier 2\ncommission 5.0\nminReferrals 10\nmaxAffiliates 50\nearningsPotential 2500\n\nid GoldManager\ntier 3\ncommission 3.0\nminReferrals 25\nmaxAffiliates 25\nearningsPotential 5000\n\nid PlatinumDirector\ntier 4\ncommission 2.0\nminReferrals 50\nmaxAffiliates 10\nearningsPotential 7500\n\nid DiamondExecutive\ntier 5\ncommission 1.0\nminReferrals 100\nmaxAffiliates 5\nearningsPotential 10000\n\n---index.scroll---\ntitle 5-Tier Affiliate Structure Database\nheader.scroll\n\n# 5-Tier Affiliate Structure System\n\nThis database defines a sophisticated 5-layer affiliate marketing structure with progressive tiers, commissions, and requirements.\n\n## Key Features\n- Supports up to 5 levels of affiliate hierarchy\n- Progressive commission structure\n- Scalable referral requirements\n- Controlled growth through affiliate limits\n- Transparent earnings potential\n\nconcepts.scroll\nconcepts\n printTable\n\nfooter.scroll\n\n---header.scroll---\nimportOnly\nbuildHtml\nhomeButton\nmetaTags\neditButton\neditBaseUrl /edit.html?folderName=affiliate5.scroll.pub&fileName=\nmetaTags\nstyle.css\nscript.js\n\n---footer.scroll---\nimportOnly\ncenter\nscrollVersionLink\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --accent-color: #3498db;\n --background-color: #ecf0f1;\n --text-color: #2c3e50;\n --table-border: #bdc3c7;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background: var(--background-color);\n margin: 0;\n padding: 0;\n}\n\n.container {\n max-width: 1200px;\n margin: 0 auto;\n padding: 2rem;\n}\n\nh1, h2 {\n color: var(--primary-color);\n background: linear-gradient(120deg, var(--accent-color) 0%, var(--primary-color) 100%);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n margin-bottom: 2rem;\n}\n\ntable {\n width: 100%;\n border-collapse: collapse;\n background: white;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n margin: 2rem 0;\n}\n\nth, td {\n padding: 1rem;\n text-align: left;\n border-bottom: 1px solid var(--table-border);\n}\n\nth {\n background: var(--primary-color);\n color: white;\n}\n\ntr:hover {\n background: rgba(52, 152, 219, 0.1);\n}\n\n@media (max-width: 768px) {\n table {\n display: block;\n overflow-x: auto;\n }\n \n .container {\n padding: 1rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Add smooth scroll behavior\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n document.querySelector(this.getAttribute('href')).scrollIntoView({\n behavior: 'smooth'\n });\n });\n });\n\n // Add table row hover effects\n const tableRows = document.querySelectorAll('tr');\n tableRows.forEach(row => {\n row.addEventListener('mouseenter', function() {\n this.style.transform = 'scale(1.01)';\n this.style.transition = 'transform 0.2s ease';\n });\n \n row.addEventListener('mouseleave', function() {\n this.style.transform = 'scale(1)';\n });\n });\n});\n\n---end---"
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 702,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 1313
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..e8d7122
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,3 @@
+# affiliate5.scroll.pub
+
+database generated by Claude from prompt: affliate database that can handle 5 layers
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..e976163
--- /dev/null
+++ b/script.js
@@ -0,0 +1,24 @@
+document.addEventListener('DOMContentLoaded', function() {
+ // Add smooth scroll behavior
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ });
+ });
+
+ // Add table row hover effects
+ const tableRows = document.querySelectorAll('tr');
+ tableRows.forEach(row => {
+ row.addEventListener('mouseenter', function() {
+ this.style.transform = 'scale(1.01)';
+ this.style.transition = 'transform 0.2s ease';
+ });
+
+ row.addEventListener('mouseleave', function() {
+ this.style.transform = 'scale(1)';
+ });
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..22791a5
--- /dev/null
+++ b/style.css
@@ -0,0 +1,66 @@
+:root {
+ --primary-color: #2c3e50;
+ --accent-color: #3498db;
+ --background-color: #ecf0f1;
+ --text-color: #2c3e50;
+ --table-border: #bdc3c7;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background: var(--background-color);
+ margin: 0;
+ padding: 0;
+}
+
+.container {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 2rem;
+}
+
+h1, h2 {
+ color: var(--primary-color);
+ background: linear-gradient(120deg, var(--accent-color) 0%, var(--primary-color) 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ margin-bottom: 2rem;
+}
+
+table {
+ width: 100%;
+ border-collapse: collapse;
+ background: white;
+ border-radius: 8px;
+ overflow: hidden;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ margin: 2rem 0;
+}
+
+th, td {
+ padding: 1rem;
+ text-align: left;
+ border-bottom: 1px solid var(--table-border);
+}
+
+th {
+ background: var(--primary-color);
+ color: white;
+}
+
+tr:hover {
+ background: rgba(52, 152, 219, 0.1);
+}
+
+@media (max-width: 768px) {
+ table {
+ display: block;
+ overflow-x: auto;
+ }
+
+ .container {
+ padding: 1rem;
+ }
+}