-
Актуальная версия
+
Genshin Impact
+
+
Актуальная версия
{genshinDL.filter(dl => !dl.outdated && !dl.beta).map(dl => (
{dl.name}
@@ -40,7 +39,7 @@ const GenshinDownloads = () => {
))}
-
setOutdatedCollapse(!outdatedCollapse)}>Устаревшие версии
+
setOutdatedCollapse(!outdatedCollapse)}>Устаревшие версии
{!outdatedCollapse && genshinDL.filter(dl => dl.outdated && !dl.beta).map(dl => (
{dl.name}
@@ -58,7 +57,7 @@ const GenshinDownloads = () => {
))}
-
setBetaCollapse(!betaCollapse)}>Бета версии
+
setBetaCollapse(!betaCollapse)}>Бета версии
{!betaCollapse && genshinDL.filter(dl => dl.beta).map(dl => (
{dl.name}
diff --git a/src/pages/Main/Main.scss b/src/pages/Main/Main.scss
index db820da..1005c4a 100644
--- a/src/pages/Main/Main.scss
+++ b/src/pages/Main/Main.scss
@@ -2,8 +2,9 @@
.Main {
width: 100%;
- height: calc(100vh - var(--navbar-height));
+ height: calc(100vh - var(--navbar-height) - env(safe-area-inset-top));
box-sizing: border-box;
+ padding-bottom: calc(8px + env(safe-area-inset-bottom));
&__Center {
height: calc(100% - var(--navbar-height));
@@ -33,15 +34,10 @@
&_Link {
display: flex;
align-items: center;
-
- & > :first-child {
- margin-right: 4px;
- }
+ font-size: 2rem;
&:not(:last-child) {
- margin-right: 4px;
- padding-right: 4px;
- border-right: 1px solid white;
+ margin-right: 12px;
}
}
}
diff --git a/src/pages/Main/Main.tsx b/src/pages/Main/Main.tsx
index 9fffbdb..e13185c 100644
--- a/src/pages/Main/Main.tsx
+++ b/src/pages/Main/Main.tsx
@@ -12,6 +12,10 @@ const Main = () => {
'Golang fullstack',
1000,
'Python fullstack',
+ 1000,
+ 'Kotlin developer',
+ 1000,
+ 'Web developer',
1000
]}
repeat={Infinity}
@@ -22,36 +26,23 @@ const Main = () => {
-
- {/*
*/}
- {/* */}
- {/* */}
- {/* */}
- {/*
*/}
);
}
diff --git a/src/pages/Projects/Projects.scss b/src/pages/Projects/Projects.scss
index 0b00ff1..565193d 100644
--- a/src/pages/Projects/Projects.scss
+++ b/src/pages/Projects/Projects.scss
@@ -1,7 +1,24 @@
.Projects {
padding-top: var(--navbar-height);
width: 100%;
+ display: flex;
+ flex-direction: column;
+ &_Title {
+ font-size: 3rem;
+ text-align: center;
+ font-weight: 200;
+ text-decoration: underline var(--accent-color);
+ }
+
+ &__Title {
+ text-align: center;
+ font-size: 2rem;
+ border-bottom: 1px solid #fff;
+ margin-bottom: 4px;
+ padding-bottom: 4px;
+ }
+
&__List {
margin-top: 8px;
}
diff --git a/src/pages/Projects/Projects.tsx b/src/pages/Projects/Projects.tsx
index 330a291..f1534e6 100644
--- a/src/pages/Projects/Projects.tsx
+++ b/src/pages/Projects/Projects.tsx
@@ -1,6 +1,7 @@
import React, {useEffect, useState} from "react";
import ProjectCard from "../../ui/ProjectCard/ProjectCard";
import './Projects.scss';
+import Loading from "../../ui/Loading/Loading";
type ProjectsState = {
done: ProjectType[]
@@ -18,10 +19,12 @@ const Projects = () => {
.then(_ => setLoading(false));
}, []);
- if(loading) return
Грузится, бля...
+ if(loading) return
;
return (
-
Завершенные и в разработке
+
Проекты
+
+
Завершенные и в разработке
{projects.done.map(project => (
{
))}
-
Замороженные и брошенные
+
Замороженные и брошенные
{projects.dropped.map(project => (
{
+
+}
+
+export default StarRailDownloads;
\ No newline at end of file
diff --git a/src/ui/Loading/Loading.tsx b/src/ui/Loading/Loading.tsx
index 858fb46..0f63219 100644
--- a/src/ui/Loading/Loading.tsx
+++ b/src/ui/Loading/Loading.tsx
@@ -1,5 +1,5 @@
const Loading = () => (
- Грузится бля!
+ Загрузка...
);
export default Loading;
\ No newline at end of file
diff --git a/src/ui/ProjectBadge/ProjectLinkBadge.sass b/src/ui/ProjectBadge/ProjectLinkBadge.sass
deleted file mode 100644
index 122f49b..0000000
--- a/src/ui/ProjectBadge/ProjectLinkBadge.sass
+++ /dev/null
@@ -1,3 +0,0 @@
-.ProjectLinkBadge
- &:not(:last-child)
- margin-right: 8px
\ No newline at end of file
diff --git a/src/ui/ProjectBadge/ProjectLinkBadge.scss b/src/ui/ProjectBadge/ProjectLinkBadge.scss
new file mode 100644
index 0000000..5d53dd9
--- /dev/null
+++ b/src/ui/ProjectBadge/ProjectLinkBadge.scss
@@ -0,0 +1,5 @@
+.ProjectLinkBadge {
+ &:not(:last-child) {
+ margin-right: 8px;
+ }
+}
\ No newline at end of file
diff --git a/src/ui/ProjectBadge/ProjectLinkBadge.tsx b/src/ui/ProjectBadge/ProjectLinkBadge.tsx
index f760abb..1a729aa 100644
--- a/src/ui/ProjectBadge/ProjectLinkBadge.tsx
+++ b/src/ui/ProjectBadge/ProjectLinkBadge.tsx
@@ -1,4 +1,4 @@
-import './ProjectLinkBadge.sass';
+import './ProjectLinkBadge.scss';
type Props = {
linkImage: ProjectLink
diff --git a/src/ui/ProjectBadge/ProjectStackBadge.sass b/src/ui/ProjectBadge/ProjectStackBadge.sass
deleted file mode 100644
index 45a38ce..0000000
--- a/src/ui/ProjectBadge/ProjectStackBadge.sass
+++ /dev/null
@@ -1,3 +0,0 @@
-.ProjectStackBadge
- &:not(:last-child)
- margin-right: 8px
\ No newline at end of file
diff --git a/src/ui/ProjectBadge/ProjectStackBadge.scss b/src/ui/ProjectBadge/ProjectStackBadge.scss
new file mode 100644
index 0000000..6c3a259
--- /dev/null
+++ b/src/ui/ProjectBadge/ProjectStackBadge.scss
@@ -0,0 +1,5 @@
+.ProjectStackBadge {
+ &:not(:last-child) {
+ margin-right: 8px
+ }
+}
\ No newline at end of file
diff --git a/src/ui/ProjectBadge/ProjectStackBadge.tsx b/src/ui/ProjectBadge/ProjectStackBadge.tsx
index c516822..b239f05 100644
--- a/src/ui/ProjectBadge/ProjectStackBadge.tsx
+++ b/src/ui/ProjectBadge/ProjectStackBadge.tsx
@@ -1,4 +1,4 @@
-import './ProjectStackBadge.sass';
+import './ProjectStackBadge.scss';
type Props = {
stack: ProjectStack
diff --git a/src/ui/ProjectBadge/ProjectStatusBadge.sass b/src/ui/ProjectBadge/ProjectStatusBadge.sass
deleted file mode 100644
index 56645f2..0000000
--- a/src/ui/ProjectBadge/ProjectStatusBadge.sass
+++ /dev/null
@@ -1,17 +0,0 @@
-.ProjectStatus
- font-size: 16px
- font-weight: 300
- height: fit-content
- padding: 2px 6px
-
- &__Development
- background-color: #ff9c1b
-
- &__Release
- background-color: #ab1bff
-
- &__Freeze
- background-color: #19b3a6
-
- &__Dropped
- background-color: #ff1b1b
\ No newline at end of file
diff --git a/src/ui/ProjectBadge/ProjectStatusBadge.scss b/src/ui/ProjectBadge/ProjectStatusBadge.scss
new file mode 100644
index 0000000..bb2e236
--- /dev/null
+++ b/src/ui/ProjectBadge/ProjectStatusBadge.scss
@@ -0,0 +1,19 @@
+.ProjectStatus {
+ font-size: 16px;
+ font-weight: 300;
+ height: fit-content;
+ padding: 2px 6px;
+
+ &__Development {
+ background-color: #ff9c1b;
+ }
+ &__Release {
+ background-color: #ab1bff;
+ }
+ &__Freeze {
+ background-color: #19b3a6;
+ }
+ &__Dropped {
+ background-color: #ff1b1b;
+ }
+}
\ No newline at end of file
diff --git a/src/ui/ProjectBadge/ProjectStatusBadge.tsx b/src/ui/ProjectBadge/ProjectStatusBadge.tsx
index 477afde..be9e2af 100644
--- a/src/ui/ProjectBadge/ProjectStatusBadge.tsx
+++ b/src/ui/ProjectBadge/ProjectStatusBadge.tsx
@@ -1,5 +1,5 @@
import { capitalize } from "../../utils";
-import './ProjectStatusBadge.sass';
+import './ProjectStatusBadge.scss';
type Props = {
status: ProjectStatus
diff --git a/src/ui/ProjectCard/ProjectCard.sass b/src/ui/ProjectCard/ProjectCard.sass
deleted file mode 100644
index 81100e6..0000000
--- a/src/ui/ProjectCard/ProjectCard.sass
+++ /dev/null
@@ -1,23 +0,0 @@
-.ProjectCard
- background-color: #333
- padding: 8px
- margin: 0 8px 8px 0
- box-sizing: border-box
- border: 2px solid var(--accent-color)
-
- &__Title
- display: flex
- justify-content: space-between
- margin-bottom: 4px
-
- &__Content, &__Links, &__Stack
- border-top: 1px solid #d8858d
- padding-top: 4px
-
- &__Content, &__Stack
- margin-bottom: 4px
-
- &__Links
- font-weight: 500
- &_Link:not(:first-child)
- margin-left: 4px
\ No newline at end of file
diff --git a/src/ui/ProjectCard/ProjectCard.scss b/src/ui/ProjectCard/ProjectCard.scss
new file mode 100644
index 0000000..b6739dd
--- /dev/null
+++ b/src/ui/ProjectCard/ProjectCard.scss
@@ -0,0 +1,30 @@
+.ProjectCard {
+ background-color: #333;
+ padding: 8px;
+ box-sizing: border-box;
+ border: 2px solid var(--accent-color);
+ margin-bottom: 8px;
+
+ &__Title {
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: 4px;
+ }
+
+ &__Content, &__Links, &__Stack {
+ border-top: 1px solid #d8858d;
+ padding-top: 4px;
+ }
+
+ &__Content, &__Stack {
+ margin-bottom: 4px;
+ }
+
+ &__Links {
+ font-weight: 500;
+
+ &_Link:not(:first-child) {
+ margin-left: 4px;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ui/ProjectCard/ProjectCard.tsx b/src/ui/ProjectCard/ProjectCard.tsx
index 018a50e..4ef08f2 100644
--- a/src/ui/ProjectCard/ProjectCard.tsx
+++ b/src/ui/ProjectCard/ProjectCard.tsx
@@ -2,7 +2,7 @@ import React from "react";
import ProjectLinkBadge from "../ProjectBadge/ProjectLinkBadge";
import ProjectStackBadge from "../ProjectBadge/ProjectStackBadge";
import ProjectStatusBadge from "../ProjectBadge/ProjectStatusBadge";
-import './ProjectCard.sass';
+import './ProjectCard.scss';
type Props = {
title: string