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

#732 optimize tags seo #743

Merged
merged 6 commits into from
Aug 30, 2024
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
16 changes: 10 additions & 6 deletions FrontEnd/src/components/CompanyCard/CompanyCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,16 @@ export default function CompanyCard({
src={profile.banner?.path}
alt="Company Banner"
className={styles['company-card__image']}
title="Company Banner"
loading="lazy"
/>
) : (
<img
className={styles['company-card__empty-image']}
src={`${process.env.REACT_APP_PUBLIC_URL}/svg/profile-view-image-empty.svg`}
alt={profile.name}
title={profile.name}
loading="lazy"
/>
)}
</div>
Expand All @@ -76,27 +80,27 @@ export default function CompanyCard({
placement="bottom"
pointAtCenter={true}
>
<div className={styles['company-card__category-text']}>
<p className={styles['company-card__category-text']}>
{activitiesSliceString}
</div>
</p>
</Tooltip>
<div className={styles['company-card__text-block__header']}>
<div className={styles['company-card__name-text']}>
<h3 className={styles['company-card__name-text']}>
{profile.name}
</div>
</h3>
</div>
<Tooltip
title={profile.regions_ukr_display}
placement="bottom"
pointAtCenter={true}
>
<div className={styles['company-card__region-text']}>
<p className={styles['company-card__region-text']}>
{profile.regions_ukr_display
? profile.regions_ukr_display.length < lengthOfRegion
? profile.regions_ukr_display
: `${profile.regions_ukr_display.substring(0, 35)}...`
: ''}
</div>
</p>
</Tooltip>
<div className={styles['company-card__footer_content']}>
<Tooltip
Expand Down
8 changes: 3 additions & 5 deletions FrontEnd/src/components/CompanyCard/CompanyCard.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'variables.css';

.company-card {
width: 360px;
min-height: 415px;
Expand Down Expand Up @@ -81,7 +79,7 @@
.company-card__name-text {
width: 328px;
height: 48px;
color: var(--text-color);
color: var(--companies-card-text-color);
font-family: var(--font-main);
font-size: 20px;
font-style: normal;
Expand All @@ -93,11 +91,11 @@

.company-card__name-text_link {
text-decoration: none;
color: var(--text-color);
color: var(--companies-card-text-color);
}

.company-card__name-text_link:visited {
color: var(--text-color);
color: var(--companies-card-text-color);
}

.company-card__region-text {
Expand Down
12 changes: 0 additions & 12 deletions FrontEnd/src/components/CompanyCard/variables.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.footer-content {
margin-top: auto;
}
width: var(--main-block-size);
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import css from './FooterBottom.module.css';
import logo from './opentech_logo.svg';

function FooterBottom() {
return (
<div className={css['footer-bottom']}>
<div className={css['footer-bottom__text']}>Copyright 2023 Forum. All rights reserved.</div>
<img className={css['footer-bottom-logo__svg']} src={logo} alt=""/>
<p className={css['footer-bottom__text']}>
Copyright 2023 Forum. All rights reserved.
</p>
<img
className={css['footer-bottom-logo__svg']}
src={`${process.env.REACT_APP_PUBLIC_URL}/img/opentech_logo.svg`}
alt="Opentech logo"
title="Opentech logo"
/>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
.footer-bottom {
display: flex;
width: 1304px;
padding: 6px 104px;
align-items: flex-start;
gap: 864px;

background: var(--gray-1, #333);
width: var(--main-block-size);
height: 33px;
justify-content: flex-start;
background: var(--footer-bottom-backround);
}

.footer-bottom__text {
color: var(--wf-base-white, #FFF);
color: var(--footer-font-color);
font-feature-settings: 'calt' off;

padding: 6px 0px 0px 104px;
font-family: var(--font-main);
font-size: 14px;
font-style: normal;
Expand All @@ -23,4 +21,5 @@
.footer-bottom-logo__svg {
width: 165px;
height: 20px;
padding-left: 55%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
font-weight: 400;
line-height: 150%;
letter-spacing: -0.14px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
}

.navigation-content-section__text {
color: var(--main-white, #FFF);
color: var(--footer-font-color);
font-feature-settings: 'calt' off;
text-decoration: none;

font-family: var(--font-main);
font-size: 14px;
font-style: normal;
Expand All @@ -25,10 +24,9 @@
}

.navigation-content-section-service__text {
color: var(--main-white, #FFF);
color: var(--footer-font-color);
font-feature-settings: 'calt' off;
text-decoration: none;

font-family: var(--font-main);
font-size: 14px;
font-style: normal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ function FooterPolicy() {
return (
<div className={css['policy-content']}>
<img
className={css['main-logo']}
className={css['policy-content__main-logo']}
src={`${process.env.REACT_APP_PUBLIC_URL}/craftMerge-logo-white.svg`}
alt="craft-merge-logo"
width="199"
height="24"
></img>
alt="craft merge logo"
title="CraftMerge logo">
</img>
<div className={css['policy-content-links']}>
{POLICY_LINKS.map((element) => (
<Link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,27 @@
gap: 79px;
}

.policy-content-logo {
color: var(--main-white, #FFF);
font-feature-settings: 'calt' off;
font-family: var(--font-logo);
font-size: 32px;
font-style: normal;
font-weight: 500;
line-height: 24px;
letter-spacing: -0.32px;
}

.policy-content-links {
display: flex;
align-items: flex-start;
gap: 32px;
}

.policy-content-links__text {
color: var(--wf-base-500, #A0ABC0);
color: var(--footer-links-font-color);
text-align: center;
font-feature-settings: 'calt' off;
text-decoration: none;

font-family: var(--font-main);
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 150%;
letter-spacing: -0.14px;
white-space: nowrap;
}
}

.policy-content__main_logo {
width: 199px;
height: 24px;
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
.footer-top {
display: flex;
width: 1304px;
padding: 24px 104px;
width: var(--main-block-size);
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 32px;

background: var(--main-black-80, #3C4044);
background: var(--footer-backround);
}

.footer-top-content {
display: flex;
align-items: flex-start;
gap: 180px;
padding: 24px 104px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
<img
className={css['main-logo']}
src={`${process.env.REACT_APP_PUBLIC_URL}/craftMerge-logo.svg`}
alt="craft-merge-logo"
alt="craft merge logo"
width="199"
height="24"
></img>
</Link>
</div>
<div className={css['navbar-utility-bar']}>
{props.page === 'login' || props.page === 'registration' ? null : (

Check warning on line 23 in FrontEnd/src/components/HeaderFooter/header/navbar/Navbar.jsx

View workflow job for this annotation

GitHub Actions / Linting

'page' is missing in props validation

Check warning on line 23 in FrontEnd/src/components/HeaderFooter/header/navbar/Navbar.jsx

View workflow job for this annotation

GitHub Actions / Linting

'page' is missing in props validation
<>
<Menu/>
<SearchBox></SearchBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useAuth } from '../../../../hooks';

import DropdownMenu from './DropdownMenu';
import css from './Profile.module.css';
import avatar_image from './Avatar.png';


function Profile() {
Expand All @@ -30,8 +29,8 @@ function Profile() {
<div className={css['header-profile-section']}>
<img
className={css['header-profile__avatar']}
src={avatar_image}
alt=""
src={`${process.env.REACT_APP_PUBLIC_URL}/img/Avatar.png`}
alt="avatar"
onClick={navigateToProfile}
/>
<DropdownMenu toggleText="Профіль">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
}

.header-profile__avatar {
width: 27px;
height: 27px;
display: flex;
flex-direction: column;
align-items: flex-end;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { useMemo } from 'react';
import { useMemo, useEffect, useContext} from 'react';
import { PropTypes } from 'prop-types';
import { useEffect } from 'react';
import { useContext } from 'react';
import { ActiveLinksContext } from '../../../context/ActiveLinksContext';
import classes from './ProductsServices.module.css';
import ReadMore from './ReadMore';
Expand All @@ -28,14 +26,14 @@ function ProductsServices ({ data }) {
<div id="products-services" className={classes['products-services']}>
<div className={classes['products-services__title']}>
<div className={classes['products-services__title--block']}>
<p className={classes['products-services__title--text']}>Товари / послуги</p>
<h3 className={classes['products-services__title--text']}>Товари / послуги</h3>
</div>
<div className={classes['products-services__title--divider']}></div>
</div>
<div className={classes['products-services__content']}>
{profile.products &&
<div className={classes['products-services__content--block']}>
<p className={classes['products-services__content--title']}>Товари</p>
<h4 className={classes['products-services__content--title']}>Товари</h4>
<div className={classes['products-services__content--description']}>
<ReadMore>
{profile.products}
Expand All @@ -44,7 +42,7 @@ function ProductsServices ({ data }) {
</div>}
{profile.services &&
<div className={classes['products-services__content--block']}>
<p className={classes['products-services__content--title']}>Послуги</p>
<h4 className={classes['products-services__content--title']}>Послуги</h4>
<div className={classes['products-services__content--description']}>
<ReadMore>
{profile.services}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ReadMore = ({ children }) => {

const ellipsisSymbol = ellipsis ? (
<span className={classes['read-more-symbol']} onClick={toggleReadMore}>
{ELLIPSIS_PARAMETERS.symbol}
{ELLIPSIS_PARAMETERS.symbol}
</span>
) : null;

Expand All @@ -35,7 +35,9 @@ const ReadMore = ({ children }) => {
: false
}
>
{text}
<p className={classes['read-more__text']}>
{text}
</p>
</Paragraph>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
cursor: pointer;
}

.read-more__text,
.read-more {
font-family: var(--font-main);
color: var(--main-grey-90, #25292C);
font-feature-settings: 'calt' off;
font-family: var(--font-main);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Startup ({ data }) {
<div className={classes['startup']}>
<div className={classes['startup__title']}>
<div className={classes['startup__title--block']}>
<p className={classes['startup__title--text']}>Стартап</p>
<h2 className={classes['startup__title--text']}>Стартап</h2>
</div>
<div className={classes['startup__title--divider']}></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function ProfileDetailNavBar({ data }) {
}, [navigate, hash.pathname]);

return (
<div>
<div className={classes['navbar-menu__main']}>
<div className={classes['navbar-menu']}>
{Object.entries(companyType()).map(
([link, label]) =>
Expand Down
Loading
Loading