INTRO TO WEB DEV_

Creating the Website Files

  1. Set up your development environment. Research and choose a code editor suitable for web development.
    Hint: Click to see popular options
    Popular choices include Visual Studio Code, Sublime Text, and Atom.
  2. Create a new directory for your project. Use the command line or your file explorer to do this.
  3. Create the basic structure of your HTML file. Include the necessary meta tags and link your CSS and JavaScript files.
    Hint: Click for a basic HTML structure
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Your Title Here</title>
      <link rel="stylesheet" href="styles.css">
    </head>
    <body>
      <!-- Your content here -->
      <script src="script.js"></script>
    </body>
    </html>
  4. Design your page layout using CSS. Implement a responsive design using flexbox or grid. Research best practices for modern CSS layouts.
    Hint: Click for a flexbox example
    .container {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    .item {
      flex: 1 1 200px;
      margin: 10px;
    }
  5. Style your elements to match the retro-futuristic theme. Use CSS variables for consistent theming.
    Hint: Click for CSS variable examples
    :root {
      --bg-color: #0a192f;
      --text-color: #8892b0;
      --highlight-color: #64ffda;
    }
    body {
      background-color: var(--bg-color);
      color: var(--text-color);
    }
  6. Implement the todo list functionality using JavaScript. Research DOM manipulation and event handling to achieve this.
    Hint: Click for a basic todo list function
    function addTodo() {
      const input = document.getElementById('todoInput');
      const list = document.getElementById('todoList');
      if (input.value !== '') {
        const li = document.createElement('li');
        li.textContent = input.value;
        list.appendChild(li);
        input.value = '';
      }
    }
  7. Add animations to enhance user experience. Look into CSS transitions and keyframe animations.
    Hint: Click for a simple fade-in animation
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    .fade-in {
      animation: fadeIn 0.5s ease-in;
    }
  8. Implement local storage to persist todos between page reloads. Research the Web Storage API.
    Hint: Click for local storage example
    // Save todos
    localStorage.setItem('todos', JSON.stringify(todos));
    // Load todos
    const savedTodos = JSON.parse(localStorage.getItem('todos'));
  9. Optimize your code for performance. Research techniques like minification and lazy loading.
  10. Test your website across different browsers and devices. Fix any compatibility issues you encounter.

Hosting Your Website

  1. Ensure your HTML file is complete and named "index.html".
  2. Navigate to hs.weblion.pro:2083 in your web browser.
  3. Log in using the credentials sent to you via email.
  4. Locate the directory at web/mila.weblion.pro/public_html. Use the "Find" button at the top of the page to navigate.
  5. Upload your index.html file, overwriting the existing one in the public_html directory.
  6. Visit mila.weblion.pro in your web browser to verify that your website is live and functioning correctly.