Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Signed-off-by: wfxey <158351052+wfxey@users.noreply.github.com>
  • Loading branch information
wfxey authored Jul 23, 2024
1 parent 8d43137 commit 9a3ccd7
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 7 deletions.
55 changes: 55 additions & 0 deletions CSS/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ body {
box-sizing: border-box;
color: var(--text-color);
position: relative;
overflow-x: hidden;
}

.cookie-banner {
Expand Down Expand Up @@ -243,6 +244,32 @@ body.dark-mode .program_table tr:hover {
background-color: var(--hover-bg-color);
}

pre {
background-color: #282c34;
color: #abb2bf;
border-radius: 5px;
padding: 10px;
overflow-x: auto;
font-family: 'Courier New', Courier, monospace;
line-height: 1.5;
margin: 20px 0;
}

code {
background-color: #3e4451;
color: #e06c75;
padding: 2px 4px;
border-radius: 3px;
font-family: 'Courier New', Courier, monospace;
}

pre code {
background: transparent;
color: inherit;
padding: 0;
border: none;
}

.dark-mode-btn {
position: absolute;
top: 10px;
Expand All @@ -260,6 +287,24 @@ body.dark-mode .program_table tr:hover {
z-index: 1000;
}

::-webkit-scrollbar {
width: 12px;
}

::-webkit-scrollbar-track {
background: var(--bg-color);
border-radius: 10px;
}

::-webkit-scrollbar-thumb {
background: #888;
border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
background: #555;
}

.project-sidebar {
position: fixed;
top: 60px;
Expand All @@ -273,6 +318,10 @@ body.dark-mode .program_table tr:hover {
overflow-y: auto;
}

.red {
background-color: #751414;
}

.project-sidebar button {
display: block;
width: 230px;
Expand All @@ -286,6 +335,9 @@ body.dark-mode .program_table tr:hover {
position: relative;
}

.project-sidebar a {
text-decoration: none;
}

.project-sidebar button:hover {
background-color: var(--link-hover-color);
Expand All @@ -300,6 +352,9 @@ body.dark-mode .program_table tr:hover {
height: calc(100vh - 20px);
overflow: auto;
}
.project-content a {
color : var(--link-color);
}

.dark-mode-btn i {
color: var(--header-color);
Expand Down
2 changes: 1 addition & 1 deletion JS/welcome_console_message.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.log("This Website is hosted with GHP (GitHub Pages)")
console.log("Note: This page contains raw information only. There are no external links or redirections, and no downloads or additional content are provided. This is purely raw text.");
console.log("Made by D&I")
console.log("Version : v2024.07.23-DI-(1)")
console.log("Version : v2024.07.23-DI-(2)")
console.log("-------------------------")
112 changes: 107 additions & 5 deletions project/diec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,124 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>D&I - diec</title>
<link rel="stylesheet" href="https://d-i-projects.github.io/website/CSS/style.css">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="https://d-i-projects.github.io/website/IMG/icon_bg.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://d-i-projects.github.io/website/JS/cookie.js" defer></script>
<link rel="stylesheet" href="https://d-i-projects.github.io/website/CSS/style.css">
<script src="https://d-i-projects.github.io/website/JS/check_accessable.js" defer></script>
<script src="https://d-i-projects.github.io/website/JS/welcome_console_message.js" defer></script>
</head>
<body>
<nav class="project-sidebar" aria-label="Sidebar">
<h1>Jump to...</h1>
<button aria-label="Informationen">Info</button>
<button aria-label="Dokumentation">Documentation</button>
<button aria-label="Statistiken">Stats</button>

<a href="#info"><button aria-label="Informationen">Info</button></a>

<a href="#example"><button aria-label="example">Example</button></a>

<a href="https://d-i-projects.github.io/website/status/"><button class="red" aria-label="Back">Back</button></a>
</nav>
<div id="cookie-banner" class="cookie-banner">
<div class="cookie-content">
<p>We collect data to remember your preferences for dark and light mode, ensuring you have the best possible experience on our website.</p>
<button class="button_accept" id="accept-cookies">Accept</button>
<a href="https://d-i-projects.github.io/website/leave"><button class="button_leave">Leave</button></a>
</div>
</div>
<main class="project-content">
<h1>Hallo!</h1>
<h1 id="info">diec</h1>

<p>License : Mit License</p>

<p>Downloads : 1.5k/Month</p>

</div>

<p>A tool that encodes text and gives out a key that you can decode with this program too!</p>

<h2>Installation</h2>

<pre><code>pip install diec</code></pre>

<hr>

<h2 id="example">Example</h2>

<hr>

<h3>encode()</h3>

<pre><code>from diec.encoder import encode

encode("I love python and I love to learn new things here too! <3")
</code></pre>

<h4>Output</h4>

<p>The Key you created : <a href="https://github.com/D-I-Projects/diec/blob/main/diec_example/key.diec">key.diec</a></p>

<p>The encoded text : <a href="https://github.com/D-I-Projects/diec/blob/main/diec_example/encoded.diec">encoded.diec</a></p>

<p><strong>Both of them will appear in your current directory</strong></p>

<hr>

<h3>decode()</h3>

<pre><code>from diec.decoder import decode

decode() # The key.diec and encoded.diec files have to be in the same directory as the file that runs this command.
</code></pre>

<h4>Output</h4>

<pre><code>I love python and I love to learn new things here too! <3</code></pre>

<hr>

<h2>CLI Tutorial</h2>

<p>The Diec CLI (Command Line Interface) allows you to easily encode and decode text via the terminal.</p>

<h3>Installation</h3>

<p>Make sure Diec is installed:</p>

<pre><code>pip install diec</code></pre>

<h3>Using the CLI</h3>

<p>After installation, you can use the following commands:</p>

<ol>
<li><strong>Encode Text</strong>:</li>
</ol>

<p>To encode a text, use the <code>encode_cli</code> command. Provide the desired text in quotes:</p>

<pre><code>python -m diec encode-cli "Your text here"
</code></pre>

<p><strong>Example</strong>:</p>

<pre><code>python -m diec encode-cli "I love Python and learning new things! <3"
</code></pre>

<p>After running this command, a key file (<code>key.diec</code>) and an encoded file (<code>encoded.diec</code>) will be created in your current directory.</p>

<ol start="2">
<li><strong>Decode Text</strong>:</li>
</ol>

<p>To decode an encoded text, use the <code>decode_cli</code> command:</p>

<pre><code>python -m diec decode-cli
</code></pre>

<p>Make sure that the <code>key.diec</code> and <code>encoded.diec</code> files are in the same directory as the script you run.</p>

<p></p>
</main>
<button id="toggle-dark-mode" class="dark-mode-btn" aria-label="Dark Mode">
<i class="fas fa-moon"></i>
Expand Down
2 changes: 1 addition & 1 deletion status/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</tr>
<tr onclick="redirectToWebsite()" style="cursor: pointer;">
<td>website</td>
<td>v2024.07.23-DI-(1)</td>
<td>v2024.07.23-DI-(2)</td>
<td>@wfxey</td>
<td>none</td>
<td>Public</td>
Expand Down

0 comments on commit 9a3ccd7

Please sign in to comment.