- Implement `LoginPage`, `LoginForm`, and `SocialForm` components. - Add language toggle and dynamic title support. - Update `tsconfig.electron.json` for stricter settings. - Add `electron-store` and associated types for token storage. - Update `package.json` scripts and dependencies for Electron compatibility.
556 lines
9.9 KiB
CSS
556 lines
9.9 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme {
|
|
/* Colors */
|
|
--color-primary: #51AE84;
|
|
--color-primary-dark: #3A8B69;
|
|
--color-primary-light: #74C9A0;
|
|
--color-secondary: #3E3E3E;
|
|
--color-tertiary: #2C2C2C;
|
|
--color-background: #2B2D30;
|
|
--color-dark-background: #2C2C2C;
|
|
--color-darkest-background: #1A1A1A;
|
|
--color-text-primary: #FFFFFF;
|
|
--color-text-secondary: #B0B0B0;
|
|
--color-muted: #B0B0B0;
|
|
--color-success: #28A745;
|
|
--color-error: #DC3545;
|
|
--color-warning: #FFC107;
|
|
--color-info: #17A2B8;
|
|
|
|
--color-gray: #808080;
|
|
--color-gray-light: #A0A0A0;
|
|
--color-gray-dark: #404040;
|
|
|
|
/* Aliases pour compatibilité */
|
|
--color-textPrimary: #FFFFFF;
|
|
--color-textSecondary: #B0B0B0;
|
|
|
|
/* Font Family */
|
|
--font-family-lora: 'Lora', Georgia, serif;
|
|
--font-family-lora-italic: 'Lora Italic', serif;
|
|
--font-family-adlam: 'ADLaM Display', serif;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Lora';
|
|
src: url('../fonts/lora-variable.ttf') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Lora Italic';
|
|
src: url('../fonts/lora-Italic.ttf') format('truetype');
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'ADLaM Display';
|
|
src: url('../fonts/adlam-display.ttf') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
:root {
|
|
--foreground-rgb: 0, 0, 0;
|
|
--background-start-rgb: 214, 219, 220;
|
|
--background-end-rgb: 255, 255, 255;
|
|
}
|
|
|
|
body {
|
|
--tw-bg-opacity: 1;
|
|
background-color: rgb(17 24 39 / var(--tw-bg-opacity))
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #2d2d2d;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #51AE84;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #3a8b69;
|
|
}
|
|
|
|
/* Scrollbar Styles for Firefox */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #51AE84 #2d2d2d;
|
|
}
|
|
|
|
.fade-in {
|
|
opacity: 0;
|
|
animation: fadeIn 0.8s ease-out forwards;
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideInFromLeft {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideInFromRight {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes smoothBounce {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-5px);
|
|
}
|
|
}
|
|
|
|
.tiptap {
|
|
min-height: calc(100vh - 15rem);
|
|
font-family: 'Lora', sans-serif;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.indent-0 {
|
|
text-indent: 0px !important;
|
|
}
|
|
|
|
.indent-1 {
|
|
text-indent: 4px !important;
|
|
}
|
|
|
|
.indent-2 {
|
|
text-indent: 8px !important;
|
|
}
|
|
|
|
.indent-3 {
|
|
text-indent: 12px !important;
|
|
}
|
|
|
|
.indent-4 {
|
|
text-indent: 16px !important;
|
|
}
|
|
|
|
.indent-5 {
|
|
text-indent: 20px !important;
|
|
}
|
|
|
|
.indent-6 {
|
|
text-indent: 24px !important;
|
|
}
|
|
|
|
.indent-7 {
|
|
text-indent: 28px !important;
|
|
}
|
|
|
|
.indent-8 {
|
|
text-indent: 32px !important;
|
|
}
|
|
|
|
.indent-9 {
|
|
text-indent: 36px !important;
|
|
}
|
|
|
|
.indent-10 {
|
|
text-indent: 40px !important;
|
|
}
|
|
|
|
.indent-11 {
|
|
text-indent: 44px !important;
|
|
}
|
|
|
|
.indent-12 {
|
|
text-indent: 48px !important;
|
|
}
|
|
|
|
.indent-13 {
|
|
text-indent: 52px !important;
|
|
}
|
|
|
|
/* Styles pour l'éditeur principal avec classes dynamiques */
|
|
.editor-content .tiptap p {
|
|
color: #dedede;
|
|
margin-top: 0.7em;
|
|
margin-bottom: 0.7em;
|
|
}
|
|
|
|
.editor-content .tiptap p {
|
|
text-indent: inherit;
|
|
}
|
|
|
|
.editor-content .tiptap p strong {
|
|
font-weight: 900;
|
|
color: #f9f9f9;
|
|
}
|
|
|
|
.editor-content .tiptap h1, .editor-content .tiptap h2, .editor-content .tiptap h3 {
|
|
color: #34acd0;
|
|
margin-top: 1em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.editor-content .tiptap h1 {
|
|
text-indent: 5px;
|
|
font-size: 1.7em;
|
|
}
|
|
|
|
.editor-content .tiptap h2 {
|
|
text-indent: 3px;
|
|
font-size: 1.4em;
|
|
}
|
|
|
|
.editor-content .tiptap h3 {
|
|
text-indent: 1px;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.editor-content .tiptap ul[data-type="bulletList"],
|
|
.editor-content .tiptap ol[data-type="orderedList"] {
|
|
text-indent: 0px !important;
|
|
}
|
|
|
|
.editor-content .tiptap li p {
|
|
text-indent: 0px !important;
|
|
margin: 0.2em 0;
|
|
}
|
|
|
|
.ProseMirror-focused {
|
|
outline: none !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.setting-container {
|
|
height: calc(100vh - 10rem);
|
|
}
|
|
|
|
.composer-panel-h {
|
|
height: calc(100vh - 8rem);
|
|
}
|
|
|
|
.composer-panel-component-h {
|
|
height: calc(100vh - 14rem);
|
|
}
|
|
|
|
.embla__viewport {
|
|
overflow: hidden;
|
|
width: 100%;
|
|
}
|
|
|
|
.embla__container {
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
.embla__slide {
|
|
flex: 0 0 18%; /* Changez à 10% pour afficher plus de livres */
|
|
max-width: 200px;
|
|
}
|
|
|
|
.embla__slide img {
|
|
width: 100%;
|
|
height: auto;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Nouvelles classes pour les cartes de fonctionnalités */
|
|
.feature-card {
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
overflow: hidden;
|
|
background-color: #3E3E3E;
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
.feature-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 10px 25px -5px rgba(81, 174, 132, 0.2);
|
|
}
|
|
|
|
.feature-card-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease;
|
|
}
|
|
|
|
.feature-card:hover .feature-card-bg {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.feature-icon-container {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #313131, #4A4A4A);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 1.5rem;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
transition: box-shadow 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.feature-card:hover .feature-icon-container {
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.feature-icon {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
}
|
|
|
|
.feature-title-container {
|
|
position: relative;
|
|
display: inline-block;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.feature-title-underline {
|
|
position: absolute;
|
|
bottom: -2px;
|
|
left: 0;
|
|
height: 2px;
|
|
width: 0;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.feature-card:hover .feature-title-underline {
|
|
width: 100%;
|
|
}
|
|
|
|
.feature-shine-line {
|
|
width: 100%;
|
|
height: 1px;
|
|
background-color: #4A4A4A;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.feature-shine {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 1px;
|
|
width: 0;
|
|
transition: width 0.7s ease-out;
|
|
}
|
|
|
|
.feature-card:hover .feature-shine {
|
|
width: 100%;
|
|
}
|
|
|
|
.feature-button {
|
|
margin-top: 1.5rem;
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.feature-card:hover .feature-button {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Classes pour les cartes de communauté */
|
|
.community-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 0.75rem;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.community-card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.community-glow {
|
|
position: absolute;
|
|
inset: -2px;
|
|
opacity: 0.75;
|
|
filter: blur(15px);
|
|
transition: opacity 1s ease, inset 1s ease;
|
|
}
|
|
|
|
.community-card:hover .community-glow {
|
|
opacity: 1;
|
|
inset: -4px;
|
|
}
|
|
|
|
.community-content {
|
|
position: relative;
|
|
padding: 2rem;
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
.community-icon {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
border-radius: 50%;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 1rem;
|
|
}
|
|
|
|
/* Animation pour le statut "En développement" */
|
|
@keyframes pulse {
|
|
0% {
|
|
opacity: 0.6;
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.dev-status {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.last-updated {
|
|
color: #777777;
|
|
font-size: 0.75rem;
|
|
text-align: center;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.tiptap-draft {
|
|
min-height: auto;
|
|
height: 100%;
|
|
font-family: 'Lora', sans-serif;
|
|
}
|
|
|
|
.tiptap-draft .ProseMirror {
|
|
min-height: auto !important;
|
|
height: auto !important;
|
|
overflow: visible !important;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.tiptap-draft .ProseMirror em {
|
|
font-family: 'Lora Italic', serif;
|
|
font-style: italic;
|
|
}
|
|
|
|
.tiptap-draft .ProseMirror h1,
|
|
.tiptap-draft .ProseMirror h2,
|
|
.tiptap-draft .ProseMirror h3 {
|
|
font-family: 'Lora', sans-serif;
|
|
text-indent: 30px;
|
|
}
|
|
|
|
.tiptap-draft p {
|
|
font-family: 'Lora', sans-serif;
|
|
text-indent: 30px;
|
|
margin-top: 0.7em;
|
|
margin-bottom: 0.7em;
|
|
}
|
|
|
|
/* Smooth transitions for all interactive elements */
|
|
button, a, input, textarea, select {
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
/* Enhanced focus states */
|
|
button:focus-visible,
|
|
input:focus-visible,
|
|
textarea:focus-visible,
|
|
select:focus-visible {
|
|
outline: 2px solid #51AE84;
|
|
outline-offset: 2px;
|
|
box-shadow: 0 0 0 4px rgba(81, 174, 132, 0.1);
|
|
}
|
|
|
|
/* Smooth hover scale for interactive elements */
|
|
.hover-lift:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* Literary decorative elements */
|
|
.literary-ornament::before,
|
|
.literary-ornament::after {
|
|
content: "❖";
|
|
color: #51AE84;
|
|
opacity: 0.3;
|
|
font-size: 0.8em;
|
|
margin: 0 0.5em;
|
|
}
|
|
|
|
/* Subtle pulse for active states */
|
|
@keyframes subtlePulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
.pulse-subtle {
|
|
animation: subtlePulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
/* Glass morphism effect */
|
|
.glass-effect {
|
|
background: rgba(62, 62, 62, 0.7);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Fade in pour le texte qui stream */
|
|
.fade-in-text {
|
|
animation: textFadeIn 100ms ease-out;
|
|
}
|
|
|
|
@keyframes textFadeIn {
|
|
from {
|
|
opacity: 0.7;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|