Skip to content

Commit

Permalink
Updates files - v.1.3.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mpcgt committed Jun 16, 2024
1 parent 404df64 commit 068de12
Show file tree
Hide file tree
Showing 11 changed files with 177 additions and 40 deletions.
18 changes: 18 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
background-color: #000;
color: #fff;
Expand Down Expand Up @@ -29,4 +33,18 @@ body {

.ahsing {
font-family: ahsing;
}

.Footer {
position: absolute;
bottom: 0%;
width: 100%;
}

.float-left {
float: left;
}

.float-right {
float: right;
}
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { Analytics } from "@vercel/analytics/react"
import { SpeedInsights } from "@vercel/speed-insights/react"
import Navbar from '../src/assets/components/NewNavbar'
import Themes from '../src/assets/components/themes/themes'
import FooterNew from '../src/assets/components/Footer'
import '../src/index.css'
import Home from '../src/index';
import Products from '../src/assets/routes/pages/tools';
Expand Down
58 changes: 42 additions & 16 deletions src/assets/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,45 @@
const Footer = () => {
return (
"use client";
import { Link, useMatch, useResolvedPath } from "react-router-dom"
import { Footer } from "flowbite-react";
import Lvtc from "../lvtcw-letters.png"

<div className="container">
<footer className="py-3 my-4">
<ul className="nav justify-content-center border-bottom pb-3 mb-3">
<li className="nav-item"><a href="#" className="nav-link px-2 text-body-secondary">Home</a></li>
<li className="nav-item"><a href="#" className="nav-link px-2 text-body-secondary">Features</a></li>
<li className="nav-item"><a href="#" className="nav-link px-2 text-body-secondary">Pricing</a></li>
<li className="nav-item"><a href="#" className="nav-link px-2 text-body-secondary">FAQs</a></li>
<li className="nav-item"><a href="#" className="nav-link px-2 text-body-secondary">About</a></li>
</ul>
<p className="text-center text-body-secondary">&copy; 2024 Company, Inc</p>
</footer>
</div>
export function FooterNew() {
return (
<Footer container>
<div className="w-full text-center bg-dark">
<div className="w-full justify-between sm:flex sm:items-center sm:justify-between">
<div className="ms-5 mt-3">
<Footer.Brand
href="https://github.com/mpcgt/levetica"
src={Lvtc}
alt="Levetica Logo"
/>
</div>
<Footer.LinkGroup>
<FooterLink to="/"><i className="fa-solid fa-house"></i>&nbsp;Accueil</FooterLink>&nbsp;&nbsp;
<FooterLink to="/products"><i className="fa-solid fa-book"></i>&nbsp;Outils</FooterLink>&nbsp;&nbsp;
<FooterLink to="/articles"><i className="fa-solid fa-newspaper"></i>&nbsp;Articles</FooterLink>&nbsp;&nbsp;
<FooterLink to="/about"><i className="fa-solid fa-circle-info"></i>&nbsp;À propos</FooterLink>&nbsp;&nbsp;
<FooterLink to="https://github.com/mpcgt/levetica" target="_blank"><i className="fa-brands fa-github"></i>&nbsp;GitHub</FooterLink>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</Footer.LinkGroup>
</div>
<Footer.Divider />
</div>
</Footer>
);
};
}

function FooterLink({ to, children, ...props }) {
const resolvedPath = useResolvedPath(to)
const isActive = useMatch({ path: resolvedPath.pathname, end: true })

return (
<li className={isActive ? "active" : ""}>
<Link to={to} {...props}>
{children}
</Link>
</li>
)
}

export default Footer;
export default FooterNew
2 changes: 1 addition & 1 deletion src/assets/components/NewNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Navbar() {
</Link>
<ul>
<CustomLink to="/"><i className="fa-solid fa-house"></i>&nbsp;Accueil</CustomLink>
<CustomLink to="/products"><i className="fa-solid fa-book"></i>&nbsp;Produits</CustomLink>
<CustomLink to="/products"><i className="fa-solid fa-book"></i>&nbsp;Outils</CustomLink>
<CustomLink to="/articles"><i className="fa-solid fa-newspaper"></i>&nbsp;Articles</CustomLink>
<CustomLink to="/about"><i className="fa-solid fa-circle-info"></i>&nbsp;À propos</CustomLink>
<CustomLink to="https://github.com/mpcgt/levetica" target="_blank"><i className="fa-brands fa-github"></i>&nbsp;GitHub</CustomLink>
Expand Down
29 changes: 29 additions & 0 deletions src/assets/components/cards/vscode.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

"use client";

import { Button, Card } from "flowbite-react";

export function cardvscode() {
return (
<Card className="max-w-sm">
<h5 className="text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
Noteworthy technology acquisitions 2021
</h5>
<p className="font-normal text-gray-700 dark:text-gray-400">
Here are the biggest enterprise technology acquisitions of 2021 so far, in reverse chronological order.
</p>
<Button>
Read more
<svg className="-mr-1 ml-2 h-4 w-4" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clipRule="evenodd"
/>
</svg>
</Button>
</Card>
);
}

export default cardvscode
3 changes: 2 additions & 1 deletion src/assets/components/hero/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ const Hero = () => {
<h1 className="display-5 fw-bold text-start lh-1 mb-3 ahsing">
Fini les hésitations, trouve les outils adaptés à tes besoins.
</h1>
<h5 className="text-start font">
<h5 className="text-start font fs-5">
Les outils adaptés par langages de programmation sont des ressources
essentielles pour les développeurs, leur permettant de travailler de
manière efficace dans un environnement de développement spécifique à
chaque langage en offrant des fonctionnalités telles que la syntaxe
de coloration, la complétion automatique de code, la vérification de
la syntaxe et le débogage.{" "}
</h5>
<br />
<div className="d-grid gap-2 d-md-flex justify-content-md-start">
<button
type="button"
Expand Down
76 changes: 76 additions & 0 deletions src/assets/components/themes/themes.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
function Themes() {
return (
<div className="dropdown position-fixed bottom-0 end-0 mb-3 me-3 bd-mode-toggle">
<button
className="btn btn-bd-primary py-2 dropdown-toggle d-flex align-items-center"
id="bd-theme"
type="button"
aria-expanded="false"
data-bs-toggle="dropdown"
aria-label="Toggle theme (auto)"
>
<svg className="bi my-1 theme-icon-active" width="1em" height="1em">
<use href="#circle-half"></use>
</svg>
<span className="visually-hidden" id="bd-theme-text">
Toggle theme
</span>
</button>
<ul
className="dropdown-menu dropdown-menu-end shadow"
aria-labelledby="bd-theme-text"
>
<li>
<button
type="button"
className="dropdown-item d-flex align-items-center"
data-bs-theme-value="light"
aria-pressed="false"
>
<svg className="bi me-2 opacity-50" width="1em" height="1em">
<use href="#sun-fill"></use>
</svg>
Light
<svg className="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
<li>
<button
type="button"
className="dropdown-item d-flex align-items-center"
data-bs-theme-value="dark"
aria-pressed="false"
>
<svg className="bi me-2 opacity-50" width="1em" height="1em">
<use href="#moon-stars-fill"></use>
</svg>
Dark
<svg className="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
<li>
<button
type="button"
className="dropdown-item d-flex align-items-center active"
data-bs-theme-value="auto"
aria-pressed="true"
>
<svg className="bi me-2 opacity-50" width="1em" height="1em">
<use href="#circle-half"></use>
</svg>
Auto
<svg className="bi ms-auto d-none" width="1em" height="1em">
<use href="#check2"></use>
</svg>
</button>
</li>
</ul>
</div>
);
}

export default Themes;
2 changes: 1 addition & 1 deletion src/assets/routes/pages/news.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function News() {
<p className="card-text text-light">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Soluta nulla obcaecati assumenda quis maxime qui rem impedit cum officia porro!</p>
</div>
<div className="card-footer bg-secondary rounded-bottom">
<small className="text-light">Dernière mise à jour le 16 juin 2024</small>
<small className="text-light">Dernière mise à jour le 16 juin 2024</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/assets/routes/pages/tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function Tools() {
<div className="ahsing">
<h1>Guide d'outils pour les développeurs</h1>
</div>
</div>
</div>
<br />
<div className="margin">
Expand All @@ -39,7 +40,6 @@ function Tools() {
spécialement adapté aux particularités et aux exigences de chaque
langage de programmation.
</h5>
</div>
<br />
<div className="center">
<button
Expand Down
4 changes: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
Expand Down
21 changes: 1 addition & 20 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Hero from '../src/assets/components/hero/hero'
import imagePathWhite from "../src/assets/lvtcw-letters.png";
import dev from "../src/assets/images/dev.png";
import 'bootstrap/dist/css/bootstrap.css';
import "./App.css";
Expand All @@ -8,25 +7,7 @@ import "./index.css";
function Text() {
return (
<>
<div>
<Hero />
<div className="text-center">
<div className="marginstart">
<a href="https://github.com/mpcgt/levetica" rel="noopener" target="_blank">
{" "}
{/* Lien cliquable sur l'image/logo */}
<img src={imagePathWhite} className="logo" alt="Levetica" />{" "}
{/* Un logo qui fait 250px de hauteur et 450px de largeur */}
</a>
<br />
<h1 className="ahsing">
Fini les hésitations, trouve les outils adaptés à tes besoins. 👨‍💻⚛️
</h1>{" "}
{/* Titre */}
</div>
</div>
</div>

<div className="center">
{" "}
{/* Centrer le texte */}
Expand All @@ -37,7 +18,7 @@ function Text() {
<br />
<br />
Ce site web est actuellement en construction, ce site sera
officiellement publiée le <b>1er juillet 2024 à 18h.</b> <i>Vous êtes actuellement dans la version 1.2.0 (5 mai 2024)</i>
officiellement publiée le <b>1er juillet 2024 à 18h.</b> <i>Vous êtes actuellement dans la version 1.3.0-beta.1 (16 juin 2024)</i>
<br />
<br />
Vous avez atteint le site web de <b>Levetica</b>, un site web de nos
Expand Down

0 comments on commit 068de12

Please sign in to comment.