#ifndef HTTPHEADERS_H #define HTTPHEADERS_H #include "version.h" #include namespace http { extern QString HTML_PAGE; static QString HEADER_OK = "\ HTTP/1.0 200 OK\r\n\ Content-Type: text/html;\r\n\ charset=\"utf-8\"\r\n\r\n"; static QString HEADER_REJECT = "\ HTTP/1.0 418 I'm a teapot\r\n\r\n"; static QString FAVICON = " \r\n"; static QString NO_FAVICON = " \r\n"; static QString HTML_PAGE_SRC_1 = HEADER_OK + "\ \r\n\ \r\n\ \r\n\ \r\n\ Mario DNS tool\r\n"; /* favicon is here */ static QString HTML_PAGE_SRC_2 = "\ \r\n\ \r\n\ \r\n\
\r\n\
\r\n\
\r\n\ Mario DNS tool\r\n\
\r\n\
\r\n\
\r\n\
\r\n\
\r\n\ \r\n\
\r\n\
\r\n\
\r\n\
\r\n\ {{TEXT}}\r\n\
\r\n\
\r\n\
\r\n\
\r\n\ " + COPYRIGHT + " | source code\r\n\
\r\n\
\r\n\ \r\n\ \r\n\ "; static QString CSS_DEFAULT = "\ body {\r\n\ font-family: monospace;\r\n\ margin: 0;\r\n\ padding: 0;\r\n\ }\r\n\ .wrapper {\r\n\ height: 100vh;\r\n\ display: flex;\r\n\ flex-direction: column;\r\n\ }\r\n\ .inner_wrapper {\r\n\ padding: 0 15%;\r\n\ }\r\n\ .header {\r\n\ flex: 10%;\r\n\ display: flex;\r\n\ justify-content: space-around;\r\n\ }\r\n\ .header_title {\r\n\ font-size: 44px;\r\n\ padding-top: 1.25%;\r\n\ }\r\n\ .main {\r\n\ flex: 83%;\r\n\ height: 100vh;\r\n\ display: flex;\r\n\ flex-direction: column;\r\n\ }\r\n\ .main__input {\r\n\ flex: 30%;\r\n\ display: flex;\r\n\ justify-content: space-around;\r\n\ align-items: center;\r\n\ }\r\n\ .main__input_form {\r\n\ height: 20%;\r\n\ width: 100%;\r\n\ white-space: nowrap;\r\n\ }\r\n\ .main__input_line {\r\n\ font-family: monospace;\r\n\ font-size: 24px;\r\n\ height: 100%;\r\n\ width: 86%;\r\n\ }\r\n\ .main__input_button {\r\n\ font-family: monospace;\r\n\ font-size: 24px;\r\n\ color: darkgreen;\r\n\ height: 110%;\r\n\ width: 13%;\r\n\ background: #73b06a;\r\n\ border: none;\r\n\ }\r\n\ .main__input_button:hover {\r\n\ background: #49a83b;\r\n\ }\r\n\ .main__info {\r\n\ flex: 68%;\r\n\ }\r\n\ .main__info_field {\r\n\ font-size: 22px;\r\n\ border: 1px solid {{COLOR}};\r\n\ padding: 2% 2%;\r\n\ }\r\n\ .footer {\r\n\ font-size: 16px;\r\n\ color: grey;\r\n\ flex: 5%;\r\n\ display: flex;\r\n\ justify-content: center;\r\n\ }\r\n\ \r\n\ @media (max-width: 750px) {\r\n\ .inner_wrapper {\r\n\ padding: 0%;\r\n\ }\r\n\ .main__input_form {\r\n\ padding: 0 2%;\r\n\ }\r\n\ .main__info {\r\n\ padding: 0 2%;\r\n\ }\r\n\ }\r\n\ @media (max-height: 600px) {\r\n\ .main__input_button {\r\n\ height: 120%;\r\n\ }\r\n\ }"; } // namespace #endif // HTTPHEADERS_H