Skip to content

Commit

Permalink
Merge pull request #37 from lion-packages/design
Browse files Browse the repository at this point in the history
Dashboard Redesign
  • Loading branch information
GabrielPalac authored Oct 26, 2024
2 parents 8fed25e + 6258b90 commit 55d9867
Show file tree
Hide file tree
Showing 19 changed files with 2,800 additions and 1,534 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
crossorigin="anonymous"
/>
</head>
<body class="bg-dark-logo">
<body class="bg-lion-dark">
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
Expand Down
3,086 changes: 1,738 additions & 1,348 deletions package-lock.json

Large diffs are not rendered by default.

35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,26 @@
"dependencies": {
"bootstrap": "^5.3.3",
"bootstrap-icons": "^1.11.3",
"react": "^18.2.0",
"react-bootstrap": "^2.10.2",
"framer-motion": "^11.11.9",
"react": "^18.3.1",
"react-bootstrap": "^2.10.5",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-icons": "^4.4.0",
"react-markdown": "^8.0.5",
"react-router-bootstrap": "^0.26.2",
"react-router-dom": "^6.3.0",
"react-syntax-highlighter": "^15.5.0",
"remark-gfm": "^3.0.1"
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
"react-markdown": "^9.0.1",
"react-router-bootstrap": "^0.26.3",
"react-router-dom": "^6.27.0",
"react-syntax-highlighter": "^15.6.1",
"remark-gfm": "^4.0.0"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"vite": "^5.2.0"
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.2",
"eslint": "^9.13.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.12",
"vite": "^5.4.9"
}
}
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import "./assets/css/index.css";
import "./assets/css/navbar.css";

import { Routes, Route } from "react-router-dom";
import NavbarNavigation from "./pages/components/NavbarNavigation";
import AddTabs from "./pages/components/AddTabs";
Expand Down
18 changes: 10 additions & 8 deletions src/Tools/NavigationLinks.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
export default [
// {
// display_name: "Framework",
// type: "items",
// url: "",
// childs: [
// { display_name: "Getting started", url: "/framework/getting-started" },
// ],
// },
{
display_name: "Libraries",
type: "link",
Expand All @@ -27,4 +19,14 @@ export default [
type: "link",
url: "/linux-configuration",
},
// {
// display_name: "Resources",
// type: "items",
// childs: [
// {
// display_name: "",
// url: "/",
// },
// ],
// },
];
142 changes: 142 additions & 0 deletions src/assets/css/dashboard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
/* ---- Backgrounds ---- */

.bg-blur-center {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: 1;
background: radial-gradient(circle at top, #ff8463, transparent 70%);
background-color: #111111;
backdrop-filter: blur(10px);
}

.bg-blur-left-ellipse {
position: relative;
top: 0;
left: 0;
width: 100%;
z-index: 1;
background: radial-gradient(ellipse at left, #ff8463, transparent 50%);
background-color: #111111;
backdrop-filter: blur(10px);
}

.bg-blur-buttom-ellipse {
position: relative;
top: 0;
left: 0;
width: 100%;
z-index: 1;
background: radial-gradient(ellipse at bottom, #ff8463, transparent 65%);
background-color: #111111;
backdrop-filter: blur(10px);
}

.bg-blur-right-ellipse {
position: relative;
top: 0;
left: 0;
width: 100%;
z-index: 1;
background: radial-gradient(ellipse at right, #ff8463, transparent 45%);
background-color: #111111;
backdrop-filter: blur(10px);
}

.bg-transparent-blur {
background-color: rgba(17, 17, 17, 0.6);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ---- Styles ---- */

.active-block {
border: 1px solid var(--bg-lion-orange);
border-right: none;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
box-shadow: 0 0 11px var(--bg-lion-orange) 4d;
transition-delay: 0.2s;
}

/* ---- Buttons ---- */

.btn-orange-custom {
color: #ffffff;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
position: relative;
background: radial-gradient(141.42% 141.42% at 100% 0%, #ffce9d66, #ffce9d00),
radial-gradient(
140.35% 140.35% at 100% 94.74%,
var(--bg-lion-orange),
#ff846300
),
radial-gradient(89.94% 89.94% at 18.42% 15.79%, #ffce9d, #ffce9d00);
box-shadow: 0 1px #ffffffbf inset;
}

.btn-orange-custom:hover {
color: #e5e5e5;
background: radial-gradient(141.42% 141.42% at 100% 0%, #ffce9d66, #ffce9d00),
radial-gradient(
140.35% 140.35% at 100% 94.74%,
var(--bg-lion-orange),
#ff846300
),
radial-gradient(89.94% 89.94% at 18.42% 15.79%, #ffce9d, #ffce9d00),
radial-gradient(141.42% 141.42% at 100% 0%, #ffce9d66, #ffce9d00),
radial-gradient(
140.35% 140.35% at 100% 94.74%,
var(--bg-lion-orange),
#ff846300
),
radial-gradient(89.94% 89.94% at 18.42% 15.79%, #ffce9d, #ffce9d00);
box-shadow: 0 1px #ffffffbf inset;
}

.btn-white-custom {
color: #ffffff;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
position: relative;
background: radial-gradient(141.42% 141.42% at 100% 0%, #00000066, #00000000),
radial-gradient(140.35% 140.35% at 100% 94.74%, #ffffff, #ffffff00),
radial-gradient(89.94% 89.94% at 18.42% 15.79%, #000000, #00000000);
box-shadow: 0 1px #ffffffbf inset;
}

.btn-white-custom:hover {
color: #e5e5e5;
background: radial-gradient(141.42% 141.42% at 100% 0%, #00000066, #00000000),
radial-gradient(140.35% 140.35% at 100% 94.74%, #ffffff, #ffffff00),
radial-gradient(89.94% 89.94% at 18.42% 15.79%, #000000, #00000000),
radial-gradient(141.42% 141.42% at 100% 0%, #00000066, #00000000),
radial-gradient(140.35% 140.35% at 100% 94.74%, #ffffff, #ffffff00),
radial-gradient(89.94% 89.94% at 18.42% 15.79%, #000000, #00000000);
box-shadow: 0 1px #ffffffbf inset;
}

/* ---- Blocks ---- */

.blocks {
position: relative; /* Asegúrate de que la posición sea relativa para el efecto de sombra */
transition: box-shadow 0.3s ease; /* Transición suave para la sombra */
}

.blocks:hover {
box-shadow: 0 0 10px var(--bg-lion-orange), 0 0 20px var(--bg-lion-orange); /* Sombra al hacer hover */
}

/* Clase para la sombra inicial, que será invisible hasta el hover */
.blocks {
box-shadow: 0 0 0 transparent; /* Sin sombra inicialmente */
transition: box-shadow 0.5s ease; /* Transición suave para la sombra */
}

/* Para mostrar la sombra durante el hover */
.blocks:hover {
box-shadow: 0 0 10px var(--bg-lion-orange), 0 0 20px var(--bg-lion-orange); /* Sombra al hacer hover */
}
49 changes: 49 additions & 0 deletions src/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,55 @@
font-family: "jetbrains-font", sans-serif;
}

:root {
--bg-lion-orange: #ff8731;
--bg-lion-dark: #111111;
}

/* ---- Backgrounds ---- */

.bg-lion-orange {
background-color: var(--bg-lion-orange);
}

.bg-lion-dark {
background-color: var(--bg-lion-dark);
}

/* ---- Text ---- */

.text-lion-orange {
color: var(--bg-lion-orange);
}

.text-shadow {
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ---- Borders ---- */

.border-lion-light {
border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-lion-light-bottom {
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.border-lion-light-top {
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Navbar ---- */

.navbar-blur {
background-color: rgba(17, 17, 17, 0.6);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------- */

span.hljs-function.hljs-title {
Expand Down
31 changes: 31 additions & 0 deletions src/assets/css/navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.dropdown-menu-blur {
--bs-dropdown-color: #dee2e6;
--bs-dropdown-bg: rgba(17, 17, 17, 0.8);
--bs-dropdown-border-color: var(--bs-border-color-translucent);
--bs-dropdown-box-shadow: none;
--bs-dropdown-link-color: #dee2e6;
--bs-dropdown-link-hover-color: #fff;
--bs-dropdown-divider-bg: var(--bs-border-color-translucent);
--bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.15);
--bs-dropdown-link-active-color: #fff;
--bs-dropdown-link-active-bg: rgba(255, 255, 255, 0.15);
--bs-dropdown-link-disabled-color: #adb5bd;
--bs-dropdown-header-color: #adb5bd;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu-blur .dropdown-item {
color: var(--bs-dropdown-link-color);
}

.dropdown-menu-blur .dropdown-item:hover {
color: var(--bs-dropdown-link-hover-color);
background-color: var(--bs-dropdown-link-hover-bg);
}

.dropdown-menu-blur .dropdown-item.active,
.dropdown-menu-blur .dropdown-item:active {
color: var(--bs-dropdown-link-active-color);
background-color: var(--bs-dropdown-link-active-bg);
}
Binary file added src/assets/img/ico-trnasparent-orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 55d9867

Please sign in to comment.