Skip to content

Commit

Permalink
Adjusting mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
angela139 committed Aug 27, 2024
1 parent 11cd04e commit 6e771a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/type-animation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const TypeAnimation: React.FC = () => {
}, []);

return (
<div className={styles.landing_title}>
<div className={styles.word_container}>
{currentWord === 'build' && <Typewriter text={currentWord} />}
{currentWord === 'break' && <span className={styles.break}>{currentWord}</span>}
{currentWord === 'innovate' && <span className={styles.innovate}>{currentWord}</span>}
Expand Down
2 changes: 1 addition & 1 deletion src/components/type-animation/style.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.landing_title {
.word_container {
background-color: var(--docs-dark-bg);
width: 60%;
padding: 0.5rem;
Expand Down
15 changes: 4 additions & 11 deletions src/sections/Hero/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/* Landing Card Icons */

.backdrop_left, .backdrop_right {
.backdrop_left {
object-fit: contain;
width: 100%;
height: 100%;
Expand Down Expand Up @@ -74,22 +74,15 @@
font-size: 10px;
}
.backdrop {
grid-template-columns: 1fr;
grid-template-rows: auto;
grid-template-columns: minmax(18em, 1fr);
grid-template-rows: minmax(0, 0.7fr);
max-width: 95%;
}

.backdrop_left {
justify-self: center;
}
.landing_title{
margin-bottom: 1rem;
}
.landing_text{
margin-top: 1rem;
margin-bottom: 1rem;
margin-right: 2rem;
margin-left: 2rem;
align-self: start;
}
}

Expand Down

0 comments on commit 6e771a5

Please sign in to comment.