oddeven.py 1.9 KB

1234567891011121314151617181920212223242526272829
  1. from taipy import Gui
  2. from taipy.gui import Html, navigate
  3. import taipy.gui.builder as tgb
  4. import data
  5. import csv
  6. import graphs
  7. oddEvencontent = """
  8. <|toggle|theme|>
  9. <h1>Welcome To the Odd-Even Zone</h1>
  10. <p style="font-size:18px;">Implementing the odd-even rule can help reduce traffic congestion and improve air quality.</p>
  11. <p style="margin-bottom:30px; font-size:18px;">Choose an activity to learn more about the odd-even rule:</p>
  12. <|Understanding the Rule|button|id=understandSubmit|on_action=on_action|>
  13. <div style="display: flex; justify-center">
  14. <img style="margin-bottom: 20px; margin-top: 15px; width: 200px; height: auto; margin-right: 20px;" src='images/OE.jpg' alt="Description of the image"></img>
  15. <p style="font-size:24px;">Understanding the odd-even rule is the first step. It's a system where vehicles with odd and even number plates are allowed on the roads on alternate days.</p>
  16. </div>
  17. <|Benefits of the Rule|button|id=benefitsSubmit|on_action=on_action|>
  18. <div style="display: flex; justify-center">
  19. <img style="margin-bottom: 20px; margin-top: 15px; width: 200px; height: auto; margin-right: 20px;" src="images/oddeven.jpg" alt="Description of the image"></img>
  20. <p style="font-size:24px;">The odd-even rule can have several benefits, including reduced traffic congestion, lower air pollution levels, and increased use of public transportation.</p>
  21. </div>
  22. <|Challenges of the Rule|button|id=challengeSubmit|on_action=on_action|>
  23. <div style="display: flex; justify-center">
  24. <img style="margin-bottom: 20px; margin-top: 15px; width: 200px; height: auto; margin-right: 20px;" src="images/challenges.png" alt="Description of the image"></img>
  25. <p style="font-size:24px;">While the odd-even rule has its benefits, it also comes with challenges. These can include enforcement issues, public compliance, and the need for robust public transportation systems.</p>
  26. </div>
  27. """