Skip to content

Commit

Permalink
Merge pull request #338 from FAIMS/fieldmark-rebrand-alt
Browse files Browse the repository at this point in the history
Fieldmark Rebrand (mk 2)
  • Loading branch information
stevecassidy authored Sep 22, 2023
2 parents f90dd36 + f1f05d5 commit ba3d1ed
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 22 deletions.
31 changes: 31 additions & 0 deletions couchdb/local.ini.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
; CouchDB Configuration Settings for FAIMS

[couchdb]
max_document_size = 4294967296 ; bytes
os_process_timeout = 5000 ; 5 sec
uuid = adf990d5dd21b735f65d4140ad1f10c2

[chttpd]
port = 5984
bind_address = 0.0.0.0
authentication_handlers = {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, jwt_authentication_handler}, {chttpd_auth, default_authentication_handler}


[httpd]
enable_cors = true

[couchdb]
single_node=true

[log]
writer = syslog
level = info

[chttpd_auth]
secret = 0d468e9b-9dcc-44bf-9bf3-a75433f6f970

[cors]
origins = *
headers = accept, authorization, content-type, origin, referer
credentials = true
methods = GET, PUT, POST, HEAD, DELETE
Binary file removed public/images/Faims-medium.png
Binary file not shown.
Binary file removed public/images/Faims-white-small.png
Binary file not shown.
Binary file added public/images/Fieldmark-Portrait-Margin@4x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/Fieldmark-Short-Green@4x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/favicon.ico
Binary file not shown.
Binary file added public/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions public/images/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/couchdb/initialise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const initialiseProjectsDB = async (
if (userCtx.roles.indexOf('_admin') < 0) {
throw {
unauthorized:
\`Access denied for \${userCtx.roles}. Only the FAIMS server may modify projects\`,
\`Access denied for \${userCtx.roles}. Only the Fieldmark server may modify projects\`,
};
}
}`,
Expand Down Expand Up @@ -72,7 +72,7 @@ export const initialiseDirectoryDB = async (
const directoryDoc = {
_id: 'default',
name: CONDUCTOR_INSTANCE_NAME,
description: `FAIMS instance on ${CONDUCTOR_PUBLIC_URL}`,
description: `Fieldmark instance on ${CONDUCTOR_PUBLIC_URL}`,
people_db: {
db_name: 'people',
},
Expand All @@ -88,7 +88,7 @@ export const initialiseDirectoryDB = async (
if (userCtx.roles.indexOf('_admin') >= 0) {
return;
}
throw({forbidden: "Access denied. Only the FAIMS admin can modify the directory."});
throw({forbidden: "Access denied. Only the Fieldmark admin can modify the directory."});
}`,
};

Expand Down
2 changes: 1 addition & 1 deletion views/auth.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

{{#each providers}}
<a href="/auth/{{ this.label }}/" class="w-100 btn btn-lg btn-primary"
style="background-color:#1B3E93;">{{ this.name }}</a>
style="background-color:#669911;">{{ this.name }}</a>
{{/each}}

<div class=" w-100 m-auto text-center">
Expand Down
2 changes: 1 addition & 1 deletion views/home.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{{#if cluster_admin}}
<div class="card">
<div class="card-header">
<h2>Cluster Administration</h2>
Cluster Administration
</div>
<div class="card-body">
<a href="/users/">User Management</a>
Expand Down
40 changes: 26 additions & 14 deletions views/layouts/main.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<title>FAIMS-3 Conductor</title>
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
<title>Fieldmark Conductor</title>
<link rel="icon" type="image/png" href="/images/favicon.png">
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">

Expand All @@ -21,43 +22,54 @@
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
background-color: #edeeeb;
}
.form-signin {
max-width: 400px;
padding: 15px;
}
.btn-primary {
background-color: #1B3E93;
border-color: #1B3E93
}
.btn-outline-primary {
color: #1B3E93;
border-color: #1B3E93
color: #669911;
border-color: #669911;
}
.callout{
padding: 1.25rem;
margin-top: 1.25rem;
margin-bottom: 1.25rem;
background-color: #F8F9FA;
border-left: 0.25rem solid #DFE2E6
background-color: #edeeeb;
border-left: 0.25rem solid #edeeeb
}
.form-signin {
max-width: 400px;
padding: 15px;
}
.btn-primary {
background-color: #1B3E93;
border-color: #1B3E93
background-color: #669911;
border-color: #669911;
--bs-btn-color: #fff;
--bs-btn-bg: #FFA000;
--bs-btn-border-color: #FFA000;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #FFA000;
--bs-btn-hover-border-color: #FFA000;
--bs-btn-focus-shadow-rgb: 49,132,253;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #FFA000;
--bs-btn-active-border-color: #FFA000;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: #fff;
--bs-btn-disabled-bg: #FFA000;
--bs-btn-disabled-border-color: #FFA000;
}
</style>
</head>
<body class="d-flex flex-column h-100" >
<main class="w-100 m-auto">
<div class="form-signin w-100 m-auto text-center">
<a href="/"><img src="/images/Faims-medium.png" style='max-width:150px;' /></a>
<a href="/"><img src="/images/Fieldmark-Portrait-Margin@4x.png" style='max-width:150px;' /></a>
</div>
{{{body}}}
<div class="form-signin w-100 m-auto">
Expand Down
2 changes: 1 addition & 1 deletion views/register.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{{#each providers}}
<p><a href="/register/{{../invite}}/{{ this.label }}/" class="w-100 btn btn-lg btn-primary"
style="background-color:#1B3E93;">{{ this.name }}</a></p>
style="background-color:#669911;">{{ this.name }}</a></p>
{{/each}}

{{#if localAuth}}
Expand Down
4 changes: 2 additions & 2 deletions views/send-token.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ fetch(
</script>
<div class="form-signin w-100 m-auto">
<h3 class="h3 mb-3 fw-normal text-center" style="margin-top:50px">Logging you into the app</h3>
<p>Welcome to FAIMS3</p>
<p>Welcome to Fieldmark</p>
<ul>
<li>If you have loaded this page in the app, please choose "Done" to return to FAIMS3.</li>
<li>If you have loaded this page in the app, please choose "Done" to return to Fieldmark.</li>
<li>If you are using a web browser, close this tab, and reopen this page via the web
app. The web app is running at <a href="{{ web_url }}">{{ web_url }}</a>.</li>
</ul>
Expand Down

0 comments on commit ba3d1ed

Please sign in to comment.