diff --git a/frontend/createStatic.py b/frontend/createStatic.py index 0a381a2db9754f4e934b18665139455ce35e5e89..b3f390ed668049bb3fd6fa4e7bd8ac7f600f01db 100644 --- a/frontend/createStatic.py +++ b/frontend/createStatic.py @@ -7,12 +7,21 @@ def render_template_to_site(): src_files = os.listdir('frontend/js') dest = 'site/js' os.makedirs(dest, exist_ok=True) - #os.mkdir(dest) for file_name in src_files: full_name = os.path.join('frontend/js', file_name) if os.path.isfile(full_name): shutil.copy(full_name, dest) + + ## copy css files to site folder + src_files = os.listdir('frontend/css') + dest = 'site/css' + os.makedirs(dest, exist_ok=True) + + for file_name in src_files: + full_name = os.path.join('frontend/css', file_name) + if os.path.isfile(full_name): + shutil.copy(full_name, dest) ## render templates to site folder file_loader = FileSystemLoader('frontend/templates') diff --git a/frontend/css/loginform.css b/frontend/css/loginform.css new file mode 100644 index 0000000000000000000000000000000000000000..697223b40feb991fabbd3128ca11cad66962d23f --- /dev/null +++ b/frontend/css/loginform.css @@ -0,0 +1,175 @@ + +/* BASIC */ + +html { + background-color: #56baed; + } + + body { + font-family: "Poppins", sans-serif; + height: 100vh; + } + + a { + color: #92badd; + display:inline-block; + text-decoration: none; + font-weight: 400; + } + + h2 { + text-align: center; + font-size: 16px; + font-weight: 600; + text-transform: uppercase; + display:inline-block; + margin: 40px 8px 10px 8px; + color: #cccccc; + } + + + + /* STRUCTURE */ + + .wrapper { + display: flex; + align-items: center; + flex-direction: column; + justify-content: center; + width: 100%; + min-height: 100%; + padding: 20px; + } + + #loginForm { + border-radius: 10px 10px 10px 10px; + background: #fff; + padding: 30px; + width: 90%; + max-width: 450px; + position: relative; + padding: 0px; + box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3); + text-align: center; + margin: auto; + } + + #formFooter { + background-color: #f6f6f6; + border-top: 1px solid #dce8f1; + padding: 25px; + text-align: center; + border-radius: 0 0 10px 10px; + } + + + + /* TABS */ + + h2.inactive { + color: #cccccc; + } + + h2.active { + color: #0d0d0d; + border-bottom: 2px solid #5fbae9; + } + + + + /* FORM TYPOGRAPHY*/ + + input[type=button], button[type=submit], input[type=reset] { + background-color: #56baed; + border: none; + color: white; + padding: 15px 80px; + text-align: center; + text-decoration: none; + display: inline-block; + text-transform: uppercase; + font-size: 13px; + -webkit-box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4); + box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4); + -webkit-border-radius: 5px 5px 5px 5px; + border-radius: 5px 5px 5px 5px; + margin: 5px 20px 40px 20px; + -webkit-transition: all 0.3s ease-in-out; + -moz-transition: all 0.3s ease-in-out; + -ms-transition: all 0.3s ease-in-out; + -o-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; + } + + input[type=button]:hover, button[type=submit]:hover, input[type=reset]:hover { + background-color: #39ace7; + } + + input[type=button]:active, button[type=submit]:active, input[type=reset]:active { + -moz-transform: scale(0.95); + -webkit-transform: scale(0.95); + -o-transform: scale(0.95); + -ms-transform: scale(0.95); + transform: scale(0.95); + } + + input[type=text] { + background-color: #f6f6f6; + border: none; + color: #0d0d0d; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + margin: 5px; + width: 85%; + border: 2px solid #f6f6f6; + -webkit-transition: all 0.5s ease-in-out; + -moz-transition: all 0.5s ease-in-out; + -ms-transition: all 0.5s ease-in-out; + -o-transition: all 0.5s ease-in-out; + transition: all 0.5s ease-in-out; + -webkit-border-radius: 5px 5px 5px 5px; + border-radius: 5px 5px 5px 5px; + } + + input[type=text]:focus { + background-color: #fff; + border-bottom: 2px solid #5fbae9; + } + + input[type=text]:placeholder { + color: #cccccc; + } + + input[type=password] { + background-color: #f6f6f6; + border: none; + color: #0d0d0d; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + margin: 5px; + width: 85%; + border: 2px solid #f6f6f6; + -webkit-transition: all 0.5s ease-in-out; + -moz-transition: all 0.5s ease-in-out; + -ms-transition: all 0.5s ease-in-out; + -o-transition: all 0.5s ease-in-out; + transition: all 0.5s ease-in-out; + -webkit-border-radius: 5px 5px 5px 5px; + border-radius: 5px 5px 5px 5px; + } + + input[type=password]:focus { + background-color: #fff; + border-bottom: 2px solid #5fbae9; + } + + input[type=password]:placeholder { + color: #cccccc; + } + \ No newline at end of file