update/home-page
ajout d'une description à la page à accueille
This commit is contained in:
parent
d8d5562224
commit
8f4085cd9b
3 changed files with 115 additions and 0 deletions
56
.idea/workspace.xml
generated
Normal file
56
.idea/workspace.xml
generated
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="44703a71-8c23-4abc-a0c7-354169d39572" name="Changes" comment="" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="MacroExpansionManager">
|
||||
<option name="directoryName" value="kuiu26lf" />
|
||||
</component>
|
||||
<component name="MarkdownSettingsMigration">
|
||||
<option name="stateVersion" value="1" />
|
||||
</component>
|
||||
<component name="ProjectId" id="2LlxfrPPBBoJTygslN7qTFq3TFz" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"last_opened_file_path": "C:/Users/etuni/OneDrive/Documents/Cours/2eme/js",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "pnpm",
|
||||
"prettierjs.PrettierConfiguration.Package": "C:\\dev\\peer-at-code-web\\node_modules\\prettier",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}]]></component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="44703a71-8c23-4abc-a0c7-354169d39572" name="Changes" comment="" />
|
||||
<created>1676459578077</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1676459578077</updated>
|
||||
<workItem from="1676459581979" duration="23000" />
|
||||
<workItem from="1676907487953" duration="78000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
55
app/page.tsx
55
app/page.tsx
|
@ -1,6 +1,7 @@
|
|||
'use client';
|
||||
|
||||
import AppLink from '@/ui/AppLink';
|
||||
<<<<<<< Updated upstream
|
||||
import { HtmlHTMLAttributes, useEffect } from 'react';
|
||||
|
||||
|
||||
|
@ -39,6 +40,60 @@ export default function Home() {
|
|||
</h1>
|
||||
<br></br>
|
||||
<AppLink href="/dashboard">Dashboard</AppLink>
|
||||
=======
|
||||
import { useEffect } from 'react';
|
||||
|
||||
|
||||
export default function Home() {
|
||||
let start: boolean = true;
|
||||
useEffect(() => {
|
||||
if (start) {
|
||||
start = false;
|
||||
let visible: boolean = true;
|
||||
let animation: boolean = true; //TODO ajouter un bouton pour arreter l'animation
|
||||
let con: HTMLElement | null = document.getElementById('console');
|
||||
window.setInterval(function () {
|
||||
if (con !== null && visible === true && animation === true) {
|
||||
con.className = 'console invisible';
|
||||
visible = false;
|
||||
} else if (con !== null && animation === true) {
|
||||
con.className = 'console';
|
||||
visible = true;
|
||||
}
|
||||
}, 400);
|
||||
let word: HTMLElement | null = document.getElementById('text')
|
||||
let text: string = "Peer-at-Code";
|
||||
for (let i: number = 0; i < text.length; i++) {
|
||||
setTimeout(function () {
|
||||
if (word !== null)
|
||||
word.innerHTML += text.charAt(i);
|
||||
}, 410 * i)
|
||||
}
|
||||
}
|
||||
}, []);
|
||||
return (
|
||||
<div>
|
||||
<div className="flex h-screen w-full">
|
||||
<div className="m-auto flex flex-col">
|
||||
<h1 className="text-center text-6xl font-bold">
|
||||
Bienvenu sur
|
||||
</h1>
|
||||
<h1 className='flex text-4xl' >
|
||||
<span id="text"></span>
|
||||
<div className='console' id="console">_</div>
|
||||
</h1>
|
||||
<br></br>
|
||||
<AppLink href="/dashboard">Dashboard</AppLink>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex h-screen w-full">
|
||||
<div className="text-center m-auto flex flex-col space-x-0 md:flex-row md:space-x-6 md:space-y-0">
|
||||
<img className='md:w-2/6 ml-[11%] sm:w-0 w-0 ' src='https://media.discordapp.net/attachments/1070815084718334032/1074104191921959003/glazk0_a_minimalistic_logo_that_is_a_pirate_logo_white_and_blac_9b4eb1dd-5979-45dd-a70a-f880ee3b49ca.png?width=586&height=586'></img>
|
||||
<p className='self-center md:w-2/6 sm:w-3/6 w-4/6 text-justify'>
|
||||
Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un imprimeur anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique, sans que son contenu n'en soit modifié. Il a été popularisé dans les années 1960 grâce à la vente de feuilles Letraset contenant des passages du Lorem Ipsum, et, plus récemment, par son inclusion dans des applications de mise en page de texte, comme Aldus PageMaker.
|
||||
</p>
|
||||
</div>
|
||||
>>>>>>> Stashed changes
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
<<<<<<< Updated upstream
|
||||
reactStrictMode: false, // Recommended for the `pages` directory, default in `app`.
|
||||
=======
|
||||
reactStrictMode: true, // Recommended for the `pages` directory, default in `app`.
|
||||
>>>>>>> Stashed changes
|
||||
swcMinify: true,
|
||||
experimental: {
|
||||
appDir: true
|
||||
|
|
Loading…
Add table
Reference in a new issue