Move Generic Style out of Templates

This commit is contained in:
Tina_Azure
2023-04-17 03:15:57 +02:00
parent 81e6b7e8d5
commit 382a834506
9 changed files with 41 additions and 137 deletions

View File

@ -1,23 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> {{> templateIncludes/style.css.html}}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head> </head>
<body> <body>
<h1>Redirecting:</h1> <h1>Redirecting:</h1>
@ -29,7 +13,6 @@
} }
window.onload = formAutoSubmit; window.onload = formAutoSubmit;
</script> </script>
<form action="/" method="post"> <form action="/" method="post">
<button type="submit" class="button">Return to freelancer selection</button> <button type="submit" class="button">Return to freelancer selection</button>

View File

@ -1,23 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> {{> templateIncludes/style.css.html}}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head> </head>
<body> <body>
<h2>Freelancer Profiles</h2> <h2>Freelancer Profiles</h2>
@ -39,6 +23,22 @@
</tr> </tr>
{{/freelancerProfiles}} {{/freelancerProfiles}}
</table> </table>
<div>
{{^cookieloggedin}}
<form action="/freelancer/login" method="get">
<button type="submit" class="button">Freelancer Login</button>
</form>
{{/cookieloggedin}}
{{#cookieloggedin}}
<form action="/freelancer/profile" method="get">
<button type="submit" class="button">Profile</button>
</form>
<br>
<form action="/freelancer/logout" method="get">
<button type="submit" class="button">Logout</button>
</form>
{{/cookieloggedin}}
</div>
</body> </body>
</html> </html>

View File

@ -1,23 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> {{> templateIncludes/style.css.html}}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head> </head>
<body> <body>
<h2>Freelancer: {{freelancername}}</h2> <h2>Freelancer: {{freelancername}}</h2>

View File

@ -1,23 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> {{> templateIncludes/style.css.html}}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head> </head>
<body> <body>
<h1>Freelancer: {{selectedfreelancername}} Could not be found!</h1> <h1>Freelancer: {{selectedfreelancername}} Could not be found!</h1>

View File

@ -1,23 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> {{> templateIncludes/style.css.html}}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head> </head>
<body> <body>
<h2>Freelancer: {{freelancername}}</h2> <h2>Freelancer: {{freelancername}}</h2>

View File

@ -1,23 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> {{> templateIncludes/style.css.html}}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head> </head>
<body> <body>
<h2>Freelancer: {{freelancername}}</h2> <h2>Freelancer: {{freelancername}}</h2>

View File

@ -1,23 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> {{> templateIncludes/style.css.html}}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head> </head>
<body> <body>
<h2>Freelancer: {{freelancername}}</h2> <h2>Freelancer: {{freelancername}}</h2>

View File

@ -1,23 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> {{> templateIncludes/style.css.html}}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head> </head>
<body> <body>
<h2>Freelancer: {{freelancername}}</h2> <h2>Freelancer: {{freelancername}}</h2>

View File

@ -0,0 +1,17 @@
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>