text: ollow this rules
  before you give me the code i want you to tell me how long the code is gonna be like number lines, parts,
  Do not write examples.
  do not give me any code until i tell you to start.
  split the code into multiple logical small parts.
  allways contunie from the above codes.
   ask me to tell you to move to the next part , code block.
  end of the rules.
  now  i want you to give me the code for arduino esp8266 control 8 relays using web-socket updating stats of the relays of the webpage and support for OTA, plus a responsive design html code using dark mode whit bootstrap ,
  use this pin out
  int RELAY1 = 5;  //D1 on ESP Board
  int RELAY2 = 4;  //D2 on ESP Board
  int RELAY3 = 0;  //D3 on ESP Board
  int RELAY4 = 2;  //D4 on ESP Board
  int RELAY5 = 14; //D5 on ESP Board
  int RELAY6 = 12; //D6 on ESP Board
  int RELAY7 = 13; //D7 on ESP Board
  int RELAY8 = 16; //D0 on ESP Board 