mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-23 03:25:07 +03:00
Clean up
This commit is contained in:
@@ -68,13 +68,13 @@ export default function HomePage() {
|
||||
Безопасный мессенджер с открытым исходным кодом
|
||||
</h2>
|
||||
<p className="hero-description">
|
||||
FromChat — это полностью открытый мессенджер с end-to-end шифрованием,
|
||||
FromChat — это полностью открытый мессенджер с end-to-end шифрованием,
|
||||
поддержкой файлов и уведомлений. Создан для тех, кто ценит приватность и свободу.
|
||||
</p>
|
||||
<div className="hero-actions">
|
||||
{openBtn}
|
||||
{!isMobile && <mdui-button
|
||||
variant="outlined"
|
||||
variant="outlined"
|
||||
onClick={() => navigate("/register")}
|
||||
>
|
||||
Зарегистрироваться
|
||||
@@ -126,22 +126,22 @@ export default function HomePage() {
|
||||
</div>
|
||||
<h4>End-to-End Шифрование</h4>
|
||||
<p>
|
||||
Ваши личные сообщения защищены современным шифрованием X25519 + AES-GCM.
|
||||
Ваши личные сообщения защищены современным шифрованием X25519 + AES-GCM.
|
||||
Только вы и получатель можете прочитать сообщения.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="feature-card">
|
||||
<div className="feature-icon">
|
||||
<mdui-icon name="code" />
|
||||
</div>
|
||||
<h4>100% открытый код</h4>
|
||||
<p>
|
||||
Весь исходный код доступен на <GitHubLink>GitHub</GitHubLink>. Вы можете проверить безопасность,
|
||||
Весь исходный код доступен на <GitHubLink>GitHub</GitHubLink>. Вы можете проверить безопасность,
|
||||
внести изменения или развернуть свой сервер.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="feature-card">
|
||||
<div className="feature-icon">
|
||||
<mdui-icon name="attach_file" />
|
||||
@@ -152,36 +152,36 @@ export default function HomePage() {
|
||||
В общем чате шифрования нет, так как ваши сообщения могут читать все пользователи FromChat.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="feature-card">
|
||||
<div className="feature-icon">
|
||||
<mdui-icon name="notifications" />
|
||||
</div>
|
||||
<h4>Уведомления</h4>
|
||||
<p>
|
||||
Получайте push-уведомления в браузере и настольном приложении.
|
||||
Получайте push-уведомления в браузере и настольном приложении.
|
||||
Никогда не пропустите важное сообщение.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="feature-card">
|
||||
<div className="feature-icon">
|
||||
<mdui-icon name="edit" />
|
||||
</div>
|
||||
<h4>Редактирование</h4>
|
||||
<p>
|
||||
Редактируйте и удаляйте свои сообщения. Отвечайте на сообщения
|
||||
Редактируйте и удаляйте свои сообщения. Отвечайте на сообщения
|
||||
для лучшего контекста общения.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="feature-card">
|
||||
<div className="feature-icon">
|
||||
<mdui-icon name="computer" />
|
||||
</div>
|
||||
<h4>Кроссплатформенность</h4>
|
||||
<p>
|
||||
Работает в браузере и как настольное приложение для Windows,
|
||||
Работает в браузере и как настольное приложение для Windows,
|
||||
macOS и Linux. Единый интерфейс везде.
|
||||
</p>
|
||||
</div>
|
||||
@@ -194,15 +194,15 @@ export default function HomePage() {
|
||||
<div className="download-content">
|
||||
<h3>Скачайте приложение</h3>
|
||||
<p>
|
||||
Для лучшего опыта используйте настольное приложение с поддержкой
|
||||
Для лучшего опыта используйте настольное приложение с поддержкой
|
||||
уведомлений и автономной работы.
|
||||
</p>
|
||||
<div className="download-buttons">
|
||||
{!isMobile ? (
|
||||
<>
|
||||
<a
|
||||
href="https://github.com/Toolbox-io/FromChat/actions/workflows/build.yml"
|
||||
target="_blank"
|
||||
<a
|
||||
href="https://github.com/Toolbox-io/FromChat/actions/workflows/build.yml"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<mdui-button variant="filled">
|
||||
@@ -239,13 +239,13 @@ export default function HomePage() {
|
||||
</mdui-button>
|
||||
) : (
|
||||
<>
|
||||
<mdui-button
|
||||
variant="filled"
|
||||
<mdui-button
|
||||
variant="filled"
|
||||
onClick={() => navigate("/register")}>
|
||||
Создать аккаунт
|
||||
</mdui-button>
|
||||
<mdui-button
|
||||
variant="outlined"
|
||||
<mdui-button
|
||||
variant="outlined"
|
||||
onClick={() => navigate("/login")}>
|
||||
Войти
|
||||
</mdui-button>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
color: $color-dark-on-background;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
position: relative;
|
||||
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
@@ -14,27 +14,27 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background:
|
||||
background:
|
||||
radial-gradient(circle at 20% 80%, rgba($color-dark-primary, 0.3) 0%, transparent 50%),
|
||||
radial-gradient(circle at 80% 20%, rgba($color-dark-tertiary, 0.3) 0%, transparent 50%),
|
||||
radial-gradient(circle at 40% 40%, rgba($color-dark-secondary, 0.2) 0%, transparent 50%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
|
||||
// Cascaded styles for all child elements
|
||||
* {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
|
||||
// Container styles
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
}
|
||||
|
||||
|
||||
// Header styles
|
||||
.homepage-header {
|
||||
padding: 1rem 0;
|
||||
@@ -46,12 +46,12 @@
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
|
||||
.header-content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
|
||||
.logo {
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
@@ -63,12 +63,12 @@
|
||||
background-clip: text;
|
||||
text-shadow: 0 0 20px rgba($color-dark-primary, 0.5);
|
||||
}
|
||||
|
||||
|
||||
.tagline {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.header-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -80,7 +80,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Hero section
|
||||
.hero {
|
||||
padding: 4rem 0;
|
||||
@@ -88,11 +88,11 @@
|
||||
align-items: center;
|
||||
min-height: 80vh;
|
||||
margin-top: 0;
|
||||
|
||||
|
||||
.hero-content {
|
||||
flex: 1;
|
||||
max-width: 600px;
|
||||
|
||||
|
||||
.hero-title {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 800;
|
||||
@@ -105,36 +105,36 @@
|
||||
text-shadow: 0 0 30px rgba($color-dark-primary, 0.5);
|
||||
animation: neonGlow 3s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
|
||||
.hero-description {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 2.5rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.hero-visual {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 2rem;
|
||||
|
||||
|
||||
.chat-preview {
|
||||
perspective: 1000px;
|
||||
|
||||
|
||||
.chat-window {
|
||||
background: rgba($color-dark-surface-container, 0.95);
|
||||
border-radius: 20px;
|
||||
padding: 1.5rem;
|
||||
box-shadow:
|
||||
box-shadow:
|
||||
0 20px 40px rgba(0, 0, 0, 0.5),
|
||||
0 0 20px rgba($color-dark-primary, 0.3),
|
||||
inset 0 1px 0 rgba($color-dark-primary, 0.2);
|
||||
@@ -143,7 +143,7 @@
|
||||
max-width: 400px;
|
||||
width: 100%;
|
||||
border: 1px solid rgba($color-dark-primary, 0.3);
|
||||
|
||||
|
||||
.chat-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -151,12 +151,12 @@
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid rgba($color-dark-primary, 0.3);
|
||||
margin-bottom: 1rem;
|
||||
|
||||
|
||||
.chat-title {
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
|
||||
.online-indicator {
|
||||
color: $color-dark-primary;
|
||||
font-size: 0.8rem;
|
||||
@@ -164,27 +164,27 @@
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.chat-messages {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
|
||||
|
||||
.message {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: flex-start;
|
||||
|
||||
|
||||
&.sent {
|
||||
flex-direction: row-reverse;
|
||||
|
||||
|
||||
.message-content {
|
||||
background: linear-gradient(135deg, $color-dark-primary, $color-dark-primary-container);
|
||||
color: $color-dark-on-primary;
|
||||
box-shadow: 0 0 15px rgba($color-dark-primary, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
&.received {
|
||||
.message-content {
|
||||
background: rgba($color-dark-surface-variant, 0.8);
|
||||
@@ -192,7 +192,7 @@
|
||||
border: 1px solid rgba($color-dark-outline-variant, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.message-avatar {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
@@ -207,18 +207,18 @@
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 0 10px rgba($color-dark-primary, 0.4);
|
||||
}
|
||||
|
||||
|
||||
.message-content {
|
||||
max-width: 70%;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 18px;
|
||||
position: relative;
|
||||
|
||||
|
||||
.message-text {
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
|
||||
.message-time {
|
||||
font-size: 0.75rem;
|
||||
opacity: 0.7;
|
||||
@@ -231,7 +231,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Features section
|
||||
.features {
|
||||
padding: 6rem 0;
|
||||
@@ -239,7 +239,7 @@
|
||||
backdrop-filter: blur(20px);
|
||||
border-top: 1px solid rgba($color-dark-primary, 0.2);
|
||||
border-bottom: 1px solid rgba($color-dark-primary, 0.2);
|
||||
|
||||
|
||||
.section-title {
|
||||
text-align: center;
|
||||
font-size: 2.5rem;
|
||||
@@ -251,12 +251,12 @@
|
||||
background-clip: text;
|
||||
text-shadow: 0 0 20px rgba($color-dark-primary, 0.5);
|
||||
}
|
||||
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
||||
gap: 2rem;
|
||||
|
||||
|
||||
.feature-card {
|
||||
background: rgba($color-dark-surface-container, 0.6);
|
||||
backdrop-filter: blur(20px);
|
||||
@@ -266,7 +266,7 @@
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@@ -279,24 +279,24 @@
|
||||
transition: opacity 0.3s ease;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
|
||||
> * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow:
|
||||
box-shadow:
|
||||
0 20px 40px rgba(0, 0, 0, 0.3),
|
||||
0 0 30px rgba($color-dark-primary, 0.2);
|
||||
border-color: rgba($color-dark-primary, 0.5);
|
||||
|
||||
|
||||
&::before {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.feature-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
@@ -309,14 +309,14 @@
|
||||
border: 1px solid rgba($color-dark-primary, 0.4);
|
||||
box-shadow: 0 0 15px rgba($color-dark-primary, 0.2);
|
||||
user-select: none;
|
||||
|
||||
|
||||
mdui-icon {
|
||||
font-size: 1.5rem;
|
||||
color: $color-dark-primary;
|
||||
text-shadow: 0 0 10px rgba($color-dark-primary, 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
h4 {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
@@ -324,7 +324,7 @@
|
||||
color: $color-dark-on-surface;
|
||||
text-shadow: 0 0 10px rgba($color-dark-primary, 0.3);
|
||||
}
|
||||
|
||||
|
||||
p {
|
||||
line-height: 1.6;
|
||||
opacity: 0.9;
|
||||
@@ -333,16 +333,16 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Download section
|
||||
.download {
|
||||
padding: 6rem 0;
|
||||
|
||||
|
||||
.download-content {
|
||||
text-align: center;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
|
||||
|
||||
h3 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
@@ -353,14 +353,14 @@
|
||||
background-clip: text;
|
||||
text-shadow: 0 0 20px rgba($color-dark-primary, 0.5);
|
||||
}
|
||||
|
||||
|
||||
p {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 2.5rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
|
||||
.download-buttons {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
@@ -369,19 +369,19 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// CTA section
|
||||
.cta {
|
||||
padding: 6rem 0;
|
||||
background: rgba($color-dark-surface-container, 0.3);
|
||||
backdrop-filter: blur(20px);
|
||||
border-top: 1px solid rgba($color-dark-primary, 0.2);
|
||||
|
||||
|
||||
.cta-content {
|
||||
text-align: center;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
|
||||
|
||||
h3 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
@@ -392,14 +392,14 @@
|
||||
background-clip: text;
|
||||
text-shadow: 0 0 20px rgba($color-dark-primary, 0.5);
|
||||
}
|
||||
|
||||
|
||||
p {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 2.5rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
|
||||
.cta-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
@@ -408,7 +408,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Footer
|
||||
.homepage-footer {
|
||||
background: rgba($color-dark-surface-container, 0.8);
|
||||
@@ -416,13 +416,13 @@
|
||||
padding: 3rem 0 1rem;
|
||||
border-top: 1px solid rgba($color-dark-primary, 0.3);
|
||||
box-shadow: 0 -4px 20px rgba($color-dark-primary, 0.1);
|
||||
|
||||
|
||||
.footer-content {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
|
||||
.footer-section {
|
||||
h4 {
|
||||
font-size: 1.1rem;
|
||||
@@ -431,13 +431,13 @@
|
||||
color: $color-dark-on-surface;
|
||||
text-shadow: 0 0 10px rgba($color-dark-primary, 0.3);
|
||||
}
|
||||
|
||||
|
||||
p {
|
||||
opacity: 0.8;
|
||||
line-height: 1.6;
|
||||
color: $color-dark-on-surface-variant;
|
||||
}
|
||||
|
||||
|
||||
a {
|
||||
color: $color-dark-on-surface;
|
||||
text-decoration: none;
|
||||
@@ -447,7 +447,7 @@
|
||||
transition: all 0.3s ease;
|
||||
padding: 0.25rem 0;
|
||||
border-radius: 4px;
|
||||
|
||||
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
color: $color-dark-primary;
|
||||
@@ -457,12 +457,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.footer-bottom {
|
||||
text-align: center;
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid rgba($color-dark-primary, 0.3);
|
||||
|
||||
|
||||
p {
|
||||
opacity: 0.7;
|
||||
margin: 0;
|
||||
@@ -503,13 +503,13 @@
|
||||
max-width: 1200px;
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba($color-dark-primary, 0.3);
|
||||
box-shadow:
|
||||
box-shadow:
|
||||
0 8px 32px rgba(0, 0, 0, 0.3),
|
||||
0 0 20px rgba($color-dark-primary, 0.2);
|
||||
backdrop-filter: blur(30px);
|
||||
background: rgba($color-dark-surface-container, 0.9);
|
||||
}
|
||||
|
||||
|
||||
.hero {
|
||||
margin-top: 6rem;
|
||||
}
|
||||
@@ -534,32 +534,32 @@
|
||||
.container {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
|
||||
.homepage-header {
|
||||
.header-content {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.hero {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
padding: 2rem 0;
|
||||
|
||||
|
||||
.hero-content {
|
||||
.hero-title {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
|
||||
.hero-description {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.hero-visual {
|
||||
padding: 1rem;
|
||||
|
||||
|
||||
.chat-preview {
|
||||
.chat-window {
|
||||
transform: none;
|
||||
@@ -568,47 +568,47 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.features {
|
||||
.features-grid {
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
|
||||
.feature-card {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.section-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.download {
|
||||
.download-content {
|
||||
h3 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
|
||||
.download-buttons {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.cta {
|
||||
.cta-content {
|
||||
h3 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
|
||||
.cta-actions {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.homepage-footer {
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -625,19 +625,19 @@
|
||||
.hero-title {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
|
||||
.hero-description {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.features {
|
||||
.section-title {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.download {
|
||||
.download-content {
|
||||
h3 {
|
||||
@@ -645,7 +645,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.cta {
|
||||
.cta-content {
|
||||
h3 {
|
||||
|
||||
Reference in New Issue
Block a user