Changes to historydate.scroll.pub

root
root
24 days ago
Initial commit
body.html
Changed around line 1
+
+

History Date

+

Uncover the most significant events from any day in history

+
+
+
+
+
+
+
+
+
+
+
+
+
+

On This Day...

+
+

+

+

+
+
+
+
+
+
+

Made with passion for history enthusiasts

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://historydate.scroll.pub
+ metaTags
+ editButton /edit.html
+ title History Date - Discover Major Events From Any Day
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "msg_01VZV9Uoq6EmXkntkW7K2wBe",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "Let me create this historical date lookup website.\n\n---domain---\nhistorydate.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://historydate.scroll.pub\nmetaTags\neditButton /edit.html\ntitle History Date - Discover Major Events From Any Day\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n
\n

History Date

\n

Uncover the most significant events from any day in history

\n
\n\n
\n
\n
\n \n \n \n
\n
\n\n
\n
\n

On This Day...

\n
\n

\n

\n

\n
\n
\n
\n
\n\n
\n

Made with passion for history enthusiasts

\n
\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --accent-color: #e74c3c;\n --background-color: #ecf0f1;\n --card-color: #ffffff;\n --text-color: #34495e;\n --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 2rem 1rem;\n text-align: center;\n box-shadow: var(--shadow);\n}\n\nh1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n animation: fadeIn 1s ease-in;\n}\n\n.tagline {\n font-size: 1.1rem;\n opacity: 0.9;\n}\n\nmain {\n flex: 1;\n padding: 2rem 1rem;\n max-width: 800px;\n margin: 0 auto;\n width: 100%;\n}\n\n.date-input {\n margin-bottom: 2rem;\n}\n\nform {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n max-width: 400px;\n margin: 0 auto;\n}\n\nlabel {\n font-size: 1.2rem;\n font-weight: 500;\n}\n\ninput[type=\"date\"] {\n padding: 0.8rem;\n border: 2px solid var(--primary-color);\n border-radius: 8px;\n font-size: 1.1rem;\n transition: border-color 0.3s ease;\n}\n\ninput[type=\"date\"]:focus {\n outline: none;\n border-color: var(--accent-color);\n}\n\nbutton {\n background-color: var(--accent-color);\n color: white;\n border: none;\n padding: 1rem;\n border-radius: 8px;\n font-size: 1.1rem;\n cursor: pointer;\n transition: transform 0.2s ease, background-color 0.2s ease;\n}\n\nbutton:hover {\n background-color: #c0392b;\n transform: translateY(-2px);\n}\n\n.event-card {\n background: var(--card-color);\n border-radius: 12px;\n padding: 2rem;\n box-shadow: var(--shadow);\n transform: translateY(0);\n transition: transform 0.3s ease;\n}\n\n.event-card:hover {\n transform: translateY(-4px);\n}\n\n.event-card h2 {\n color: var(--primary-color);\n margin-bottom: 1.5rem;\n border-bottom: 2px solid var(--accent-color);\n padding-bottom: 0.5rem;\n}\n\n.event-date {\n color: var(--accent-color);\n font-weight: 500;\n margin-bottom: 0.5rem;\n}\n\n.hidden {\n display: none;\n}\n\nfooter {\n text-align: center;\n padding: 1.5rem;\n background: var(--primary-color);\n color: white;\n margin-top: auto;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; transform: translateY(20px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n@media (max-width: 600px) {\n h1 { font-size: 2rem; }\n .event-card { padding: 1.5rem; }\n main { padding: 1rem; }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const dateForm = document.getElementById('dateForm');\n const eventCard = document.getElementById('eventCard');\n const displayDate = document.getElementById('displayDate');\n const eventTitle = document.getElementById('eventTitle');\n const eventDescription = document.getElementById('eventDescription');\n\n // Sample historical events database\n const historicalEvents = {\n '01-01': { title: 'New Year\\'s Day', description: 'The first day of the Gregorian calendar year.' },\n '07-04': { title: 'U.S. Independence Day', description: 'The United States Declaration of Independence was adopted by the Continental Congress in 1776.' },\n '12-25': { title: 'Christmas Day', description: 'Annual celebration of the birth of Jesus Christ.' }\n // Add more events as needed\n };\n\n dateForm.addEventListener('submit', (e) => {\n e.preventDefault();\n const date = new Date(document.getElementById('datePicker').value);\n const formattedDate = `${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;\n \n displayEvent(formattedDate, date);\n });\n\n function displayEvent(formattedDate, fullDate) {\n const event = historicalEvents[formattedDate] || {\n title: 'No Major Event Found',\n description: 'We\\'re still building our database. Check back later for more historical events!'\n };\n\n const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };\n displayDate.textContent = fullDate.toLocaleDateString(undefined, options);\n eventTitle.textContent = event.title;\n eventDescription.textContent = event.description;\n \n eventCard.classList.remove('hidden');\n eventCard.scrollIntoView({ behavior: 'smooth' });\n }\n});\n\n---end---\n\nThis implementation features:\n\n1. A clean, modern design with smooth animations and transitions\n2. Fully responsive layout that works on all device sizes\n3. Semantic HTML5 structure with proper ARIA roles\n4. Elegant CSS with variables, modern flexbox layout, and subtle animations\n5. Interactive JavaScript that handles date input and displays events\n6. A sample database of historical events (which can be expanded)\n7. Error handling for dates without recorded events\n8. Smooth scrolling to results\n9. Hover effects and visual feedback\n10. Accessible form controls and proper labeling\n\nThe domain name \"historydate.scroll.pub\" is:\n- Short and memorable\n- Clearly describes the purpose\n- Easy to type\n- Available (hypothetically)\n- Professional sounding\n\nThe website could be expanded by adding more historical events to the database and potentially connecting to an API for more comprehensive historical data."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 289,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2096
+ }
+ }
readme.scroll
Changed around line 1
+ # historydate.scroll.pub
+ Website generated by Claude from prompt: A website where you put a date and it tells you the biggest event that happened on that day
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', () => {
+ const dateForm = document.getElementById('dateForm');
+ const eventCard = document.getElementById('eventCard');
+ const displayDate = document.getElementById('displayDate');
+ const eventTitle = document.getElementById('eventTitle');
+ const eventDescription = document.getElementById('eventDescription');
+
+ // Sample historical events database
+ const historicalEvents = {
+ '01-01': { title: 'New Year\'s Day', description: 'The first day of the Gregorian calendar year.' },
+ '07-04': { title: 'U.S. Independence Day', description: 'The United States Declaration of Independence was adopted by the Continental Congress in 1776.' },
+ '12-25': { title: 'Christmas Day', description: 'Annual celebration of the birth of Jesus Christ.' }
+ // Add more events as needed
+ };
+
+ dateForm.addEventListener('submit', (e) => {
+ e.preventDefault();
+ const date = new Date(document.getElementById('datePicker').value);
+ const formattedDate = `${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;
+
+ displayEvent(formattedDate, date);
+ });
+
+ function displayEvent(formattedDate, fullDate) {
+ const event = historicalEvents[formattedDate] || {
+ title: 'No Major Event Found',
+ description: 'We\'re still building our database. Check back later for more historical events!'
+ };
+
+ const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
+ displayDate.textContent = fullDate.toLocaleDateString(undefined, options);
+ eventTitle.textContent = event.title;
+ eventDescription.textContent = event.description;
+
+ eventCard.classList.remove('hidden');
+ eventCard.scrollIntoView({ behavior: 'smooth' });
+ }
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #2c3e50;
+ --accent-color: #e74c3c;
+ --background-color: #ecf0f1;
+ --card-color: #ffffff;
+ --text-color: #34495e;
+ --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ line-height: 1.6;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ header {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem 1rem;
+ text-align: center;
+ box-shadow: var(--shadow);
+ }
+
+ h1 {
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+ animation: fadeIn 1s ease-in;
+ }
+
+ .tagline {
+ font-size: 1.1rem;
+ opacity: 0.9;
+ }
+
+ main {
+ flex: 1;
+ padding: 2rem 1rem;
+ max-width: 800px;
+ margin: 0 auto;
+ width: 100%;
+ }
+
+ .date-input {
+ margin-bottom: 2rem;
+ }
+
+ form {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+ max-width: 400px;
+ margin: 0 auto;
+ }
+
+ label {
+ font-size: 1.2rem;
+ font-weight: 500;
+ }
+
+ input[type="date"] {
+ padding: 0.8rem;
+ border: 2px solid var(--primary-color);
+ border-radius: 8px;
+ font-size: 1.1rem;
+ transition: border-color 0.3s ease;
+ }
+
+ input[type="date"]:focus {
+ outline: none;
+ border-color: var(--accent-color);
+ }
+
+ button {
+ background-color: var(--accent-color);
+ color: white;
+ border: none;
+ padding: 1rem;
+ border-radius: 8px;
+ font-size: 1.1rem;
+ cursor: pointer;
+ transition: transform 0.2s ease, background-color 0.2s ease;
+ }
+
+ button:hover {
+ background-color: #c0392b;
+ transform: translateY(-2px);
+ }
+
+ .event-card {
+ background: var(--card-color);
+ border-radius: 12px;
+ padding: 2rem;
+ box-shadow: var(--shadow);
+ transform: translateY(0);
+ transition: transform 0.3s ease;
+ }
+
+ .event-card:hover {
+ transform: translateY(-4px);
+ }
+
+ .event-card h2 {
+ color: var(--primary-color);
+ margin-bottom: 1.5rem;
+ border-bottom: 2px solid var(--accent-color);
+ padding-bottom: 0.5rem;
+ }
+
+ .event-date {
+ color: var(--accent-color);
+ font-weight: 500;
+ margin-bottom: 0.5rem;
+ }
+
+ .hidden {
+ display: none;
+ }
+
+ footer {
+ text-align: center;
+ padding: 1.5rem;
+ background: var(--primary-color);
+ color: white;
+ margin-top: auto;
+ }
+
+ @keyframes fadeIn {
+ from { opacity: 0; transform: translateY(20px); }
+ to { opacity: 1; transform: translateY(0); }
+ }
+
+ @media (max-width: 600px) {
+ h1 { font-size: 2rem; }
+ .event-card { padding: 1.5rem; }
+ main { padding: 1rem; }
+ }