Skip to content

Commit

Permalink
style(layout): add margin for announctment (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaiJi authored Dec 21, 2024
1 parent 113d5ea commit 133c494
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/announcementSlider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function AnnouncementSlider() {
const defaultSliderClass =
"px-4 py-4 bg-white border border-gray-200 rounded-xl text-red-400 text-sm md:text-base";
return (
<div className="overflow-hidden mb-6 mx-1 lg:mx-0" ref={emblaRef}>
<div className="overflow-hidden mt-2 md:mt-0 mb-6 mx-1 lg:mx-0" ref={emblaRef}>
<div className="embla__container flex">
{!IS_CN_REGION && (
<div className={clsx(SliderStyle.embla__slide, defaultSliderClass)}>
Expand Down
10 changes: 5 additions & 5 deletions src/pages/city.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function City(props: { events: EventType[] }) {
>
<h2 className="text-lg font-bold text-gray-600 flex items-center group-hover:text-red-400 transition duration-300">
<FaLink className="inline-block h-3 w-3 mr-1" />
{city}
{city}
<span className="text-sm font-normal ml-1">
{groupByCityEvents[city].length}
</span>
Expand All @@ -76,15 +76,15 @@ export default function City(props: { events: EventType[] }) {
我们共在 {cities.length} 个城市收录到 {events.length}{" "}
个活动,其中,举办活动场数最多的城市是{" "}
<span className="font-bold">
{groupByCityEventsSortByTotalCount[0]}
{groupByCityEventsSortByTotalCount[0]}
</span>
!紧随其后的是
<span className="font-bold">
{groupByCityEventsSortByTotalCount[1]}
{groupByCityEventsSortByTotalCount[1]}
</span>
,而举办活动场数排名第三的城市是{" "}
<span className="font-bold">
{groupByCityEventsSortByTotalCount[2]} 🎉。
{groupByCityEventsSortByTotalCount[2]} 🎉。
</span>
</p>
</div>
Expand All @@ -93,7 +93,7 @@ export default function City(props: { events: EventType[] }) {
{groupByCityAndYearEvents.map((city) => (
<div id={city.location} key={city.location}>
<h2 className="text-2xl font-bold text-gray-600">
{city.location}
{city.location}
</h2>
<div className="grid grid-cols-1 gap-4 mt-4">
{city.eventsGroup.map((yearGroup) => (
Expand Down

0 comments on commit 133c494

Please sign in to comment.