Skip to content

Commit 80f613a

Browse files
huzhengenourai
authored andcommitted
fix: modify the UI style of the component
1 parent b62a431 commit 80f613a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/app/home/Main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function HomeMain({data}) {
6363
<button className="max-md:w-full max-md:font-normal h-14 text-lg btn btn-outline btn-primary hover:bg-gray hover:text-white md:mr-3 px-9">🎉 Join Community</button>
6464
</a>
6565
<Link href="/learn/courses">
66-
<button className="max-md:relative max-md:mt-3 max-md:w-full max-md:font-normal h-14 text-lg relative btn btn-primary text-white pl-9 max-md:pl-0 pr-2 max-md:pr-0 hover:!opacity-90">
66+
<button className="max-md:relative max-md:mt-3 max-md:w-full max-md:font-normal h-14 text-lg relative btn btn-primary text-white pl-9 max-md:px-0 pr-2 hover:!opacity-90">
6767
Get Started
6868
<span className="max-md:absolute max-md:top-3 max-md:right-3 p-2 bg-white rounded ml-14">
6969
<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg">

src/app/learn/[type]/[id]/Author.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ export function Author({ data }) {
2525
<div className="flex items-center" suppressHydrationWarning>
2626
<Avatar size={56} user={data?.team_user} />
2727
<div className="ml-4 flex-1">
28-
<h4 className="text-sm font-bold md:text-lg max-md:text-lg">
28+
<h4 className="font-bold text-lg">
2929
<a href={`/u/${data?.team_user?.user_handle}`}>{data?.team_user?.user_nick_name}</a>
3030
</h4>
31-
<p className="text-xs text-gray-500 md:text-sm max-md:text-sm">
31+
<p className="text-gray-500 text-sm">
3232
Posted on <span className="text-gray-50">{formatTime(Number(data?.base?.cs_created_at) * 1000, 'MMM D, YYYY HH:mm')}</span> · Latest update on{' '}
3333
<span className="text-gray-50">{formatTime(data?.base?.cs_updated_at * 1000, 'MMM D, YYYY')}</span>
3434
</p>

src/entry/components/Header/nav.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ export function Navs({data}) {
7474
onClick={() => setOpenMenu(!openMenu)}
7575
href={i.link}
7676
>
77-
<li className="flex justify-between items-center font-bold h-14 text-base">
77+
<li className="flex justify-between items-center font-bold h-14">
7878
{i.name}
7979
<ChevronRightIcon className="h-4 w-4 opacity-60" />
8080
</li>
8181
</Link> : (
8282
<div key={`header-menu-${k}`} className="collapse">
8383
<input type="radio" name={`my-accordion-${k}`} checked="checked" readOnly />
84-
<div className="collapse-title collapse-title-sm min-h-0 h-14 text-base font-bold flex justify-between items-center">
84+
<div className="collapse-title collapse-title-sm min-h-0 h-14 font-bold flex justify-between items-center">
8585
{i.name}
8686
<ChevronDownIcon className="h-4 w-4 opacity-60" />
8787
</div>

src/entry/layouts/default/Footer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ export function Footer() {
168168
key={`footer-menus-${k}`}
169169
className="max-md:mb-4 max-md:border-t max-md:border-[rgba(255,255,255,0.06)] max-md:pt-6 md:ml-[64px]"
170170
>
171-
<h4 className="mb-0 text-sm font-semibold max-md:mb-2 md:mb-12 md:text-lg max-md:text-base">{i.name}</h4>
171+
<h4 className="mb-0 font-semibold max-md:mb-2 md:mb-12 md:text-lg">{i.name}</h4>
172172
<ul>
173173
{i.items.map(subItem => (
174174
<li
175-
className="text-xs leading-7 transition-all duration-300 hover:text-green hover:underline md:text-sm max-md:leading-7 max-md:text-sm md:leading-10"
175+
className="leading-7 transition-all duration-300 hover:text-green hover:underline text-sm md:leading-10"
176176
key={`footer-menus-sub-${subItem.name}`}
177177
>
178178
{/* href={subItem.link} */}

0 commit comments

Comments
 (0)