Skip to content

Commit

Permalink
slight tweaks/bug fixes from testing
Browse files Browse the repository at this point in the history
  • Loading branch information
r-southworth committed Feb 5, 2024
1 parent 4f0fd37 commit dfe2b5c
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 27 deletions.
8 changes: 5 additions & 3 deletions src/components/common/ProfileBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ export const ProfileBtn = () => {
</button>
<ul id="profileItems" class="hidden fixed z-50 right-2 bg-background1 dark:bg-background1-DM m-2 p-2 rounded-lg justify-start shadow-md shadow-shadow-LM dark:shadow-shadow-DM">
{renderWhenUser()}
<div class="mt-2 border-b-2 border-border1 dark:border-border1-DM pb-2">
<a href={`/${lang}/faq`}>{t('buttons.faq')}</a>
</div>

<div class="mt-2">
<div>
<a href={`/${lang}`}>{t('pageTitles.home')}</a>
</div>
<div>
<a href={`/${lang}/faq`}>{t('buttons.faq')}</a>
</div>

<div>
<a href={`mailto:support@todoservis.com`}>{t('menus.contactUs')}</a>
</div>
Expand Down
27 changes: 16 additions & 11 deletions src/components/posts/CreateNewPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,24 @@ export const CreateNewPost: Component = () => {
</label>

<div class="mb-4 flex justify-center">
<div class="flex items-end justify-end">
<div class="group flex items-center relative mr-2 w-4">

</div>
</div>
<div class="">
<div class="flex flex-row justify-end">
<div class="group flex items-center relative mr-2">
<PostImage
url={imageUrl()[imageUrl().length - 1]}
size={150}
onUpload={(e: Event, url: string) => {
setImageUrl([...imageUrl(), url]);
}}
/>
</div>
<div class="flex items-end justify-end">
<div class="group flex items-center relative ml-2">
<svg
class="peer w-4 h-4 border-2 bg-icon1 dark:bg-background1-DM fill-iconbg1 dark:fill-iconbg1-DM border-border1 dark:border-none rounded-full mb-2"
class="peer w-4 h-4 border-2 bg-icon1 dark:bg-background1-DM fill-iconbg1 dark:fill-iconbg1-DM border-border1 dark:border-none rounded-full"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
Expand Down Expand Up @@ -368,14 +381,6 @@ export const CreateNewPost: Component = () => {
</span>
</div>
</div>
<PostImage
url={imageUrl()[imageUrl().length - 1]}
size={150}
onUpload={(e: Event, url: string) => {
setImageUrl([...imageUrl(), url]);
}}
/>
</div>
</div>

<br />
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/UI/English.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const English = {
phone: 'Call',
saveProfile: 'Save Profile',
filters: "Filters",
faq: "FAQs?",
faq: "Help Center",
},

messages: {
Expand Down
8 changes: 4 additions & 4 deletions src/i18n/UI/French.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const French = {
services: "Trouvez les services dont vous avez besoin pour accomplir votre travail. Recherchez des mots-clés, filtrez par catégorie et filtrez par emplacement pour trouver ce dont vous avez besoin. Affichez les aperçus des articles et cliquez sur un article pour en savoir plus.",
signUp: "Fournissez votre e-mail et créez un mot de passe pour vous inscrire pour rechercher des services ou publier des services sur TodoServis.",
login: "Entrez votre email et votre mot de passe pour vous connecter à TodoServis.",
home: "TodoServis, où vous trouverez tout ce dont vous avez besoin pour accomplir votre travail. ",
home: "TodoServis, où vous trouverez tout ce dont vous avez besoin pour accomplir votre travail.",
// signIn: string,
createClientAccount: "Rejoignez TodoServis en tant que client et débloquez un monde de services. Inscrivez-vous aujourd'hui pour trouver et entrer en contact avec les meilleurs fournisseurs de services de votre région.",
viewClientAccount: "Accédez et gérez les informations de votre profil client sans effort sur TodoServis.",
Expand Down Expand Up @@ -74,7 +74,7 @@ export const French = {
phone: 'Appel',
saveProfile: "Enregistrer le profil",
filters: "Filtres",
faq: "FAQs?",
faq: "Centre d'Aide",
},

messages: {
Expand Down Expand Up @@ -108,7 +108,7 @@ export const French = {
clickWrap1: 'En cliquant sur',
clickWrap2: 'vous indiquez que vous avez lu et accepté les',
fetch: 'Récupérer des services',
todoFetch: "Todo, le chien d'assistance, ira vous chercher les services dont vous avez besoin !",
todoFetch: "Todo, le chien d'assistance, ira vous chercher les services dont vous avez besoin!",
mustSignIn: 'Vous devez être connecté pour voir les services disponibles.',
profileEdits: "Les modifications du profil ne seront enregistrées qu'après avoir cliqué sur le bouton Enregistrer le profil !",
noPostsSearch: "Aucun article ne correspond à cette recherche spécifique - veuillez essayer un autre filtre ou un autre mot clé",
Expand Down Expand Up @@ -329,7 +329,7 @@ productCategoryInfo:{
{ name: "Voyage", description: "Services de voyage", ariaLabel: "Voyage", id: "13" },
{ name: 'Éducation', description: 'Enseignement, Tutorat, Formation et Autres Services Éducatifs', ariaLabel: "Éducation", id: "14" },
{ name: 'Nourriture & Boisson', description: 'Les Services Alimentaires', ariaLabel: "Alimentaires", id: "15" },
{ name: 'Bureau & domicile', description: 'Services pour la maison et le bureau : nettoyage, jardinage, lutte antiparasitaire, etc.', ariaLabel: "Bureau & domicile", id: "16" },
{ name: 'Bureau & domicile', description: 'Services pour la maison et le bureau : nettoyage, jardinage, lutte antiparasitaire, etc.', ariaLabel: "Bureau & Domicile", id: "16" },
// Add more products as needed
]
},
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/UI/Spanish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const Spanish = {
phone: 'Llamada',
saveProfile: 'Guardar Perfil',
filters: "Filtros",
faq: "¿FAQs?",
faq: "Centro de Ayuda",
},

messages: {
Expand Down Expand Up @@ -327,7 +327,7 @@ export const Spanish = {
{ name: 'Viajes', description: 'Servicios de Viaje', ariaLabel: "Viajes", id: "13" },
{ name: 'Educación', description: 'Enseñanza, Tutoría, Capacitación y Otros Servicios Educativos', ariaLabel: "Educación", id: "14" },
{ name: 'Comida & Bebida', description: 'Servicios de Comida', ariaLabel: "Comida & Bebida", id: "15" },
{ name: 'Oficina & casa', description: 'Servicios para el hogar y la oficina: limpieza, jardinería, control de plagas y más', ariaLabel: "Oficina & casa", id: "16" },
{ name: 'Oficina & casa', description: 'Servicios para el hogar y la oficina: limpieza, jardinería, control de plagas y más', ariaLabel: "Oficina & Casa", id: "16" },
// Add more products as needed
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const classes = () => {
---

<Layout pageTitle={t("pageTitles.about")} pageDescription={t("pageDescriptions.about")}>
<div>
<div class="mx-6">
<div class="mb-8">
<h1 class="font-bold text-3xl mb-2 text-ptext1 dark:text-ptext1-DM">
{t("pageTitles.about")}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/acceptableuse.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const classes = () => {
---

<Layout pageTitle={t("pageTitles.acceptableUse")} pageDescription={t("pageDescriptions.acceptableUse")}>
<div>
<div class="mx-6">
<div class="mb-8">
<h1 class="font-bold text-3xl mb-2 text-ptext1 dark:text-ptext1-DM">{t("pageTitles.acceptableUse")}</h1>
<p><a class=`${classes()}` href={translateLink()}>{t("messages.translation")}</a>{t("messages.translations")}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/faq.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { Content } = await faqPage[0].render();
---

<Layout pageTitle={t("pageTitles.faq")} pageDescription={t("pageDescriptions.faq")}>
<div>
<div class="mx-6">
<div class="mb-8">
<h1 class="font-bold text-3xl mb-2 text-ptext1 dark:text-ptext1-DM">
{t("pageTitles.faq")}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/impact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const classes = () => {
---

<Layout pageTitle={t("pageTitles.impact")} pageDescription={t("pageDescriptions.impact")}>
<div>
<div class="mx-6">
<div class="prose dark:prose-invert">
<Content />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/privacy.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const classes = () => {
---

<Layout pageTitle={t("pageTitles.privacy")} pageDescription={t("pageDescriptions.privacy")}>
<div>
<div class="mx-6">
<div class="mb-8">
<h1 class="font-bold text-3xl mb-2 text-ptext1 dark:text-ptext1-DM">{t("pageTitles.privacy")}</h1>
<p><a class=`${classes()}` href={translateLink()}>{t("messages.translation")}</a>{t("messages.translations")}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/terms.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const classes = () => {
---

<Layout pageTitle={t("pageTitles.terms")} pageDescription={t("pageDescriptions.terms")}>
<div>
<div class="mx-6">
<div class="mb-8">
<h1 class="font-bold text-3xl mb-2 text-ptext1 dark:text-ptext1-DM">{t("pageTitles.terms")}</h1>
<p><a class=`${classes()}` href={translateLink()}>{t("messages.translation")}</a>{t("messages.translations")}</p>
Expand Down

0 comments on commit dfe2b5c

Please sign in to comment.