Skip to content

Commit

Permalink
fix(uiux): 🐛 update spacing following readability issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vanntile committed Oct 14, 2021
1 parent 7c67103 commit bae9290
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion pages/blog/[slug].tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BlogLayout, defaultComponents, heavyComponents } from '@vcomponents'
import { getFileBySlug, getSlugs } from '@vlib/mdx'
import { GetStaticPaths, GetStaticProps, NextPage } from 'next'
// import dynamic from 'next/dynamic'
import { MDXRemote } from 'next-mdx-remote'
import { ParsedUrlQuery } from 'querystring'

Expand Down
14 changes: 9 additions & 5 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const IndexPage: NextPage<Props> & { theme: string } = ({ blogPosts }) => {
</section>
<section
id="section-tech"
className={`${styles.hSection} pt-12 text-gray-800 font-bold bg-brand-accent`}
className={`${styles.hSection} pt-12 pb-24 text-gray-800 font-bold bg-brand-accent`}
ref={techSectionRef}
>
<div className="flex flex-col items-center justify-center w-full -my-12">
Expand Down Expand Up @@ -153,7 +153,11 @@ const IndexPage: NextPage<Props> & { theme: string } = ({ blogPosts }) => {
/>
<TriangleDivider color="text-brand" />
</section>
<section id="section-experience" className={`${styles.hSection} bg-brand text-gray-200`} ref={ExperienceTabsRef}>
<section
id="section-experience"
className={`${styles.hSection} pb-24 bg-brand text-gray-200`}
ref={ExperienceTabsRef}
>
<div className="flex flex-col items-center justify-center w-full mt-12">
<svg
aria-hidden="true"
Expand All @@ -176,7 +180,7 @@ const IndexPage: NextPage<Props> & { theme: string } = ({ blogPosts }) => {
<ExperienceTabs />
<TriangleDivider color="text-gray-900" />
</section>
<section className={`${styles.hSection} pb-2 mb-16`}>
<section className={`${styles.hSection} my-16`}>
<h2 id="section-blog" className="text-current md:text-4xl">
./blog/coding/latest
</h2>
Expand All @@ -188,7 +192,7 @@ const IndexPage: NextPage<Props> & { theme: string } = ({ blogPosts }) => {
</Link>
</div>
</section>
<section className={`${styles.hSection} pb-2 mb-16`}>
<section className={`${styles.hSection} mb-24`}>
<h2 id="section-design" className="text-current md:text-4xl">
./blog/design/featured
</h2>
Expand All @@ -205,7 +209,7 @@ const IndexPage: NextPage<Props> & { theme: string } = ({ blogPosts }) => {
</div>
</Link>
</section>
<section className={`${styles.hSection} mb-16`}>
<section className={`${styles.hSection} mb-24`}>
<h2 id="section-contact" className="text-current md:text-4xl">
./public/contact
</h2>
Expand Down
2 changes: 1 addition & 1 deletion styles/home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}

.hSection {
@apply relative w-full px-4 pb-32 mx-auto overflow-hidden;
@apply relative w-full px-4 mx-auto overflow-hidden;
content-visibility: auto;
contain-intrinsic-size: 1px 1000px;
}
Expand Down

0 comments on commit bae9290

Please sign in to comment.