Skip to content

Commit a4657de

Browse files
committed
fixed styling of all pages
1 parent 36b096b commit a4657de

File tree

16 files changed

+57
-32
lines changed

16 files changed

+57
-32
lines changed

packages/ui/src/pages/AdminPage/AdminPage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ if (!authStore.hasAdminPower(Role.StudyManager)) {
1616
</script>
1717
<template>
1818
<div class="flex h-screen items-stretch">
19-
<AdminTaskLibrary class="flex-none" />
19+
<AdminTaskLibrary class="flex-none border border-neutral-100" />
2020
<div
2121
v-if="batteryEditingStore.editingBatteryId !== undefined"
22-
class="flex-1 mx-6 my-8 p-8 rounded-2xl min-w-[600px] bg-white shadow-xl overflow-y-hidden"
22+
class="flex-1 mx-6 my-8 p-8 rounded-2xl min-w-[600px] bg-white shadow-xl overflow-y-hidden border border-neutral-100"
2323
>
2424
<BatteryEditForm />
2525
</div>

packages/ui/src/pages/AdminPage/components/AdminTaskLibrary.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ const switchTab = (tab: string) => {
204204
:class="[
205205
'flex gap-5 p-4 border rounded-2xl cursor-pointer',
206206
batteryEditingStore.editingBatteryId === task._id.toString()
207-
? 'bg-neutral-100 border-neutral-400'
208-
: 'bg-neutral-10 border-neutral-300',
207+
? 'bg-neutral-50 border-neutral-200'
208+
: 'bg-neutral-10 border-neutral-100',
209209
]"
210210
@click="batteryEditingStore.select(task._id.toString())"
211211
>

packages/ui/src/pages/AdminPage/components/BatteryEditForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ const editingName = ref(false);
115115
<textarea
116116
id="description"
117117
v-model="batteryData.description"
118-
class="mt-3 border border-neutral-300 rounded-2xl resize-none py-2.5 px-4 w-full"
119-
rows="10"
118+
class="mt-3 border border-neutral-200 rounded-2xl resize-none py-2.5 px-4 w-full"
119+
rows="5"
120120
></textarea>
121121
</div>
122122
</div>

packages/ui/src/pages/AdminPage/components/BatteryEditFormSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defineProps<{ group: DTO<IBattery>["stages"][0]["options"] }>();
55
</script>
66

77
<template>
8-
<div class="border border-gray-400 rounded-xl p-5">
8+
<div class="bg-neutral-50 border border-neutral-200 rounded-xl p-5">
99
<h2 class="text-base font-bold">
1010
{{ group.name }}
1111
</h2>

packages/ui/src/pages/MyStudiesPage/MyStudiesPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const handleStudyDeleted = async () => {
4848
<template>
4949
<div
5050
v-loading="isLoading"
51-
class="mt-14 mx-auto w-full min-w-[600px] px-4 sm:px-6 lg:px-10"
51+
class="pt-14 mx-auto w-full min-w-[600px] px-4 sm:px-6 lg:px-10 bg-neutral-50"
5252
>
5353
<div class="flex items-center">
5454
<h1 class="text-3xl font-bold mb-4 -mt-4">My Studies</h1>

packages/ui/src/pages/StudyBuilderPage/StudyBuilderPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const taskEditingStore = useTaskEditingStore();
2323
</script>
2424

2525
<template>
26-
<div>
26+
<div class="bg-neutral-50">
2727
<AppBreadcrumb />
2828
<Draggable
2929
v-loading="studyBuilderStore.isStudySaving"

packages/ui/src/pages/StudyBuilderPage/components/SessionCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const draggableProps = {
2929

3030
<template>
3131
<div
32-
class="flex flex-col px-6 pb-5 border rounded-3xl border-neutral-300 overflow-y-hidden"
32+
class="flex flex-col px-6 pb-5 border rounded-3xl border-neutral-200 overflow-y-hidden"
3333
>
3434
<ElImage
3535
v-if="draggable"

packages/ui/src/pages/StudyBuilderPage/components/StudyPanel.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@ watch(
100100
<ElSkeletonItem variant="text" class="h-8 mt-2 mb-1 w-3/4" />
101101
</template>
102102
<template #default>
103-
<div class="flex gap-3 flex-col">
103+
<div class="flex gap-1 flex-col">
104104
<input
105105
v-model="studyBuilderStore.name"
106-
class="w-full bg-transparent text-neutral-600 font-bold text-4xl"
106+
class="w-full bg-transparent text-neutral-600 font-bold text-2xl"
107107
type="text"
108108
placeholder="Untitled Study"
109109
/>
110110
<input
111111
v-model="studyBuilderStore.description"
112-
class="w-full bg-transparent text-neutral-600 font-medium text-lg"
112+
class="w-full bg-transparent text-neutral-600 font-medium text-md"
113113
type="text"
114114
placeholder="Add a description"
115115
/>
@@ -120,6 +120,7 @@ watch(
120120
</div>
121121
<div class="flex items-center justify-center w-3/6 p-2 mx-auto">
122122
<el-button
123+
class="rounded-lg px-2"
123124
:icon="ArrowLeft"
124125
:disabled="currentVariantIndex <= 0"
125126
@click="switchVariant('prev')"
@@ -131,23 +132,28 @@ watch(
131132
placeholder="Untitled Variant"
132133
/>
133134
<el-button
135+
class="rounded-lg px-2"
134136
v-if="currentVariantIndex < studyBuilderStore.variants.length - 1"
135137
:icon="ArrowRight"
136138
:disabled="currentVariantIndex >= studyBuilderStore.variants.length - 1"
137139
@click="switchVariant('next')"
138140
/>
139141
<el-button v-else :icon="Plus" @click="addVariant()" />
140-
<el-button class="ml-8" :icon="Delete" @click="deleteVariant()" />
142+
<el-button
143+
class="ml-8 rounded-lg px-3"
144+
:icon="Delete"
145+
@click="deleteVariant()"
146+
/>
141147
</div>
142148

143149
<div
144150
v-loading="studyBuilderStore.isStudyLoading"
145-
class="grow p-6 bg-neutral-10 border border-neutral-300 rounded-3xl overflow-x-hidden"
151+
class="grow p-6 bg-neutral-10 border border-neutral-200 rounded-3xl overflow-x-hidden"
146152
>
147153
<div class="flex-2 items-center justify-between gap-4 pb-5">
148154
<input
149155
v-model="studyBuilderStore.variantDescription"
150-
class="text-center w-full bg-transparent text-neutral-600 font-medium text-lg"
156+
class="text-center w-full bg-transparent text-neutral-600 font-medium text-md"
151157
type="text"
152158
placeholder="Untitled Variant Description"
153159
/>

packages/ui/src/pages/StudyBuilderPage/components/StudyServerCode.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function copyCode() {
1717
</script>
1818

1919
<template>
20-
<el-button class="border rounded-lg px-5 py-1" @click="copyCode">
20+
<el-button class="border rounded-lg px-3 py-1" @click="copyCode">
2121
<FontAwesomeIcon :icon="['far', 'copy']" />
2222
</el-button>
2323

@@ -28,13 +28,15 @@ function copyCode() {
2828
<div
2929
:class="[
3030
'border rounded-lg px-5 py-1 flex items-center justify-center gap-1 w-40',
31-
copied ? 'bg-gray-300 border-gray-500' : 'bg-gray-200 border-gray-300',
31+
copied
32+
? 'bg-neutral-0 border-gray-500'
33+
: 'bg-neutral-0 border-gray-300',
3234
]"
3335
>
3436
<input
3537
v-model="studyBuilderStore.serverCode"
3638
type="text"
37-
class="truncate text-center border-none bg-transparent w-full focus:outline-none"
39+
class="truncate text-center border-none bg-neutral-0 w-full focus:outline-none"
3840
/>
3941
</div>
4042
</div>

packages/ui/src/pages/StudyBuilderPage/components/TaskBank.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ const libraryVisible = ref(false);
1919

2020
<template>
2121
<div
22-
class="bg-neutral-10 fixed flex items-stretch h-full border border-neutral-300 rounded-l-2xl px-6 py-8 shadow-2xl right-0"
22+
class="top-0 bg-neutral-10 fixed flex items-stretch h-full border border-neutral-200 rounded-l-2xl px-6 py-8 shadow-2xl right-0"
2323
>
2424
<div class="flex flex-col w-[216px]">
2525
<div class="flex mb-5 items-center">
2626
<h1 class="text-2xl font-bold">Task Bank</h1>
2727
<div class="grow"></div>
2828
<AppButton v-if="!libraryVisible" @click="libraryVisible = true">
29-
Add
29+
+ Add
3030
</AppButton>
3131
</div>
3232
<ElSkeleton animated :loading="studyBuilderStore.isStudyLoading">

0 commit comments

Comments
 (0)