diff --git a/app.js b/app.js
index b01556e..3d7d048 100644
--- a/app.js
+++ b/app.js
@@ -3,66 +3,78 @@ let clickCount = 0;
let currentBackgroundIndex = 0;
// Background color variations
-const backgroundClasses = ['', 'bg-variant-1', 'bg-variant-2', 'bg-variant-3', 'bg-variant-4'];
+const backgroundClasses = [
+ "",
+ "bg-variant-1",
+ "bg-variant-2",
+ "bg-variant-3",
+ "bg-variant-4",
+];
// Function to change background color
function changeBackgroundColor() {
- // Increment click counter
- clickCount++;
- document.getElementById('clickCounter').textContent = `Clicks: ${clickCount}`;
-
- // Remove current background class
- document.body.className = '';
-
- // Cycle through background variations
- currentBackgroundIndex = (currentBackgroundIndex + 1) % backgroundClasses.length;
-
- // Apply new background class
- if (backgroundClasses[currentBackgroundIndex]) {
- document.body.classList.add(backgroundClasses[currentBackgroundIndex]);
- }
-
- // Add a fun animation effect
- document.getElementById('colorButton').style.transform = 'scale(0.95)';
- setTimeout(() => {
- document.getElementById('colorButton').style.transform = '';
- }, 150);
+ // Increment click counter
+ clickCount++;
+ document.getElementById("clickCounter").textContent = `Clicks: ${clickCount}`;
+
+ // Remove current background class
+ document.body.className = "";
+
+ // Cycle through background variations
+ currentBackgroundIndex =
+ (currentBackgroundIndex + 1) % backgroundClasses.length;
+
+ // Apply new background class
+ if (backgroundClasses[currentBackgroundIndex]) {
+ document.body.classList.add(backgroundClasses[currentBackgroundIndex]);
+ }
+
+ // Add a fun animation effect
+ document.getElementById("colorButton").style.transform = "scale(0.95)";
+ setTimeout(() => {
+ document.getElementById("colorButton").style.transform = "";
+ }, 150);
}
// Welcome message when page loads
-document.addEventListener('DOMContentLoaded', function() {
- console.log('🎉 Welcome to your first web app!');
- console.log('💡 Tip: Open the browser developer tools (F12) to see this message and experiment with the console!');
-
- // Add some console styling for fun
- console.log('%c🚀 Ready for development!', 'color: #667eea; font-size: 16px; font-weight: bold;');
-
- // Show a brief welcome animation
- document.body.style.opacity = '0';
- document.body.style.transition = 'opacity 0.5s ease-in';
-
- setTimeout(() => {
- document.body.style.opacity = '1';
- }, 100);
+document.addEventListener("DOMContentLoaded", function () {
+ console.log("🎉 Welcome to your first web app!");
+ console.log(
+ "💡 Tip: Open the browser developer tools (F12) to see this message and experiment with the console!",
+ );
+
+ // Add some console styling for fun
+ console.log(
+ "%c🚀 Ready for development!",
+ "color: #667eea; font-size: 16px; font-weight: bold;",
+ );
+
+ // Show a brief welcome animation
+ document.body.style.opacity = "0";
+ document.body.style.transition = "opacity 0.5s ease-in";
+
+ setTimeout(() => {
+ document.body.style.opacity = "1";
+ }, 100);
});
// Fun keyboard shortcut (press 'c' to change colors)
-document.addEventListener('keydown', function(event) {
- if (event.key.toLowerCase() === 'c') {
- changeBackgroundColor();
- }
+document.addEventListener("keydown", function (event) {
+ if (event.key.toLowerCase() === "c") {
+ changeBackgroundColor();
+ }
});
// Display current time (updates every second)
function updateTime() {
- const now = new Date();
- const timeString = now.toLocaleTimeString();
-
- // Create time display if it doesn't exist
- if (!document.getElementById('currentTime')) {
- const timeDisplay = document.createElement('div');
- timeDisplay.id = 'currentTime';
- timeDisplay.style.cssText = `
+ const now = new Date();
+ const timeString = now.toLocaleTimeString();
+
+ // Create time display if it doesn't exist
+ if (!document.getElementById("currentTime")) {
+ const timeDisplay = document.createElement("div");
+ timeDisplay.id = "currentTime";
+ timeDisplay.style.cssText = `
position: fixed;
top: 10px;
right: 10px;
@@ -73,10 +85,11 @@ function updateTime() {
color: #4a5568;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
`;
- document.body.appendChild(timeDisplay);
- }
-
- document.getElementById('currentTime').textContent = `Current time: ${timeString}`;
+ document.body.appendChild(timeDisplay);
+ }
+
+ document.getElementById("currentTime").textContent =
+ `Current time: ${timeString}`;
}
// Update time every second
diff --git a/index.html b/index.html
index e3402e9..c9f88d2 100644
--- a/index.html
+++ b/index.html
@@ -1,61 +1,146 @@
-
+
+
-
-
- Client-side web app
-
+
+
+ Client-side web app
+
+
-
-
-
-
- What you've accomplished
-
- - ✅ Set up a local development environment
- - ✅ Installed Node.js dependencies
- - ✅ Started a local web server that uses
http-server
- - ✅ Previewed a live version of your app
-
-
-
-
- Try this!
- Make changes to this HTML file or the CSS file and save. Then refresh your browser to see the changes.
-
-
-
-
Clicks: 0
-
-
-
-
- Next Steps
-
-
-
🎨 Styling
-
Edit styles.css to change how your app looks
-
-
-
⚡ Functionality
-
Edit app.js to add more interactive features
-
-
-
📱 Responsive
-
Try resizing your browser window to see responsive design
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ What you've accomplished
+
+ - ✅ Set up a local development environment
+ - ✅ Installed Node.js dependencies
+ - ✅ Started a local web server that uses
http-server
+ - ✅ Previewed a live version of your app
+
+
+
+
+ Try this!
+ Make changes to this HTML file or the CSS file and save. Then refresh your browser to see the changes.
+
+
+
+
Clicks: 0
+
+
+
+
+ Next Steps
+
+
+
🎨 Styling
+
Edit styles.css to change how your app looks
+
+
+
⚡ Functionality
+
Edit app.js to add more interactive features
+
+
+
📱 Responsive
+
Try resizing your browser window to see responsive design
+
+
+
+
+ Datos personales
+
+
+
+ Whatssapp
+
+
+
+ Formulario de contacto
+
+
+
+
+
+
+
-
+
+
\ No newline at end of file
diff --git a/notas-mias.md b/notas-mias.md
new file mode 100644
index 0000000..a86ae0a
--- /dev/null
+++ b/notas-mias.md
@@ -0,0 +1 @@
+Este es un markdown para anotar los cambios efectuados a partir del original
diff --git a/styles.css b/styles.css
index 0e7b964..df5f5fa 100644
--- a/styles.css
+++ b/styles.css
@@ -1,186 +1,209 @@
/* Reset and base styles */
+html {
+ scroll-behavior: smooth;
+}
* {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
}
body {
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- line-height: 1.6;
- color: #333;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- min-height: 100vh;
- transition: background 0.5s ease;
+ font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
+ line-height: 1.6;
+ color: #333;
+ background: linear-gradient(135deg, #667eea 0%, #d52828 100%);
+ min-height: 100vh;
+ transition: background 0.5s ease;
}
/* Header styles */
header {
- text-align: center;
- padding: 2rem 1rem;
- background: rgba(255, 255, 255, 0.1);
- backdrop-filter: blur(10px);
- border-bottom: 1px solid rgba(255, 255, 255, 0.2);
+ text-align: center;
+ padding: 2rem 1rem;
+ background: rgba(255, 255, 255, 0.1);
+ backdrop-filter: blur(10px);
+ border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
header h1 {
- font-size: 2.5rem;
- color: white;
- margin-bottom: 0.5rem;
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
+ font-size: 2.5rem;
+ color: rgb(232, 30, 30);
+ margin-bottom: 0.5rem;
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
header p {
- font-size: 1.2rem;
- color: rgba(255, 255, 255, 0.9);
+ font-size: 1.2rem;
+ color: rgba(255, 255, 255, 0.9);
}
/* Main content */
main {
- max-width: 1200px;
- margin: 0 auto;
- padding: 2rem 1rem;
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 2rem 1rem;
}
/* Card styles */
-.info-card, .experiment-zone, .learning-tips {
- background: rgba(255, 255, 255, 0.95);
- border-radius: 15px;
- padding: 2rem;
- margin-bottom: 2rem;
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.2);
-}
-
-.info-card h2, .experiment-zone h2, .learning-tips h2 {
- color: #4a5568;
- margin-bottom: 1rem;
- font-size: 1.8rem;
+.info-card,
+.experiment-zone,
+.learning-tips {
+ background: rgba(255, 255, 255, 0.95);
+ border-radius: 15px;
+ padding: 2rem;
+ margin-bottom: 2rem;
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
+ backdrop-filter: blur(10px);
+ border: 1px solid rgba(255, 255, 255, 0.2);
+}
+
+.info-card,
+.experiment-zone,
+.learning-tips {
+ color: #4a5568;
+ margin-bottom: 1rem;
+ font-size: 1.8rem;
}
.info-card ul {
- list-style: none;
- padding-left: 0;
+ list-style: none;
+ padding-left: 0;
+}
+h2 {
+ color: #667eea;
+ font-size: 30px;
+ font-family: sans-serif;
+ text-shadow: 0.5px 0.5px 0.25rem;
}
-
.info-card li {
- padding: 0.5rem 0;
- font-size: 1.1rem;
- color: #2d3748;
+ padding: 0.5rem 0;
+ font-size: 1.1rem;
+ color: #2d3748;
}
/* Interactive demo */
.interactive-demo {
- background: #f7fafc;
- border-radius: 10px;
- padding: 1.5rem;
- margin-top: 1rem;
- text-align: center;
+ background: #f7fafc;
+ border-radius: 10px;
+ padding: 1.5rem;
+ margin-top: 1rem;
+ text-align: center;
}
#colorButton {
- background: linear-gradient(45deg, #667eea, #764ba2);
- color: white;
- border: none;
- padding: 12px 24px;
- font-size: 1rem;
- border-radius: 25px;
- cursor: pointer;
- transition: all 0.3s ease;
- margin-bottom: 1rem;
+ background: linear-gradient(45deg, #667eea, #764ba2);
+ color: white;
+ border: none;
+ padding: 12px 24px;
+ font-size: 1rem;
+ border-radius: 25px;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ margin-bottom: 1rem;
}
#colorButton:hover {
- transform: translateY(-2px);
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
+ transform: translateY(-2px);
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
#clickCounter {
- font-size: 1.2rem;
- color: #4a5568;
- font-weight: bold;
+ font-size: 1.2rem;
+ color: #4a5568;
+ font-weight: bold;
}
/* Tips grid */
.tip-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
- gap: 1.5rem;
- margin-top: 1rem;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 1.5rem;
+ margin-top: 1rem;
}
.tip {
- background: #f7fafc;
- padding: 1.5rem;
- border-radius: 10px;
- border-left: 4px solid #667eea;
+ background: #f7fafc;
+ padding: 1.5rem;
+ border-radius: 10px;
+ border-left: 4px solid #667eea;
}
.tip h3 {
- color: #2d3748;
- margin-bottom: 0.5rem;
+ color: #2d3748;
+ margin-bottom: 0.5rem;
}
.tip p {
- color: #4a5568;
+ color: #4a5568;
+}
+a:not(.otra) {
+ font-size: 20px;
+ text-decoration: none;
+ box-shadow: 2px 2px 0.5rem;
+ background-color: #a8edea;
+}
+ul {
+ list-style-type: none;
}
-
code {
- background: #e2e8f0;
- padding: 2px 6px;
- border-radius: 4px;
- font-family: 'Courier New', monospace;
- color: #2d3748;
+ background: #e2e8f0;
+ padding: 2px 6px;
+ border-radius: 4px;
+ font-family: "Courier New", monospace;
+ color: #2d3748;
}
/* Footer */
footer {
- text-align: center;
- padding: 2rem;
- color: rgba(255, 255, 255, 0.8);
+ text-align: center;
+ padding: 2rem;
+ color: rgba(255, 255, 255, 0.8);
}
footer p {
- margin-bottom: 0.5rem;
+ margin-bottom: 0.5rem;
}
/* Responsive design */
@media (max-width: 768px) {
- header h1 {
- font-size: 2rem;
- }
-
- header p {
- font-size: 1rem;
- }
-
- main {
- padding: 1rem;
- }
-
- .info-card, .experiment-zone, .learning-tips {
- padding: 1.5rem;
- }
-
- .tip-grid {
- grid-template-columns: 1fr;
- }
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ main {
+ padding: 1rem;
+ }
+
+ .info-card,
+ .prueba,
+ .experiment-zone,
+ .learning-tips {
+ padding: 1.5rem;
+ }
+
+ .tip-grid {
+ grid-template-columns: 1fr;
+ }
}
/* Background color variations for the interactive demo */
.bg-variant-1 {
- background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
+ background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
}
.bg-variant-2 {
- background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
+ background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
}
.bg-variant-3 {
- background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
+ background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
}
.bg-variant-4 {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}