Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9186cf8ff2 | ||
|
|
60ba0b2bf6 |
Binary file not shown.
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 121 KiB |
@@ -18,9 +18,7 @@ const App = () => {
|
||||
<Routes>
|
||||
<Route path="/" element={<Inicio />} />
|
||||
<Route path="/mods" element={
|
||||
<ProtectedRoute minimumRoles={[CONSTANTS.ADMIN_ROLE]}>
|
||||
<Mods />
|
||||
</ProtectedRoute>
|
||||
<Mods />
|
||||
} />
|
||||
<Route path="/jugadores" element={
|
||||
<ProtectedRoute minimumRoles={[CONSTANTS.ADMIN_ROLE]}>
|
||||
|
||||
@@ -44,14 +44,12 @@ const Header = () => {
|
||||
INICIO
|
||||
</div>
|
||||
</Link>
|
||||
<IfRole roles={[CONSTANTS.ADMIN_ROLE]}>
|
||||
<Link to="mods" className='nav-link'>
|
||||
<div className='align-items-center d-flex gap-2'>
|
||||
{Icons.AddGrid}
|
||||
MODS
|
||||
</div>
|
||||
</Link>
|
||||
</IfRole>
|
||||
<Link to="mods" className='nav-link'>
|
||||
<div className='align-items-center d-flex gap-2'>
|
||||
{Icons.AddGrid}
|
||||
MODS
|
||||
</div>
|
||||
</Link>
|
||||
<IfRole roles={[CONSTANTS.ADMIN_ROLE]}>
|
||||
<Link to="jugadores" className='nav-link'>
|
||||
<div className='align-items-center d-flex gap-2'>
|
||||
@@ -61,7 +59,7 @@ const Header = () => {
|
||||
</Link>
|
||||
</IfRole>
|
||||
<IfAuthenticated>
|
||||
<ProfilePicture userName={user?.user_name} part="helm" />
|
||||
<ProfilePicture userName={user?.user_name == "Gallardo7761" ? "0x6a6f7365" : user?.user_name} part="helm" />
|
||||
</IfAuthenticated>
|
||||
<IfNotAuthenticated>
|
||||
<ProfilePicture userName="Steve" part="avatar" />
|
||||
@@ -95,14 +93,12 @@ const Header = () => {
|
||||
INICIO
|
||||
</div>
|
||||
</Link>
|
||||
<IfRole roles={[CONSTANTS.ADMIN_ROLE, CONSTANTS.PLAYER_ROLE]}>
|
||||
<Link to="mods" className='nav-link mt-4' onClick={closeMenu}>
|
||||
<div className='align-items-center d-flex gap-2'>
|
||||
{Icons.AddGrid}
|
||||
MODS
|
||||
</div>
|
||||
</Link>
|
||||
</IfRole>
|
||||
<Link to="mods" className='nav-link mt-4' onClick={closeMenu}>
|
||||
<div className='align-items-center d-flex gap-2'>
|
||||
{Icons.AddGrid}
|
||||
MODS
|
||||
</div>
|
||||
</Link>
|
||||
<IfRole roles={[CONSTANTS.ADMIN_ROLE]}>
|
||||
<Link to="jugadores" className='nav-link mt-4' onClick={closeMenu}>
|
||||
<div className='align-items-center d-flex gap-2'>
|
||||
|
||||
@@ -2,6 +2,7 @@ import CustomContainer from "@/components/layout/CustomContainer";
|
||||
import { Col, Row, Modal } from "react-bootstrap";
|
||||
import { useState } from "react";
|
||||
import ContentWrapper from "../layout/ContentWrapper";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
const Inicio = () => {
|
||||
const [modalShown, setModalShown] = useState(false);
|
||||
@@ -41,7 +42,7 @@ const Inicio = () => {
|
||||
{step === 2 && (
|
||||
<>
|
||||
<p>
|
||||
El servidor se encuentra en la version <b>1.21.10</b>, así que tendrás que seleccionar esa versión en el launcher. Permitimos <b>mods</b> client-side que no den ventaja sobre otros jugadores (como shaders, Mouse-Tweaks, etc).
|
||||
El servidor se encuentra en la versión <strong>1.20.1</strong> de Minecraft y <strong>47.4.0</strong> de Forge. Selecciona 1.20.1 en el launcher que estés usando, y descarga desde la <a href="https://files.minecraftforge.net/net/minecraftforge/forge/index_1.20.1.html">página de Forge</a> la versión correspondiente. Además deberás descargar <Link to={`/mods`}>nuestro modpack</Link>.
|
||||
</p>
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -92,7 +92,7 @@ const ModsContent = ({ reqConfig }) => {
|
||||
<button className="minecraft-btn" onClick={handleCreate}>Nuevo mod</button>
|
||||
<button
|
||||
className='minecraft-btn'
|
||||
onClick={() => { window.open("/files/etsiimc/MiarmaPack.zip", "_blank"); }}
|
||||
onClick={() => { window.open("/files/etsiimc/ETSII-MC-ModPack.zip", "_blank"); }}
|
||||
>
|
||||
Descargar modpack
|
||||
</button>
|
||||
|
||||
@@ -39,10 +39,10 @@ const ProfileContent = ({ reqConfig }) => {
|
||||
<CustomContainer>
|
||||
<ContentWrapper>
|
||||
<div className="minecraft-card not-animated row">
|
||||
<h1 className="header col-12 mb-4">{data.user_name}</h1>
|
||||
<h1 className="header col-12 mb-4">{data?.user_name == "Gallardo7761" ? "0x6a6f7365" : data?.user_name}</h1>
|
||||
<ReactSkinview3d
|
||||
className="col-4"
|
||||
skinUrl={`https://mineskin.eu/skin/${data.user_name}`}
|
||||
skinUrl={`https://mineskin.eu/skin/${data?.user_name == "Gallardo7761" ? "0x6a6f7365" : data?.user_name}`}
|
||||
width={250}
|
||||
height={500}
|
||||
onReady={({viewer}) => {
|
||||
|
||||
Reference in New Issue
Block a user