Skip to content

Commit

Permalink
feat: replacing text with icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jaaaaavier committed Dec 23, 2024
1 parent ef1806d commit 0c6a365
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 21 deletions.
2 changes: 0 additions & 2 deletions src/assets/lang/de/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"WhatCanWeDo": {
"title": "Was können Sie mit Internxt tun?",
"description": "Optimieren Sie das Datei-Management, die Sicherheit und den Datenschutz Ihrer Organisation mit unserem sicheren Cloud-Speicher für Unternehmen.",
"betweenDots": "...",
"cards": [
{
"imagePathname": "internxt_b2b_feature1",
Expand Down Expand Up @@ -111,7 +110,6 @@
},
"TestimonialsSection": {
"title": "Was Experten über uns sagen",
"betweenDots": "...",
"testimonials": [
{
"imageBrandName": "techradar",
Expand Down
2 changes: 0 additions & 2 deletions src/assets/lang/en/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"WhatCanWeDo": {
"title": "What can you do with Internxt?",
"description": "Optimize your organization's file management, security, and privacy with our secure cloud storage for business.",
"betweenDots": "...",
"cards": [
{
"imagePathname": "internxt_b2b_feature1",
Expand Down Expand Up @@ -111,7 +110,6 @@
},
"TestimonialsSection": {
"title": "What experts are saying about us",
"betweenDots": "...",
"testimonials": [
{
"imageBrandName": "techradar",
Expand Down
2 changes: 0 additions & 2 deletions src/assets/lang/es/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"WhatCanWeDo": {
"title": "¿Qué puedes hacer con Internxt?",
"description": "Optimiza la gestión de archivos, seguridad y privacidad de tu organización con nuestro almacenamiento en la nube para empresas.",
"betweenDots": "...",
"cards": [
{
"imagePathname": "almacenamiento_en_la_nube_para_empresas_feature_1_es",
Expand Down Expand Up @@ -111,7 +110,6 @@
},
"TestimonialsSection": {
"title": "Lo que los expertos dicen sobre nosotros",
"betweenDots": "...",
"testimonials": [
{
"imageBrandName": "techradar",
Expand Down
2 changes: 0 additions & 2 deletions src/assets/lang/fr/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"WhatCanWeDo": {
"title": "Que pouvez-vous faire avec Internxt ?",
"description": "Optimisez la gestion, la sécurité et la confidentialité des fichiers de votre organisation avec notre stockage cloud sécurisé pour les entreprises.",
"betweenDots": "...",
"cards": [
{
"imagePathname": "internxt_b2b_feature1",
Expand Down Expand Up @@ -111,7 +110,6 @@
},
"TestimonialsSection": {
"title": "Ce que les experts disent de nous",
"betweenDots": "...",
"testimonials": [
{
"imageBrandName": "techradar",
Expand Down
2 changes: 0 additions & 2 deletions src/assets/lang/it/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"WhatCanWeDo": {
"title": "Cosa puoi fare con Internxt?",
"description": "Ottimizza la gestione dei file, la sicurezza e la privacy della tua organizzazione con la nostra archiviazione cloud sicura per aziende.",
"betweenDots": "...",
"cards": [
{
"imagePathname": "internxt_b2b_feature1",
Expand Down Expand Up @@ -111,7 +110,6 @@
},
"TestimonialsSection": {
"title": "Cosa dicono gli esperti di noi",
"betweenDots": "...",
"testimonials": [
{
"imageBrandName": "techradar",
Expand Down
2 changes: 0 additions & 2 deletions src/assets/lang/ru/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"WhatCanWeDo": {
"title": "Что вы можете делать с Internxt?",
"description": "Оптимизируйте управление файлами, безопасность и конфиденциальность вашей организации с нашим безопасным облачным хранилищем для бизнеса.",
"betweenDots": "...",
"cards": [
{
"imagePathname": "internxt_b2b_feature1",
Expand Down Expand Up @@ -111,7 +110,6 @@
},
"TestimonialsSection": {
"title": "Что говорят о нас эксперты",
"betweenDots": "...",
"testimonials": [
{
"imageBrandName": "techradar",
Expand Down
2 changes: 0 additions & 2 deletions src/assets/lang/zh-tw/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"WhatCanWeDo": {
"title": "Internxt 能為您做什麼?",
"description": "使用我們的企業安全雲端存儲優化您的組織文件管理、安全和隱私。",
"betweenDots": "...",
"cards": [
{
"imagePathname": "internxt_b2b_feature1",
Expand Down Expand Up @@ -111,7 +110,6 @@
},
"TestimonialsSection": {
"title": "專家對我們的評價",
"betweenDots": "...",
"testimonials": [
{
"imageBrandName": "techradar",
Expand Down
1 change: 0 additions & 1 deletion src/assets/lang/zh/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"WhatCanWeDo": {
"title": "Internxt 能为您做什么?",
"description": "使用我们的企业安全云存储优化您的组织文件管理、安全和隐私。",
"betweenDots": "...",
"cards": [
{
"imagePathname": "internxt_b2b_feature1",
Expand Down
3 changes: 1 addition & 2 deletions src/assets/types/business.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,14 @@ export interface TestimonialsSection {

export interface Testimonial {
imageBrandName: string;
betweenDots: string;

brand: string;
review: string;
}

export interface WhatCanWeDo {
title: string;
description: string;
betweenDots: string;
cards: Card[];
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/business/TestimonialsSectionForBusiness.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Image from 'next/image';
import { FiveStars } from '../shared/StarsRate';
import { getImage } from '@/lib/getImage';
import { useState } from 'react';
import { CaretLeft, CaretRight } from '@phosphor-icons/react';
import { CaretLeft, CaretRight, DotsThree } from '@phosphor-icons/react';
import { Transition } from '@headlessui/react';

interface TestimonialsSectionForBusinessProps {
Expand Down Expand Up @@ -94,7 +94,7 @@ export const TestimonialsSectionForBusiness = ({ textContent }: TestimonialsSect
<div className="flex items-center justify-center space-x-2 text-center">
<button onClick={onLeftMobileArrowClick} className="flex items-center">
<CaretLeft size={24} />
<span className="ml-2 text-gray-100">{textContent.betweenDots}</span>
<DotsThree size={24} />
</button>
<button onClick={onRightMobileArrowClick} className="flex items-center">
<CaretRight size={24} />
Expand Down
4 changes: 2 additions & 2 deletions src/components/business/WhatCanWeDo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Image from 'next/image';
import { Fragment, useState } from 'react';
import RevealX from '../components/RevealX';
import ReactMarkdown from 'react-markdown';
import { CaretLeft, CaretRight } from '@phosphor-icons/react';
import { CaretLeft, CaretRight, DotsThree } from '@phosphor-icons/react';

interface WhatCanWeDoProps {
textContent: any;
Expand Down Expand Up @@ -107,7 +107,7 @@ export const WhatCanWeDo = ({ textContent }: WhatCanWeDoProps): JSX.Element => {
{selectedTab !== 0 && (
<button onClick={onLeftArrowClick} className="flex items-center text-white">
<CaretLeft size={24} />
<span className="ml-2">{textContent.betweenDots}</span>
<DotsThree size={24} />
</button>
)}

Expand Down

0 comments on commit 0c6a365

Please sign in to comment.