Skip to content

Commit b965d32

Browse files
committed
Fix styling
1 parent 7ea1c51 commit b965d32

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/components/HomepageFeatures/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function Feature({title, image, description, wip}: FeatureItem) {
111111
<img src={image} className="w-full h-full object-contain" role="img"/>
112112
</div>
113113
<div className="text-center">
114-
<p className="text-[30px] font-bold text-[#2196f3]">{title}</p>
114+
<p className="mb-0 text-[30px] font-bold text-[#2196f3]">{title}</p>
115115
<p className="font-medium">{description}</p>
116116
</div>
117117
</div>
@@ -120,7 +120,7 @@ function Feature({title, image, description, wip}: FeatureItem) {
120120

121121
export default function HomepageFeatures(): JSX.Element {
122122
return (
123-
<section className="px-8 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 max-w-[1300px] m-auto">
123+
<section className="px-8 pb-8 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 max-w-[1300px] m-auto bg-white">
124124
{FeatureList.map((props, idx) => (
125125
<Feature key={idx} {...props} />
126126
))}

src/pages/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ function HomepageHeader() {
77
const {siteConfig} = useDocusaurusContext();
88
return (
99
<header className="text-center py-8">
10-
<div className=" flex flex-col gap-2">
11-
<h1 className="text-white font-['Baloo_2'] text-[72px] font-black drop-shadow-md">
10+
<div className="flex flex-col">
11+
<h1 className="text-white font-['Baloo_2'] md:text-[72px] text-[60px] font-black drop-shadow-md">
1212
{siteConfig.title}
1313
</h1>
14-
<p className="text-white text-2xl">{siteConfig.tagline}</p>
14+
<p className="px-2 text-white text-xl md:text-2xl">{siteConfig.tagline}</p>
1515
<div className="mt-4">
1616
<Link
1717
className="button button--secondary button--lg"
@@ -33,7 +33,7 @@ export default function Home(): JSX.Element {
3333
description="Description will go into a meta tag in <head />">
3434
<div style={{background: "linear-gradient(0deg,#3586FF 0%,#68A4FF 100%) 0% 0% / 100% 100% repeat"}}>
3535
<HomepageHeader/>
36-
<main className="overflow-hidden flex flex-col pb-8">
36+
<main className="overflow-hidden flex flex-col">
3737
<div className="w-[3800px] h-24 self-center relative" style={{color: "var(--ifm-background-surface-color)"}}>
3838
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 2730 1021" height="1em" width="1em"
3939
className="absolute top-[-25px] block min-w-full w-auto object-cover h-[1546px]" role="img">

tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ module.exports = {
44
theme: {
55
extend: {},
66
},
7+
corePlugins: {
8+
preflight: false,
9+
},
710
plugins: [],
811
}
912

0 commit comments

Comments
 (0)