prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Minor adjustments to navbar and homepage
  ## Navbar
  
  - [x] There should be more space between logo and 'Topics'.
  - [x] The search bar can be ~20% smaller.
  
  ## Hompeage
  
  - [x] Navbar should be transparent and fade in when user scrolls down.
  
  </issue>
  <code>
  [start of csunplugged/general/views.py]
  1 """Views for the general application."""
  2 
  3 from django.views.generic import TemplateView
  4 from django.http import HttpResponse
  5 
  6 
  7 class GeneralIndexView(TemplateView):
  8     """View for the homepage that renders from a template."""
  9 
  10     template_name = "general/index.html"
  11 
  12 
  13 class GeneralAboutView(TemplateView):
  14     """View for the about page that renders from a template."""
  15 
  16     template_name = "general/about.html"
  17 
  18 
  19 class GeneralContactView(TemplateView):
  20     """View for the contact page that renders from a template."""
  21 
  22     template_name = "general/contact.html"
  23 
  24 
  25 class GeneralPeopleView(TemplateView):
  26     """View for the people page that renders from a template."""
  27 
  28     template_name = "general/people.html"
  29 
  30 
  31 class GeneralPrinciplesView(TemplateView):
  32     """View for the princples page that renders from a template."""
  33 
  34     template_name = "general/principles.html"
  35 
  36 
  37 class WhatIsCSView(TemplateView):
  38     """View for the 'What is Computer Science?' page that renders from a template."""
  39 
  40     template_name = "general/what-is-computer-science.html"
  41 
  42 
  43 class ComputationalThinkingView(TemplateView):
  44     """View for the Computational Thinking page that renders from a template."""
  45 
  46     template_name = "general/computational-thinking.html"
  47 
  48 
  49 class HowDoITeachCSUnpluggedView(TemplateView):
  50     """View for the 'How do I teach CS Unplugged?' page that renders from a template."""
  51 
  52     template_name = "general/how-do-i-teach-cs-unplugged.html"
  53 
  54 
  55 def health_check(request):
  56     """Return heath check response for Google App Engine.
  57 
  58     Returns a 200 HTTP response for Google App Engine to detect the system
  59     is running.
  60     """
  61     return HttpResponse(status=200)
  62
  [end of csunplugged/general/views.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/csunplugged/general/views.py b/csunplugged/general/views.py
  --- a/csunplugged/general/views.py
  +++ b/csunplugged/general/views.py
  @@ -9,6 +9,16 @@
   
       template_name = "general/index.html"
   
  +    def get_context_data(self, **kwargs):
  +        """Provide the context data for the homepage.
  +
  +        Returns:
  +            Dictionary of context data.
  +        """
  +        context = super(GeneralIndexView, self).get_context_data(**kwargs)
  +        context["homepage"] = True
  +        return context
  +
   
   class GeneralAboutView(TemplateView):
       """View for the about page that renders from a template."""
  
verification_info: {"golden_diff": "diff --git a/csunplugged/general/views.py b/csunplugged/general/views.py\n--- a/csunplugged/general/views.py\n+++ b/csunplugged/general/views.py\n@@ -9,6 +9,16 @@\n \n     template_name = \"general/index.html\"\n \n+    def get_context_data(self, **kwargs):\n+        \"\"\"Provide the context data for the homepage.\n+\n+        Returns:\n+            Dictionary of context data.\n+        \"\"\"\n+        context = super(GeneralIndexView, self).get_context_data(**kwargs)\n+        context[\"homepage\"] = True\n+        return context\n+\n \n class GeneralAboutView(TemplateView):\n     \"\"\"View for the about page that renders from a template.\"\"\"\n", "issue": "Minor adjustments to navbar and homepage\n## Navbar\r\n\r\n- [x] There should be more space between logo and 'Topics'.\r\n- [x] The search bar can be ~20% smaller.\r\n\r\n## Hompeage\r\n\r\n- [x] Navbar should be transparent and fade in when user scrolls down.\n", "before_files": [{"content": "\"\"\"Views for the general application.\"\"\"\n\nfrom django.views.generic import TemplateView\nfrom django.http import HttpResponse\n\n\nclass GeneralIndexView(TemplateView):\n    \"\"\"View for the homepage that renders from a template.\"\"\"\n\n    template_name = \"general/index.html\"\n\n\nclass GeneralAboutView(TemplateView):\n    \"\"\"View for the about page that renders from a template.\"\"\"\n\n    template_name = \"general/about.html\"\n\n\nclass GeneralContactView(TemplateView):\n    \"\"\"View for the contact page that renders from a template.\"\"\"\n\n    template_name = \"general/contact.html\"\n\n\nclass GeneralPeopleView(TemplateView):\n    \"\"\"View for the people page that renders from a template.\"\"\"\n\n    template_name = \"general/people.html\"\n\n\nclass GeneralPrinciplesView(TemplateView):\n    \"\"\"View for the princples page that renders from a template.\"\"\"\n\n    template_name = \"general/principles.html\"\n\n\nclass WhatIsCSView(TemplateView):\n    \"\"\"View for the 'What is Computer Science?' page that renders from a template.\"\"\"\n\n    template_name = \"general/what-is-computer-science.html\"\n\n\nclass ComputationalThinkingView(TemplateView):\n    \"\"\"View for the Computational Thinking page that renders from a template.\"\"\"\n\n    template_name = \"general/computational-thinking.html\"\n\n\nclass HowDoITeachCSUnpluggedView(TemplateView):\n    \"\"\"View for the 'How do I teach CS Unplugged?' page that renders from a template.\"\"\"\n\n    template_name = \"general/how-do-i-teach-cs-unplugged.html\"\n\n\ndef health_check(request):\n    \"\"\"Return heath check response for Google App Engine.\n\n    Returns a 200 HTTP response for Google App Engine to detect the system\n    is running.\n    \"\"\"\n    return HttpResponse(status=200)\n", "path": "csunplugged/general/views.py"}]}