Skip to content

Commit

Permalink
Merge pull request #11 from rarimo/feature/new-sections
Browse files Browse the repository at this point in the history
Added new sections
  • Loading branch information
lilbonekit authored Nov 13, 2024
2 parents 566284d + 1abd2d1 commit 8c5b0ab
Show file tree
Hide file tree
Showing 30 changed files with 526 additions and 351 deletions.
18 changes: 12 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>Rarimo – Privacy First (ZK) Social Protocol</title>
<title>Rarimo – Permissionless (ZK) Registries</title>
<noscript>
<style>
#noscript {
Expand All @@ -19,19 +19,25 @@
name="viewport"
content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"
/>
<meta property="og:title" content="Rarimo – Privacy First (ZK) Social Protocol" />
<meta property="twitter:title" content="Rarimo – Privacy First (ZK) Social Protocol" />
<meta
property="og:title"
content="Rarimo – Permissionless (ZK) Registries"
/>
<meta
property="twitter:title"
content="Rarimo – Permissionless (ZK) Registries"
/>
<meta
name="description"
content="Rarimo unlocks a new generation of social apps, where users go incognito without losing historical actions, networks, and identities."
content="Unlocking a new generation of social apps, where users stay private without losing historical actions, networks, and identities"
/>
<meta
property="og:description"
content="Rarimo unlocks a new generation of social apps, where users go incognito without losing historical actions, networks, and identities."
content="Unlocking a new generation of social apps, where users stay private without losing historical actions, networks, and identities"
/>
<meta
property="twitter:description"
content="Rarimo unlocks a new generation of social apps, where users go incognito without losing historical actions, networks, and identities."
content="Unlocking a new generation of social apps, where users stay private without losing historical actions, networks, and identities"
/>
<meta property="og:url" content="https://rarimo.com" />
<meta
Expand Down
25 changes: 25 additions & 0 deletions src/components/AppAccordion/AppAccordion.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import './AppAccordion.scss';

const AppAccordion = ({ title, content, isActive, onSelect, tabIndex }) => {
return (
<div className={`app-accordion ${isActive ? 'app-accordion--opened' : ''}`}>
<div
role="tab"
className="app-accordion__line"
tabIndex={tabIndex}
onClick={onSelect}
onKeyDown={event => {
if (event.code === 'Enter') onSelect();
}}
>
<h3 className="app-accordion__title">{title}</h3>
<svg width={20} height={20} className="app-accordion__icon">
<use href="/icons/sprite.svg#icon-arrow-down"></use>
</svg>
</div>
<div className="app-accordion__inner">{content}</div>
</div>
);
};

export default AppAccordion;
93 changes: 93 additions & 0 deletions src/components/AppAccordion/AppAccordion.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
.app-accordion {
width: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
margin-bottom: to-rem(16);

--accordion-title-color: var(--col-white-text-alpha);
--accordion-line-color: var(--col-white-bg-alpha);
--accordion-icon-rotate: 0deg;
--accordion-content-color: var(--col-white-alpha);
--accordion-title-font-size: var(--h5-size);
--accordion-content-font-size: #{to-rem(14)};
--after-width: 0%;

@include respond-above(medium) {
margin-bottom: to-rem(37);
--accordion-title-font-size: #{to-rem(24)};
--accordion-content-font-size: #{to-rem(20)};
}

.app-accordion__title {
color: var(--accordion-title-color);
font-size: var(--accordion-title-font-size);
}

.app-accordion__line {
margin-left: 0;
border-bottom: to-rem(1) solid var(--accordion-line-color);
padding-bottom: to-rem(16);
position: relative;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;

&::after {
content: '';
position: absolute;
bottom: -1px;
height: to-rem(1);
width: var(--after-width);
background-color: var(--accordion-line-color);
transition: all var(--medium-transition-duration)
var(--slide-transition-timing-function);
}
}

.app-accordion__icon {
color: var(--accordion-title-color);
rotate: var(--accordion-icon-rotate);
transition: all var(--medium-transition-duration)
var(--slide-transition-timing-function);
}

.app-accordion__inner {
max-width: to-rem(526);
overflow-y: hidden;
max-height: 0;
padding: 0;
opacity: 0;
font-size: var(--accordion-content-font-size);
transform: scaleY(0);
transform-origin: top;
transition: all 0.4s ease;

& p {
color: var(--accordion-content-color);
font-size: var(--accordion-content-font-size);
}
}

&--opened {
--accordion-title-color: var(--col-white-alpha);
--accordion-icon-rotate: 180deg;
--after-width: 50%;

.app-accordion__inner {
padding: to-rem(5) 0;
padding-top: to-rem(16);
padding-bottom: to-rem(16);
max-height: to-rem(300);
opacity: 1;
transform: scaleY(1);

@include respond-above(medium) {
max-height: to-rem(160);
padding-top: to-rem(24);
padding-bottom: 0;
}
}
}
}
1 change: 1 addition & 0 deletions src/components/AppAccordion/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './AppAccordion';
6 changes: 4 additions & 2 deletions src/components/AppButton/AppButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ const AppButton = ({
scheme = APP_BUTTON_SCHEMES.primary,
children,
onClick,
disabled = false,
...rest
}) => {
const { t } = useTranslation();

if (routePath) {
if (routePath && !disabled) {
return (
<Link
className={cn(['app-button', `app-button--${scheme}`, className])}
Expand All @@ -35,7 +36,7 @@ const AppButton = ({
);
}

if (href) {
if (href && !disabled) {
return (
<a
className={cn(['app-button', `app-button--${scheme}`, className])}
Expand All @@ -52,6 +53,7 @@ const AppButton = ({

return (
<button
disabled={disabled}
className={cn(['app-button', `app-button--${scheme}`, className])}
type="button"
onClick={onClick}
Expand Down
2 changes: 1 addition & 1 deletion src/components/AppFooter/AppFooter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const AppFooter = () => {

return (
<footer className="app-footer container">
<div className="app-footer__content" data-aos="fade">
<div className="app-footer__content" data-aos="fade-up">
<div className="app-footer__logo-wrapper">
<div>
<Link className="app-footer__logo" to={ROUTES_PATHS.home}>
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/components/ConfidentialIdentitySection/index.js

This file was deleted.

5 changes: 4 additions & 1 deletion src/components/HomeHeroSection/HomeHeroSection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

.home-hero-section__hero-wrapper {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}

.home-hero-section__title {
Expand All @@ -37,7 +40,7 @@
font-size: to-rem(16);

@include respond-above(medium) {
max-width: to-rem(720);
max-width: to-rem(770);
font-size: to-rem(20);
letter-spacing: 0.02em;
}
Expand Down
Loading

0 comments on commit 8c5b0ab

Please sign in to comment.