refactor(frontend): rename booklore-ui to frontend

- Frontend path:
  - rename the tracked Angular app tree from `booklore-ui/` to `frontend/`
  - preserve file contents during the move so this commit stays focused on the path change itself
- Frontend docs:
  - update the moved frontend README and contribution guide where they refer to the renamed folder
  - keep those edits limited to path references introduced by the directory rename
This commit is contained in:
James Cox
2026-04-22 17:26:39 -04:00
committed by Zach Yale
parent c99aa87877
commit 874b013f75
1493 changed files with 3 additions and 3 deletions
@@ -0,0 +1,287 @@
@mixin auth-container {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
min-width: 100vw;
overflow: hidden;
background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 50%, #0f172a 100%);
position: relative;
&::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
animation: float 20s ease-in-out infinite;
}
}
@mixin auth-card-wrapper($max-width: 500px, $margin-top: -6rem) {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: $margin-top;
width: 90%;
max-width: $max-width;
position: relative;
z-index: 1;
animation: slideUp 0.6s ease-out;
@media (max-width: 640px) {
width: 95%;
margin-top: calc($margin-top / 2);
}
}
@mixin auth-card-border {
width: 100%;
border-radius: 2rem;
padding: 2px;
background: linear-gradient(135deg, var(--primary-color) 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
transition: all 0.3s ease;
&:hover {
box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
transform: translateY(-2px);
}
}
@mixin auth-card {
width: 100%;
background: rgba(17, 24, 39, 0.95);
backdrop-filter: blur(20px);
border-radius: calc(2rem - 2px);
padding: 3rem 2.5rem;
@media (max-width: 640px) {
padding: 2rem 1.5rem;
}
}
@mixin auth-header {
text-align: center;
margin-bottom: 2.5rem;
}
@mixin auth-logo {
margin-bottom: 1.5rem;
animation: pulse 2s ease-in-out infinite;
}
@mixin auth-logo-icon {
width: 4rem;
height: 4rem;
margin: 0 auto;
filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
transition: transform 0.3s ease;
&:hover {
transform: scale(1.1) rotate(5deg);
}
}
@mixin auth-icon-circle {
width: 4rem;
height: 4rem;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
transition: transform 0.3s ease;
i {
font-size: 1.75rem;
color: white;
}
&:hover {
transform: scale(1.1) rotate(5deg);
}
}
@mixin auth-title {
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.5rem;
background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
@media (max-width: 640px) {
font-size: 1.75rem;
}
}
@mixin auth-subtitle {
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.7);
font-weight: 400;
line-height: 1.5;
max-width: 400px;
margin: 0 auto;
}
@mixin auth-form($gap: 1.25rem) {
display: flex;
flex-direction: column;
gap: $gap;
}
@mixin form-field {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
@mixin form-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.95rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.9);
i {
color: var(--primary-color);
font-size: 0.875rem;
}
}
@mixin form-input {
transition: all 0.3s ease;
&:focus {
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
}
@mixin field-error {
display: flex;
align-items: center;
gap: 0.375rem;
color: #ef4444;
font-size: 0.8rem;
margin-top: -0.25rem;
animation: fadeIn 0.3s ease-out;
i {
font-size: 0.75rem;
}
}
@mixin auth-button {
margin-top: 0.75rem;
::ng-deep button {
height: 3rem;
font-size: 1rem;
font-weight: 600;
transition: all 0.3s ease;
background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
border: none;
&:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}
&:active:not(:disabled) {
transform: translateY(0);
}
&:disabled {
opacity: 0.6;
cursor: not-allowed;
}
}
}
@mixin message-container {
animation: fadeIn 0.3s ease-out;
}
@mixin error-message {
animation: shake 0.4s ease-in-out, fadeIn 0.3s ease-out;
}
@mixin success-message {
animation: successPulse 0.5s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes float {
0%, 100% {
transform: translate(0, 0) rotate(0deg);
}
33% {
transform: translate(30px, -30px) rotate(120deg);
}
66% {
transform: translate(-20px, 20px) rotate(240deg);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.8;
}
}
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
25% {
transform: translateX(-10px);
}
75% {
transform: translateX(10px);
}
}
@keyframes successPulse {
0% {
opacity: 0;
transform: scale(0.95);
}
50% {
transform: scale(1.02);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@@ -0,0 +1,190 @@
// Shared mixins for panel headers and dialog footers
// This file provides consistent styling for dialog/panel components
@mixin panel-header {
position: relative;
display: flex;
align-items: center;
gap: 1rem;
padding: 1.5rem 1.5rem 1.25rem 1.5rem;
border-radius: 10px 10px 0 0;
border: 1px solid var(--border-color);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
.header-icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
background: var(--primary-color);
border-radius: 10px;
flex-shrink: 0;
.header-icon {
font-size: 1.5rem;
color: var(--primary-contrast-color);
}
}
.header-text {
flex: 1;
.panel-title {
margin: 0 0 0.25rem 0;
font-size: 1.25rem;
font-weight: 600;
color: var(--text-color);
}
.panel-description {
margin: 0;
font-size: 0.875rem;
color: var(--text-secondary-color);
}
}
.close-button,
::ng-deep .close-button {
position: absolute;
top: 0.75rem;
right: 0.75rem;
}
@media (max-width: 480px) {
padding: 1rem;
.header-icon-wrapper {
width: 40px;
height: 40px;
.header-icon {
font-size: 1.25rem;
}
}
.header-text {
.panel-title {
font-size: 1.125rem;
}
.panel-description {
font-size: 0.8rem;
}
}
.close-button,
::ng-deep .close-button {
top: 0.5rem;
right: 0.5rem;
}
}
}
@mixin dialog-footer {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.75rem;
padding: 1.25rem 1.5rem;
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: 0 0 10px 10px;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
.footer-info,
.validation-status {
flex: 1;
min-width: 0;
}
.footer-actions,
.footer-right {
display: flex;
gap: 0.75rem;
flex-shrink: 0;
}
@media (max-width: 640px) {
flex-direction: column;
align-items: stretch;
padding: 1rem;
gap: 0.75rem;
.footer-info,
.validation-status {
width: 100%;
}
.footer-actions,
.footer-right {
width: 100%;
justify-content: flex-end;
gap: 0.5rem;
}
}
}
// Variant for footers that only need right-aligned actions
@mixin dialog-footer-end {
@include dialog-footer;
justify-content: flex-end;
@media (max-width: 480px) {
padding: 1rem;
gap: 0.5rem;
.footer-actions {
width: 100%;
justify-content: flex-end;
gap: 0.5rem;
}
}
}
// Validation message styles commonly used in footers
@mixin validation-message {
display: flex;
align-items: center;
gap: 0.375rem;
padding: 0.25rem 0.5rem;
font-weight: 500;
border-radius: 6px;
font-size: 0.875rem;
width: fit-content;
max-width: 100%;
i {
font-size: 0.95rem;
}
&.error {
background: rgba(239, 68, 68, 0.1);
color: rgb(239, 68, 68);
border: 1px solid rgba(239, 68, 68, 0.3);
i {
color: rgb(239, 68, 68);
}
}
&.success {
background: rgba(34, 197, 94, 0.1);
color: rgb(34, 197, 94);
border: 1px solid rgba(34, 197, 94, 0.3);
i {
color: rgb(34, 197, 94);
}
}
@media (max-width: 640px) {
font-size: 0.8rem;
padding: 0.375rem 0.5rem;
width: 100%;
i {
font-size: 0.875rem;
}
}
}
@@ -0,0 +1,535 @@
// Shared Settings Component Styles
// This file provides consistent styling for all settings pages
// Benchmark: file-naming-pattern and metadata-persistence-settings components
// ============================================================================
// TYPOGRAPHY VARIABLES
// ============================================================================
$settings-page-title-size: 1.375rem;
$settings-page-title-weight: 700;
$settings-page-description-size: 0.875rem;
$settings-section-title-size: 1.25rem;
$settings-section-title-weight: 600;
$settings-section-title-icon-size: 1.125rem;
$settings-section-description-size: 0.875rem;
$settings-label-size: 0.9375rem;
$settings-label-weight: 500;
$settings-description-size: 0.875rem;
// ============================================================================
// SPACING VARIABLES
// ============================================================================
$settings-card-padding: 1.5rem;
$settings-card-padding-mobile: 1rem;
$settings-card-gap: 1.25rem;
$settings-card-gap-mobile: 1rem;
$settings-card-border-radius: 8px;
$settings-section-body-padding-left: 1rem;
$settings-section-body-padding-left-mobile: 0.5rem;
$settings-section-body-gap: 1rem;
$settings-item-padding: 0.875rem 1rem;
$settings-item-padding-mobile: 0.75rem;
$settings-item-border-radius: 6px;
$settings-item-border-left-width: 3px;
// ============================================================================
// PAGE CONTAINER MIXIN
// For standalone pages with their own scrolling area
// ============================================================================
@mixin settings-page-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
width: 100%;
height: calc(100dvh - 10.5rem);
overflow-y: auto;
padding: 0.5rem;
@media (min-width: 768px) {
height: calc(100dvh - 11.65rem);
padding: 0.5rem;
}
}
// ============================================================================
// PAGE HEADER
// Include this mixin at root level to get the .settings-header class
// ============================================================================
@mixin settings-page-header {
.settings-header {
margin-top: 1rem;
margin-bottom: 1.5rem;
border-bottom: 1px solid var(--p-content-border-color);
}
}
@mixin settings-page-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: $settings-page-title-size;
font-weight: $settings-page-title-weight;
color: var(--text-color);
margin: 0 0 0.5rem 0;
.pi {
color: var(--primary-color);
font-size: 1.25rem;
}
}
@mixin settings-page-description {
font-size: $settings-page-description-size;
line-height: 1.5;
color: var(--p-text-muted-color);
margin-bottom: 0.5rem;
}
// ============================================================================
// SETTINGS CARD MIXIN
// The main card container for a group of related settings
// ============================================================================
@mixin settings-card {
display: flex;
flex-direction: column;
gap: $settings-card-gap;
background: var(--card-background);
border: 1px solid var(--p-content-border-color);
border-radius: $settings-card-border-radius;
padding: $settings-card-padding;
@media (max-width: 768px) {
padding: $settings-card-padding-mobile;
gap: $settings-card-gap-mobile;
}
}
// ============================================================================
// SECTION HEADER MIXIN
// For section headers inside cards (with icon and description)
// ============================================================================
@mixin settings-section-header {
margin-bottom: 0.25rem;
}
@mixin settings-section-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: $settings-section-title-size;
font-weight: $settings-section-title-weight;
color: var(--text-color);
margin: 0 0 0.5rem 0;
.pi {
color: var(--primary-color);
font-size: $settings-section-title-icon-size;
}
}
@mixin settings-section-description {
font-size: $settings-section-description-size;
line-height: 1.5;
color: var(--p-text-muted-color);
margin: 0;
}
// ============================================================================
// SECTION BODY MIXIN
// Container for setting items within a card
// ============================================================================
@mixin settings-section-body {
display: flex;
flex-direction: column;
gap: $settings-section-body-gap;
padding-left: $settings-section-body-padding-left;
@media (max-width: 768px) {
padding-left: $settings-section-body-padding-left-mobile;
}
}
// ============================================================================
// SETTING ITEM MIXIN
// Individual setting row with left border accent
// ============================================================================
@mixin settings-item {
padding: $settings-item-padding;
border-radius: $settings-item-border-radius;
border-left: $settings-item-border-left-width solid var(--primary-color);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
transition: border-color 0.2s ease, background 0.2s ease;
&:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%);
}
@media (max-width: 768px) {
padding: $settings-item-padding-mobile;
}
}
// ============================================================================
// SETTING HEADER MIXIN
// Header row for a setting (toggle + label)
// ============================================================================
@mixin settings-item-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.25rem;
.pi {
color: var(--primary-color);
font-size: 1rem;
}
}
@mixin settings-item-header-standalone {
margin-bottom: 0.25rem;
}
// ============================================================================
// SETTING LABEL MIXIN
// ============================================================================
@mixin settings-label {
font-weight: $settings-label-weight;
color: var(--text-color);
font-size: $settings-label-size;
}
// ============================================================================
// SETTING DESCRIPTION MIXIN
// ============================================================================
@mixin settings-item-description {
color: var(--p-text-muted-color);
font-size: $settings-description-size;
line-height: 1.4;
margin: 0;
}
// ============================================================================
// SETTING NOTE MIXIN
// ============================================================================
@mixin settings-note {
display: block;
margin-top: 0.25rem;
font-style: italic;
opacity: 0.85;
}
// ============================================================================
// SETTING OPTIONS MIXIN
// Expandable options section below a setting
// ============================================================================
@mixin settings-options {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px dashed var(--p-content-border-color);
}
// ============================================================================
// NOTICE MIXINS
// Warning and info notices
// ============================================================================
@mixin settings-notice-base {
display: flex;
align-items: flex-start;
gap: 0.75rem;
font-size: $settings-section-description-size;
line-height: 1.5;
padding: 0.75rem 1rem;
border-radius: 6px;
color: var(--text-color);
strong {
font-weight: 600;
}
@media (max-width: 768px) {
padding: 0.625rem 0.75rem;
font-size: $settings-description-size;
}
}
@mixin settings-warning-notice {
@include settings-notice-base;
background: color-mix(in srgb, var(--ground-background) 85%, var(--p-red-600) 15%);
border-left: 3px solid var(--p-red-500);
.pi-exclamation-triangle {
color: var(--p-red-400);
margin-top: 0.125rem;
flex-shrink: 0;
}
strong {
color: var(--p-red-300);
}
}
@mixin settings-info-notice {
@include settings-notice-base;
background: color-mix(in srgb, var(--ground-background) 90%, var(--p-blue-600) 10%);
border-left: 3px solid var(--p-blue-400);
.pi-info-circle {
color: var(--p-blue-400);
margin-top: 0.125rem;
flex-shrink: 0;
}
strong {
color: var(--p-blue-300);
}
}
// ============================================================================
// SECTION DIVIDER
// Include this mixin at root level to get the .section-divider class
// ============================================================================
@mixin settings-section-divider {
.section-divider {
padding-top: 1.5rem;
padding-bottom: 0.5rem;
hr {
border: none;
border-top: 1px solid var(--p-content-border-color);
margin: 0;
}
}
}
// ============================================================================
// ACTIONS ROW MIXIN
// For save/cancel buttons at the bottom of a section
// ============================================================================
@mixin settings-actions-row {
display: flex;
justify-content: flex-end;
padding-top: 0.5rem;
@media (max-width: 768px) {
p-button {
width: 100%;
}
}
}
// ============================================================================
// INPUT GROUP MIXINS
// Common input patterns
// ============================================================================
@mixin settings-filesize-input {
display: flex;
align-items: center;
gap: 0.5rem;
label {
font-size: $settings-description-size;
color: var(--p-text-muted-color);
white-space: nowrap;
}
.filesize-field {
width: 70px;
padding: 0.375rem 0.5rem;
border: 1px solid var(--p-content-border-color);
border-radius: 4px;
background: var(--ground-background);
color: var(--text-color);
font-size: $settings-section-description-size;
text-align: center;
transition: border-color 0.2s ease;
&:hover {
border-color: var(--primary-color);
}
&:focus {
outline: none;
border-color: var(--primary-color);
}
}
.filesize-unit {
font-size: $settings-description-size;
color: var(--p-text-muted-color);
}
.pi-info-circle {
color: var(--p-text-muted-color);
font-size: $settings-section-description-size;
cursor: help;
opacity: 0.7;
transition: opacity 0.2s ease;
&:hover {
opacity: 1;
}
}
}
@mixin settings-select-group {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
p-select {
min-width: 140px;
}
@media (max-width: 768px) {
flex-direction: column;
align-items: stretch;
p-select {
min-width: 100%;
}
}
}
// ============================================================================
// TABLE STYLES MIXIN
// For tables within settings cards
// ============================================================================
@mixin settings-table {
width: 100%;
border-radius: 6px;
overflow: hidden;
::ng-deep {
.p-datatable {
border: 1px solid var(--p-content-border-color);
border-radius: 6px;
overflow: hidden;
.p-datatable-thead > tr > th {
font-weight: 600;
padding: 0.75rem;
background: color-mix(in srgb, var(--text-color) 3%, transparent);
border-bottom: 1px solid var(--p-content-border-color);
font-size: $settings-description-size;
}
.p-datatable-tbody > tr {
&:hover {
background: color-mix(in srgb, var(--text-color) 3%, transparent);
}
> td {
padding: 0.625rem;
border-bottom: 1px solid color-mix(in srgb, var(--p-content-border-color) 50%, transparent);
}
&:last-child > td {
border-bottom: none;
}
}
}
}
}
// ============================================================================
// ERROR TEXT MIXIN
// ============================================================================
@mixin settings-error-text {
color: var(--p-red-400);
font-size: $settings-section-description-size;
}
// ============================================================================
// ACCESS DENIED CARD MIXIN
// For restricted access sections
// ============================================================================
@mixin settings-access-denied-card {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.5rem;
border-radius: $settings-card-border-radius;
background: color-mix(in srgb, var(--ground-background) 85%, var(--p-red-600) 15%);
border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-red-500);
max-width: 500px;
.pi {
font-size: 1.5rem;
flex-shrink: 0;
color: var(--p-red-400);
}
}
@mixin settings-access-denied-content {
h3 {
margin: 0 0 0.5rem 0;
font-size: 1rem;
font-weight: $settings-section-title-weight;
color: var(--p-red-300);
}
p {
margin: 0;
font-size: $settings-section-description-size;
line-height: 1.5;
color: var(--p-text-muted-color);
}
}
// ============================================================================
// BUTTON GROUP MIXIN
// For toggle button selections
// ============================================================================
@mixin settings-button-group {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
.option-button {
display: flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
padding: 0.5rem 0.75rem;
border-radius: 0.375rem;
border: 1.5px solid color-mix(in srgb, var(--text-color) 20%, transparent);
background: color-mix(in srgb, var(--text-color) 5%, transparent);
color: var(--text-color);
cursor: pointer;
transition: all 0.2s ease;
font-size: $settings-description-size;
font-weight: $settings-label-weight;
min-width: 4.5rem;
i {
font-size: $settings-section-description-size;
}
.option-text {
white-space: nowrap;
}
&:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
}
&.selected {
border-color: var(--primary-color);
background: color-mix(in srgb, var(--primary-color) 10%, transparent);
color: var(--primary-color);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 15%, transparent);
&:hover {
transform: translateY(-2px);
}
}
}
}