Skip to content

Commit

Permalink
feat: new about design
Browse files Browse the repository at this point in the history
  • Loading branch information
moerabaya committed Mar 26, 2024
1 parent 61a7253 commit a6f5b34
Show file tree
Hide file tree
Showing 10 changed files with 217 additions and 79 deletions.
32 changes: 32 additions & 0 deletions assets/icons/grab-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/icons/x-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 10 additions & 12 deletions assets/styles/utilities/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ $screen-lg: 1280px;
$screen-xl: 1440px;

:root {
--base-font-size: 14px;
--base-small-caps-size: 15px;
--base-font-size: 13px;
--base-small-caps-size: 14px;
--background-color: #fafafa;
--background-color-rgb: 250, 250, 250;
--footer-background-color: #000000;
Expand All @@ -60,15 +60,14 @@ $screen-xl: 1440px;
--button-color-darken: hsl(227, 76%, 45%);
--button-text: #fff;
--letter-spacing: -0.03em;
--bs-font-sans-serif: "DM Sans", "Vazirmatn", system-ui, -apple-system,
--bs-font-sans-serif: "Montserrat", "Vazirmatn", system-ui, -apple-system,
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--bs-font-sans-serif-arabic: "Vazirmatn", system-ui, -apple-system, "Segoe UI",
Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--bs-font-serif: Georgia, serif;
--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
--bs-font-monospace: "Fira Mono", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;

--card-background: #ffffff;
--card-shadow-color: rgba(0, 0, 0, 0.1);
Expand All @@ -77,12 +76,12 @@ $screen-xl: 1440px;
--primary-color-context: #000000;

@media (min-width: $screen-lg) {
--base-font-size: 18px;
--base-small-caps-size: 18px;
--base-font-size: 15px;
--base-small-caps-size: 16px;
}
@media (min-width: $screen-md) {
--base-font-size: 17px;
--base-small-caps-size: 17px;
--base-font-size: 15px;
--base-small-caps-size: 16px;
}
}

Expand All @@ -104,12 +103,11 @@ html.dark {
--masthead-text: #fff;
--button-color: #f5e5ca;
--button-text: #fff;
--bs-font-sans-serif: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto,
--bs-font-sans-serif: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--bs-font-serif: Georgia, serif;
--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
--bs-font-monospace: "Fira Mono", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;

--card-background: var(--background-color);
--card-shadow-color: rgba(var(--text-color-rgb), 0.1);
Expand Down
2 changes: 1 addition & 1 deletion components/atoms/AnimatedText/AnimatedCharacters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ const AnimatedCharacters = ({
<motion.span
style={{
display: "inline-block",
top: "-0.1em",
position: "relative",
letterSpacing: 0,
}}
variants={item}
>
Expand Down
8 changes: 7 additions & 1 deletion components/atoms/AnimatedText/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import { AnimatedTextProps } from "motion";
import { useEffect, useState } from "react";
import AnimatedCharacters from "./AnimatedCharacters";

const AnimatedText = ({ text, type, finished, ...rest }: AnimatedTextProps) => {
const AnimatedText = ({
text,
type,
finished,
fontWeight,
...rest
}: AnimatedTextProps) => {
const [replay, setReplay] = useState(true);
const hideDuration = 0.85;
const showDuration = 0.85;
Expand Down
Loading

0 comments on commit a6f5b34

Please sign in to comment.