Skip to content

Commit

Permalink
refactor: move title & paraph style to css module file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuuriii committed Dec 3, 2023
1 parent 1457e7e commit 37de938
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
29 changes: 29 additions & 0 deletions app/components/allinOne/allinOne.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,32 @@
lg:w-full
min-[1488px]:w-[70rem];
}

.descriptionContainer {
@apply flex
flex-col
items-center;
}

.titleDescription {
@apply mb-[1rem]
text-[1.5rem]
xl:text-[2rem]
text-[#2F327D]
text-center
font-[700]
font-[poppins];
}

.titleSpan {
@apply text-[#F48C06];
}

.paragraphDescription {
@apply text-[#696984]
text-center
xl:w-[40rem]
font-[400]
font-[poppins]
lg:text-[1.2rem];
}
14 changes: 4 additions & 10 deletions app/components/allinOne/allinOne.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@ export default function AllinOne() {
<Padding>
<div className={styles.mainContainer}>
<div className={styles.childContainer}>
<div className='flex flex-col items-center'>
<h1
className='mb-[1rem] text-[1.5rem] xl:text-[2rem] text-[#2F327D] text-center font-[700]'
style={{ fontFamily: 'poppins, sans-serif' }}
>
<div className={styles.descriptionContainer}>
<h1 className={styles.titleDescription}>
All-In-One
<span className='text-[#F48C06]'> Cloud Software.</span>
<span className={styles.titleSpan}> Cloud Software.</span>
</h1>
<p
className='text-[#696984] text-center xl:w-[40rem] font-[400] lg:text-[1.2rem]'
style={{ fontFamily: 'poppins, sans-serif' }}
>
<p className={styles.paragraphDescription}>
Skilline is one powerful online software suite that combines all
the tools needed to run a successful school or office.
</p>
Expand Down

0 comments on commit 37de938

Please sign in to comment.