Skip to content

Commit

Permalink
Made page headers more homogeneous
Browse files Browse the repository at this point in the history
  • Loading branch information
zonia3000 committed Jan 9, 2024
1 parent cd820fe commit f9f2199
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 52 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/projects/ProjectDatasetsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<div class="container p-0 mt-4">
<div class="row">
<div class="col-sm-2">
<p class="lead">Datasets</p>
<h3 class="fw-light">Datasets</h3>
</div>
<div class="col-sm-10">
<div class="row justify-content-end">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/projects/ProjectsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}
</script>

<p class="lead">Projects list</p>
<h1 class="fw-light">Projects list</h1>
<div class="container">
<div class="row mt-3 mb-3">
<div class="col-sm-12">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/projects/WorkflowsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="container p-0 mt-5">
<div class="row">
<div class="col-sm-2">
<p class="lead">Workflows</p>
<h3 class="fw-light">Workflows</h3>
</div>
<div class="col-sm-10">
<div class="row justify-content-end">
Expand Down
6 changes: 3 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$: userLoggedIn = !!$page.data.userInfo;
</script>

<h1>Welcome to Fractal web client.</h1>
<h1 class="fw-light">Welcome to Fractal web client.</h1>

<div>
<p>
Expand All @@ -30,15 +30,15 @@
</div>

{#if env.PUBLIC_FRACTAL_ADMIN_SUPPORT_EMAIL}
<h3>Where to get support</h3>
<h3 class="fw-light">Where to get support</h3>
<p>
<a href="mailto:{env.PUBLIC_FRACTAL_ADMIN_SUPPORT_EMAIL}">
{env.PUBLIC_FRACTAL_ADMIN_SUPPORT_EMAIL}
</a>
</p>
{/if}

<h3>Links</h3>
<h3 class="fw-light">Links</h3>

<ul>
<li>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/admin/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h3>Admin area</h3>
<h1 class="fw-light mt-2 mb-3">Admin area</h1>

<a href="/admin/users" class="btn btn-primary mt-3">
<i class="bi bi-people-fill" />
Expand Down
13 changes: 11 additions & 2 deletions src/routes/admin/jobs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,18 @@
}
</script>
<div class="container">
<div>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="/admin">Admin area</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Jobs</li>
</ol>
</nav>
<div class="d-flex justify-content-between align-items-center my-3">
<h1>Jobs</h1>
<h1 class="fw-light">Jobs</h1>
</div>
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/admin/users/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
Register new user
</a>

<h3>Users list</h3>
<h1 class="fw-light">Users list</h1>

<table class="table mt-3">
<thead>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/admin/users/[userId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</ol>
</nav>

<h3 class="mb-3">User #{user.id} ({user.email})</h3>
<h1 class="mb-3 fw-light">User #{user.id} ({user.email})</h1>

<div class="row mt-4">
<div class="col-md-8 col-lg-6">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/admin/users/[userId]/edit/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
</ol>
</nav>

<h3 class="mb-3">Editing user #{user.id} ({user.email})</h3>
<h1 class="mb-3 fw-light">Editing user #{user.id} ({user.email})</h1>

<UserEditor {user} {save} />
2 changes: 1 addition & 1 deletion src/routes/admin/users/register/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
</ol>
</nav>

<h3 class="mb-3">Registering new user</h3>
<h1 class="fw-light mb-4">Registering new user</h1>

<UserEditor {user} {save} />
8 changes: 4 additions & 4 deletions src/routes/auth/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
});
</script>
<div class="container">
<div>
{#if userLoggedIn}
<div class="row mt-4">
<div class="col">
Expand All @@ -53,7 +53,7 @@
</div>
{:else}
<div class="row">
<h1>Login</h1>
<h1 class="fw-light">Login</h1>
</div>
{#if showSessionExpiredMessage}
<div class="row">
Expand All @@ -64,7 +64,7 @@
{/if}
<div class="row">
<div class="col-md-4">
<h3 class="mt-2">Local account</h3>
<h3 class="mt-2 fw-light">Local account</h3>
<form method="POST">
<div class="mb-3">
<label for="userEmail" class="form-label">Email address</label>
Expand Down Expand Up @@ -98,7 +98,7 @@
{#if oauth2Provider}
<div class="row">
<div class="col mt-5">
<h3>External account</h3>
<h3 class="fw-light">External account</h3>
<div id="externalLoginError" />
<button type="button" on:click={oauth2Login} class="btn btn-primary">
{#if oauth2Provider === 'github'}
Expand Down
8 changes: 3 additions & 5 deletions src/routes/jobs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
}
</script>

<div class="container">
<div class="d-flex justify-content-between align-items-center my-3">
<h1>Jobs of user "{$page.data.userInfo.email}"</h1>
</div>
<JobsList {jobUpdater} columnsToHide={['user_email']} />
<div class="d-flex justify-content-between align-items-center mt-2">
<h1 class="fw-light">Jobs of user "{$page.data.userInfo.email}"</h1>
</div>
<JobsList {jobUpdater} columnsToHide={['user_email']} />
2 changes: 1 addition & 1 deletion src/routes/profile/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
</script>

<h3>My profile</h3>
<h1 class="fw-light">My profile</h1>

<div class="row mt-4">
<div class="col-lg-10 col-xl-8">
Expand Down
21 changes: 12 additions & 9 deletions src/routes/projects/[projectId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,21 @@
</div>

{#if project}
<div class="container">
<div class="d-flex justify-content-between align-items-center my-3">
<h1>Project {project.name} #{project.id}</h1>
</div>

<StandardDismissableAlert message={projectUpdatesSuccessMessage} />
<ProjectDatasetsList {datasets} />
<WorkflowsList {workflows} projectId={project.id} />
<div class="d-flex justify-content-between align-items-center my-3">
<h1 class="fw-light">Project {project.name} #{project.id}</h1>
</div>

<StandardDismissableAlert message={projectUpdatesSuccessMessage} />
<ProjectDatasetsList {datasets} />
<WorkflowsList {workflows} projectId={project.id} />
{/if}

<Modal id="editProjectModal" centered={true} bind:this={editProjectModal} onOpen={onEditProjectModalOpen}>
<Modal
id="editProjectModal"
centered={true}
bind:this={editProjectModal}
onOpen={onEditProjectModalOpen}
>
<svelte:fragment slot="header">
<h5 class="modal-title">Project properties</h5>
</svelte:fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@
</div>

{#if dataset}
<div class="container">
<div>
<div class="d-flex justify-content-between align-items-center my-3">
<h1>Dataset {dataset.name} #{dataset.id}</h1>
<h1 class="fw-light">Dataset {dataset.name} #{dataset.id}</h1>
</div>

<div class="row mt-2">
<div class="col-4">
<div class="d-flex align-items-center justify-content-between">
<span class="lead py-3">Dataset properties</span>
<h3 class="fw-light mt-1">Dataset properties</h3>
</div>
<ul class="list-group">
<li class="list-group-item text-bg-light">
Expand Down Expand Up @@ -107,7 +107,7 @@
</div>
<div class="col-8">
<div class="d-flex align-items-center justify-content-between">
<span class="lead py-3">Dataset resources</span>
<h3 class="fw-light mt-1">Dataset resources</h3>
</div>
<table class="table table-bordered caption-top align-middle">
<thead class="bg-light">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@
<div />
</div>

<div class="container">
<div class="d-flex justify-content-between align-items-center my-3">
<h1>Jobs of workflow "{workflow.name}"</h1>
</div>
<JobsList columnsToHide={['project', 'workflow', 'user_email']} {jobUpdater} />
<div class="d-flex justify-content-between align-items-center my-3">
<h1 class="fw-light">Jobs of workflow "{workflow.name}"</h1>
</div>
<JobsList columnsToHide={['project', 'workflow', 'user_email']} {jobUpdater} />
{/if}
2 changes: 1 addition & 1 deletion src/routes/sandbox/jsonschema/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</script>

<h1>Sandbox page for jsonschema</h1>
<h1 class="fw-light">Sandbox page for jsonschema</h1>

<SchemaInput {jsonSchema} bind:parsedSchema={schema} bind:parsedData={schemaData}></SchemaInput>

Expand Down
14 changes: 4 additions & 10 deletions src/routes/tasks/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -192,18 +192,12 @@
onDestroy(unsubscribe);
</script>
<div class="container">
<div class="d-flex justify-content-between align-items-center">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page">Tasks</li>
</ol>
</nav>
</div>
<div>
<h1 class="fw-light mb-4">Tasks</h1>
<div class="mb-2" id="errorSection" />
<p class="lead">Add tasks</p>
<h3 class="fw-light">Add tasks</h3>
<div class="form-check-inline">Package type:</div>
Expand Down Expand Up @@ -246,7 +240,7 @@
</div>
<div class="row mt-4">
<p class="lead">Task List</p>
<h3 class="fw-light">Task List</h3>
<div class="col-12">
<table class="table align-middle">
<thead class="table-light">
Expand Down

0 comments on commit f9f2199

Please sign in to comment.