Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
fix hero center issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nahtnam committed Nov 9, 2019
1 parent 0404ca4 commit 033432b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions website/src/assets/css/index.css
Expand Up @@ -4,6 +4,11 @@

@tailwind utilities;

.center-hero {
width: 350px;
margin: auto;
}

.shadow-3xl {
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5)
}
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.jsx
Expand Up @@ -82,7 +82,7 @@ export default class Index extends React.Component {
<h1 className="text-xl font-bold uppercase pb-8 pt-2">light.js</h1>
<h2 className="text-xl font-semibold uppercase">a</h2>
<h2 className="text-4xl font-semibold uppercase">
<TextLoop springConfig={{ stiffness: 200, damping: 25 }}>
<TextLoop className="center-hero" springConfig={{ stiffness: 200, damping: 25 }}>
<div style={{ width: '350px' }}>serverless</div>
<div style={{ width: '350px' }}>lightweight</div>
<div style={{ width: '350px' }}>testable</div>
Expand Down

0 comments on commit 033432b

Please sign in to comment.