diff --git a/database/migrations/2023_04_18_111723_update_no_nullable_phone_on_users_table.php b/database/migrations/2023_04_18_111723_update_no_nullable_phone_on_users_table.php new file mode 100644 index 0000000..558c4f2 --- /dev/null +++ b/database/migrations/2023_04_18_111723_update_no_nullable_phone_on_users_table.php @@ -0,0 +1,35 @@ +whereNull('phone')->update(['phone' => '']); + + Schema::table('users', function (Blueprint $table) { + $table->string('phone')->default("")->nullable(false)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->string('phone')->nullable(true)->change(); + }); + } +}; diff --git a/database/migrations/2023_04_18_113354_add_display_name_to_users_table.php b/database/migrations/2023_04_18_113354_add_display_name_to_users_table.php new file mode 100644 index 0000000..023c9b4 --- /dev/null +++ b/database/migrations/2023_04_18_113354_add_display_name_to_users_table.php @@ -0,0 +1,40 @@ +string('display_name')->default(""); + }); + + // Update existing rows with display_name + DB::table('users')->select('id', 'username')->orderBy('id')->chunk(100, function ($users) { + foreach ($users as $user) { + DB::table('users')->where('id', $user->id)->update(['display_name' => $user->username]); + } + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('display_name'); + }); + } +}; diff --git a/resources/css/app.scss b/resources/css/app.scss index ee4bd24..386ad0c 100644 --- a/resources/css/app.scss +++ b/resources/css/app.scss @@ -79,6 +79,13 @@ a:visited { } } +p, +li, +.html { + text-rendering: optimizeLegibility; + line-height: 1.5; +} + p { margin: 1rem 0; } @@ -91,30 +98,6 @@ li { } } -.container { - width: 100%; - max-width: 1200px; - margin: 0 auto; - padding: 0 16px; -} - -.btn { - cursor: pointer; - position: relative; - font-family: var(--header-font-family); - font-weight: 800; - padding: 16px 32px 16px 32px; - border: 0; - background-color: var(--base-color-light); - -webkit-backdrop-filter: blur(4px); - backdrop-filter: blur(4px); - color: var(--link-color); - - &:hover { - filter: brightness(85%); - } -} - // Who knows why ion-icon randomally sets this to hidden..... // ion-icon { // visibility: visible; @@ -190,23 +173,23 @@ li { // } // } -// /* SM Dialog */ -// .sm-dialog-outer { -// position: fixed; -// display: flex; -// top: 0; -// left: 0; -// bottom: 0; -// right: 0; -// flex-direction: column; -// align-items: center; -// justify-content: center; -// z-index: 1000; -// padding: 1rem; -// } +/* SM Dialog */ +.dialog-outer { + position: fixed; + display: flex; + top: 0; + left: 0; + bottom: 0; + right: 0; + flex-direction: column; + align-items: center; + justify-content: center; + z-index: 1000; + padding: 1rem; +} -// .sm-dialog-outer:last-of-type { -// background-color: rgba(0, 0, 0, 0.4); -// backdrop-filter: blur(2px); -// -webkit-backdrop-filter: blur(2px); -// } +.dialog-outer:last-of-type { + background-color: rgba(0, 0, 0, 0.4); + backdrop-filter: blur(2px); + -webkit-backdrop-filter: blur(2px); +} diff --git a/resources/css/variables.scss b/resources/css/variables.scss index ad4cb7d..084b9ef 100644 --- a/resources/css/variables.scss +++ b/resources/css/variables.scss @@ -3,12 +3,14 @@ :root { // yes --default-font-size: 18px; - --default-font-family: "Nunito", "Nunito override", "Arial", "Helvetica", - sans-serif; + --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + // --default-font-family: "Nunito", "Nunito override", "Arial", "Helvetica", + // sans-serif; // yes --base-color: #eee; - --base-color-text: rgba(0, 0, 0, 0.8); + --base-color-text: #456; --base-color-border: #999; --base-color-light: #fff; @@ -25,6 +27,7 @@ // yes --primary-color: #35a5f1; + --primary-color-hover: #f1fdff; --primary-color-dark: #0e80ce; --primary-color-darker: #095589; diff --git a/resources/js/components/SMArticleCard.vue b/resources/js/components/SMArticleCard.vue deleted file mode 100644 index 5097455..0000000 --- a/resources/js/components/SMArticleCard.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - diff --git a/resources/js/components/SMButton.vue b/resources/js/components/SMButton.vue index 8e58036..274e76d 100644 --- a/resources/js/components/SMButton.vue +++ b/resources/js/components/SMButton.vue @@ -184,7 +184,7 @@ const handleClickItem = (item: string) => { display: inline-block; font-family: var(--header-font-family); font-weight: 800; - padding: 16px 32px 16px 32px; + padding: 12px 32px 12px 32px; border: 0; background-color: var(--base-color-light); text-decoration: none; @@ -195,7 +195,11 @@ const handleClickItem = (item: string) => { user-select: none; .button-label { + display: inline-block; + padding: 2px 0 3px 0; + ion-icon { + display: inline-block; width: 28px; height: 28px; margin: -8px 0; @@ -240,7 +244,7 @@ const handleClickItem = (item: string) => { background-color: #fff; &:hover { - background-color: rgba(0, 0, 255, 0.5); + background-color: var(--primary-color-hover); } } } diff --git a/resources/js/components/SMColumn.vue b/resources/js/components/SMColumn.vue index dd4931b..f06c55f 100644 --- a/resources/js/components/SMColumn.vue +++ b/resources/js/components/SMColumn.vue @@ -1,6 +1,6 @@