Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page de présentation / d'acueil + Lettre Z #32

Merged
merged 4 commits into from
Nov 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Open Source and free alternative to Antidote.
- [x] Dans un doc Remède
- [x] Afficher
- [x] Référencer tous les mots (#21)
- [ ] Page de présentation
- [x] Page de présentation
- [ ] Applications de bureaux
- [ ] Windows
- [ ] MAC
Expand Down
1 change: 1 addition & 0 deletions data/REMEDE_z.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ Running on [localhost:8000](http:/localhost:8000) !

Documentation available at [localhost:8000/docs](http:/localhost:8000/docs).

> [!NOTE]
> Please [generate the sqlite database](#sqlite-database) to serve the latest version of this one through the API !

## Datas
Expand Down
1 change: 0 additions & 1 deletion docs/FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ En ligne sur [localhost:8000](http:/localhost:8000) !

Documentation sur [localhost:8000/docs](http:/localhost:8000/docs).

> [!NOTE]
> Veuillez [générer la base sqlite](#base-sqlite) pour fournir la dernière version de celle-ci !

## Données
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
title: Remède
logo: /.github/icon.png
logo: /icon.png
description: Le dictionnaire mobile !
show_downloads: false
google_analytics:
Expand Down
Binary file added docs/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 72 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,80 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Le dictionnaire mobile en français !">
<meta name="author" content="camarm">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css" />
<link rel="stylesheet" href="styles.css" />
<link rel="icon" href="/icon.png">
<script src="https://kit.fontawesome.com/2828f7885a.js" integrity="sha384-WAsFbnLEQcpCk8lM1UTWesAf5rGTCvb2Y+8LvyjAAcxK1c3s5c0L+SYOgxvc6PWG" crossorigin="anonymous"></script>
<title>Remède | Le dictionnaire mobile</title>
<meta property="og:title" content="Remède | Le dictionnaire" />
<meta property="og:url" content="https://remede.camarm.fr" />
<meta property="og:image" content="/og.png" />
</head>
<body>

<nav class="level is-mobile">
<div class="level-left">
<div class="level-item is-justify-content-left">
<a href="/">
<img src="icon.png" class="image is-h is-small" alt="Remède icon"/>
</a>
</div>
</div>
<div class="level-right">
<div class="level-item is-justify-content-right also-mobile">
<a class="has-font-weight-bold">contact@camarm.dev</a>
</div>
</div>
</nav>
<section class="section is-medium">
<div class="columns is-centered is-align-items-center is-justify-content-center">
<div class="column is-half">
<h1 class="title is-large has-text-grey">
Nous créons le
<span class="has-text-secondary">meilleur</span>
<span class="has-text-primary">dictionnaire mobile</span>
<span class="is-italic is-underlined is-family-secondary">français</span>
!
</h1>
</div>
<div class="column is-half is-flex is-align-items-center is-justify-content-right">
<img class="image is-small" src="phone.png" alt="Labse Phone Logo"/>
</div>
</div>
</section>
<section class="section">
<div class="container center">
<div class="mb-6 columns is-multiline">
<p class="buttons">
<button class="button is-link is-outlined">Télécharger</button>
<button onclick="location.href = '/FR'" class="button is-focused is-success">Documentation</button>
</p>
</div>
</section>
<footer class="section">
<div class="container">
<div class="pb-2 is-flex is-flex-wrap-wrap is-justify-content-between is-align-items-center">
<div class="mr-auto mb-1">
<a class="is-inline-block" href="#">
<img class="image" src="icon.png" alt="Logo Labse" style="height: 4em"></a>
</div>
</div>
<div class="pt-5" style="border-top: 1px solid var(--border);"></div>
</div>
<div class="container">
<div class="is-flex-tablet is-justify-content-between is-align-items-center">
<p>All rights reserved © Remède</p>
<div class="py-2 is-hidden-tablet"></div>
<div class="ml-auto">
<a class="mr-4 is-inline-block" href="https://play.google.com/dev" target="_blank"><i class="fab fa-google-play"></i> Play Store</a>
<a class="mr-4 is-inline-block" href="mailto:software@camarm.dev"><i class="fas fa-envelope"></i> Email</a>
<a class="mr-4 is-inline-block" href="https://github.com/camarm-dev/remede"><i class="fab fa-github"></i> Github</a>
</div>
</div>
</div>
</footer>
</body>
</html>
Binary file added docs/phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
196 changes: 196 additions & 0 deletions docs/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@

:root {
--text: #000000;
--bg: #FFFFFF;
--bg-alt: #d5d5d5;
--grey: #9995A4;
--border: #514F54;
--primary: #3880ff;
--active: #4c8dff;
--secondary: #2dd36f;
--secondary-active: #42d77d;
}


body {
max-width: 100vw;
overflow: hidden;
color: var(--text) !important;
background-color: var(--bg) !important;
min-height: 100vh;
font-family: "IBMPlex", sans-serif;
}

.has-text-primary {
color: var(--primary) !important;
}

a.has-text-primary:hover {
color: var(--active) !important;
}

.has-text-secondary {
color: var(--secondary) !important;
}

a.has-text-secondary:hover {
color: var(--secondary-active) !important;
}

.title.is-large {
font-size: 4em;
}

h1, h3 {
font-family: "Amiko", sans-serif;
font-weight: bolder;
color: var(--text) !important;
}

a {
font-weight: bold;
}

h2, h2 + .subtitle {
font-weight: bold;
}

.icon {
margin-top: .5em;
margin-right: .2em;
color: var(--primary);
text-shadow: var(--text);
}

.size-1-5x {
font-size: 1.5em;
}

.icon.secondary {
color: var(--secondary);
}

.icon.green {
color: #366e1f;
}

a {
color: var(--primary) !important;
}

a:hover {
color: var(--active) !important;
}

.columns {
max-width: 880px;
}

.level {
align-items: center;
justify-content: center;
border-bottom: 0.55px solid var(--border);
}

.level-left {
width: 50%;
max-width: 440px;
}

.level-right {
width: 50%;
max-width: 440px;
}

.level-item {
padding: 1em;
}

.level-item a {
text-decoration: none;
}

.image.is-small {
height: 28em;
}

.image.is-h.is-small {
height: 3.5em;
}

.is-centered {
margin: auto;
}

.container.center {
display: flex;
flex-direction: column;
align-items: center;
}

.box {
background-color: var(--bg-alt);
box-shadow: none;
border: .55px solid var(--border);
border-radius: 6px;
color: var(--text);
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}

.box .icon {
margin-bottom: .5em;
margin-left: .5em;
}

.box div {
margin-left: .4em;
}

.box.img {
padding: 0;
}

.box img {
border-radius: 6px;
max-height: 250px;
object-fit: cover;
}

.icon-hover {
transition: .5s ease-in-out;
}

.icon-hover:hover {
scale: 1.1;
cursor: pointer;
}

footer p {
font-family: "IBMPlex", sans-serif;
}

.icon img {
height: 3em;
width: 3em;
}

@media (max-width: 1024px) {
.no-mg-mobile {
margin: 0 !important;
}

.title.is-large {
font-size: 3em;
}

.level-item a {
font-size: .7em;
}

.is-justify-content-right:not(.also-mobile) {
justify-content: center !important;
}
}
5 changes: 4 additions & 1 deletion parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ def remedize(word_list: list):
"e": ['é', 'ê', 'è', 'ë'],
'o': ['ô', 'ö', 'œ']
}
current_char = 'p'
current_char = 'z'
for word in word_list:
if not word.lower().startswith('z'):
continue
if not word.lower().startswith(current_char) and not any([word.lower().startswith(char) for char in accepted_char.get(current_char, [current_char])]):
saveRemede(current_char, remede_dictionary)
del remede_dictionary
Expand All @@ -151,6 +153,7 @@ def remedize(word_list: list):
errored += 1
remede_dictionary[word] = inserted_word
print(f"\033[A\033[KMot n°{word_list.index(word) + 1}/{total}: \"{word}\"{' ' * (22 - len(word))} | {errored} erreurs | {segments} segments sauvégardés")
saveRemede(current_char, remede_dictionary)


def getTimeDetails(time_object):
Expand Down