fix(studio): тёмный текст в PleeseReg + Профиль ведёт на rublox.pro
Some checks failed
CI / Lint (pull_request) Failing after 40s
CI / Build (pull_request) Failing after 40s
CI / Secret scan (pull_request) Successful in 2m31s
CI / PR size check (pull_request) Successful in 6s

This commit is contained in:
МИН 2026-05-28 15:02:05 +03:00
parent 80c31a1f94
commit 30f0c622f1
2 changed files with 37 additions and 4 deletions

View File

@ -105,7 +105,12 @@ function renderProjectCard(p, navigate, genreMap, onDeleteClick, cl, requireAuth
*/ */
const KubikonStudio = () => { const KubikonStudio = () => {
const navigate = useNavigate(); const navigate = useNavigate();
const { isAuthenticated, isLoading } = useAuth(); const { isAuthenticated, isLoading, user } = useAuth();
// Главный сайт Рублокса туда уходит «Профиль» (свой реальный профиль
// у студии нет, профили живут на rublox.pro).
const RUBLOX_HOME =
(typeof import.meta !== 'undefined' && import.meta.env?.VITE_RUBLOX_HOME) ||
'https://rublox.pro/app';
const { isDesktop } = useDeviceType(); const { isDesktop } = useDeviceType();
// Активная вкладка. Начальное значение можно задать через ?tab= в // Активная вкладка. Начальное значение можно задать через ?tab= в
// URL так на Studio переходят из вики (у неё нет своих вкладок). // URL так на Studio переходят из вики (у неё нет своих вкладок).
@ -458,7 +463,14 @@ const KubikonStudio = () => {
)} )}
<button <button
className={cl.profileBtn} className={cl.profileBtn}
onClick={() => navigate('/me')} onClick={() => {
// Профили живут на rublox.pro, не в студии.
// У гостя профиля нет открываем главную сайта.
const url = (isAuthenticated && user?.id)
? `${RUBLOX_HOME}/profile/${user.id}`
: RUBLOX_HOME;
window.open(url, '_blank', 'noopener');
}}
style={{ display: 'inline-flex', alignItems: 'center', gap: 6 }} style={{ display: 'inline-flex', alignItems: 'center', gap: 6 }}
> >
<Icon name="user" size={14} /> Профиль <Icon name="user" size={14} /> Профиль

View File

@ -1,14 +1,16 @@
.Wrap { .Wrap {
width: 1088px; width: 100%;
height: 89vh; max-width: 720px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: #1e1b4b;
} }
.wrapLast { .wrapLast {
display: flex; display: flex;
align-items: center;
} }
.wrapLast img { .wrapLast img {
@ -22,6 +24,25 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
color: #1e1b4b;
}
.ppropsRegPleese {
color: #1e1b4b;
text-align: center;
margin: 12px 0 0;
max-width: 240px;
}
.ppropsRegPleese a {
color: #3357ff;
}
.ppropsRegPleese code {
background: #f3e8ff;
padding: 1px 5px;
border-radius: 4px;
font-size: 11px;
} }
@media (max-width: 768px) { @media (max-width: 768px) {