Skip to content

Commit 53fa926

Browse files
dimaMachinadotansimha
authored andcommitted
apply fixes
fix button
1 parent d4d2030 commit 53fa926

File tree

11 files changed

+84
-66
lines changed

11 files changed

+84
-66
lines changed

src/components/Conf/About/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const AboutSection = () => {
115115
</p>
116116
</div>
117117
</div>
118-
<h1 className="text-center text-4xl text-[#0E031C] font-bold mt-8 mb-8">
118+
<h1 className="text-center text-4xl text-[#0E031C] font-bold my-8">
119119
Why Attend?
120120
</h1>
121121
<div className="w-full md:w-1/2 mx-auto">
@@ -125,7 +125,7 @@ const AboutSection = () => {
125125
</p>
126126
<ul role="list" className="mt-8 space-y-4">
127127
{whyAttend.map((item, index) => (
128-
<li key={index} className="flex gap-2 ">
128+
<li key={index} className="flex gap-2">
129129
<CheckCircledIcon
130130
className="text-[#B48EF1]"
131131
height={30}

src/components/Conf/Button/index.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
import React from "react"
1+
import React, { ReactElement, ReactNode } from "react"
2+
import { clsx } from "clsx"
23

3-
interface Props {
4-
text: React.ReactNode
4+
interface ButtonProps {
5+
children: ReactNode
56
className?: string
67
href?: string
7-
target?: string
8-
onWhiteBg?: boolean
98
}
109

11-
const ButtonConf = ({ text, href, target, className, onWhiteBg }: Props) => {
10+
function ButtonConf({ href, className, children }: ButtonProps): ReactElement {
1211
return (
1312
<a
14-
className={
15-
`block cursor-pointer transition ease-in-out no-underline inline-flex text-center w-[fit-content] border-0 py-2 px-6 no-underline hover:no-underline focus:outline-none hover:drop-shadow-md hover:[transform:scale(1.05)] rounded text-sm sm:text-base font-medium whitespace-nowrap ${onWhiteBg ? "bg-[#B48EF1] text-white" : "bg-white text-black"
16-
} ${className ?? ""}`
17-
}
13+
className={clsx(
14+
"cursor-pointer transition ease-in-out no-underline inline-flex text-center w-[fit-content] border-0 py-2 px-6 no-underline hover:no-underline focus:outline-none hover:drop-shadow-md hover:[transform:scale(1.05)] rounded text-sm sm:text-base whitespace-nowrap",
15+
"bg-[--rhodamine] text-white",
16+
className
17+
)}
1818
href={href}
19-
target={target}
19+
{...(href?.startsWith("https://") && {
20+
target: "_blank",
21+
rel: "noreferrer",
22+
})}
2023
>
21-
{text}
24+
{children}
2225
</a>
2326
)
2427
}

src/components/Conf/Header/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const HeaderConf = () => {
3434
</a>
3535
))}
3636
<ButtonConf
37-
text="Buy a Ticket!"
3837
href="https://cvent.me/4zbxz9"
39-
target="_blank"
4038
className="ml-auto max-sm:hidden"
41-
/>
39+
>
40+
Buy a Ticket!
41+
</ButtonConf>
4242
</div>
4343
</header>
4444
)

src/components/Conf/Pricing/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,9 @@ const PricingConf = () => {
7878
))}
7979
</div>
8080
<div className="my-8 flex justify-center">
81-
<ButtonConf
82-
text="Buy a Ticket!"
83-
href="https://cvent.me/4zbxz9"
84-
target="_blank"
85-
/>
81+
<ButtonConf href="https://cvent.me/4zbxz9">
82+
Buy a Ticket!
83+
</ButtonConf>
8684
</div>
8785
<div className="w-full">
8886
<div className="mx-auto flex flex-col items-center text-center">

src/components/Conf/SF/index.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,13 @@ const images: Image[] = [
4141
const SFConf = () => {
4242
return (
4343
<div className="pb-10 pt-8">
44-
<h1 className="text-4xl text-white text-center mb-5 text-[#0E031C] font-bold pb-6">
44+
<h1 className="text-4xl text-white text-center mb-5 font-bold pb-6">
4545
About San Francisco Bay Area
4646
</h1>
47-
<div className="flex flex-wrap w-full justify-center">
48-
{images.map((image, i) => (
49-
<div key={i} className="w-full lg:w-1/5 mx-5 mb-5">
50-
<div className="max-w-sm">
51-
<AspectRatio
52-
title={image.name}
53-
src={image.src}
54-
href={image.link}
55-
/>
56-
</div>
47+
<div className="container flex max-xl:flex-wrap justify-center gap-10">
48+
{images.map(image => (
49+
<div key={image.name} className="max-w-sm w-full">
50+
<AspectRatio title={image.name} src={image.src} href={image.link} />
5751
</div>
5852
))}
5953
</div>

src/components/Conf/Speakers/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ const SpeakersConf = () => {
8989
<div className="my-8">
9090
<ButtonConf
9191
className="mx-auto"
92-
text="Submit to Speak"
9392
href="/conf/speak/"
94-
/>
93+
>
94+
Submit to Speak
95+
</ButtonConf>
9596
</div>
9697
</div>
9798
</div>

src/components/Conf/Venue/index.tsx

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ const VenueConf = () => {
4747
1333 Old Bayshore Hwy Burlingame, CA 94010
4848
</a>
4949
</p>
50+
<div className="text-white">
51+
<b>Dates with Availability</b>: September 18, 19, 20, 21, 2023
52+
<br />
53+
<b>Room Rates Start From</b>: $179.00
54+
<br />
55+
<b>Room Block Closes</b>: September 4, 2023
56+
<br />
57+
<i>
58+
(Please note, the rate is valid until the cut-off date or the
59+
room block is full)
60+
</i>
61+
</div>
5062
<h3 className="sm:text-2xl text-xl font-medium text-white mt-6 mb-4">
5163
Welcome to all
5264
</h3>
@@ -74,7 +86,16 @@ const VenueConf = () => {
7486
</a>{" "}
7587
policy.
7688
</p>
89+
<h3 className="sm:text-2xl text-xl font-medium text-white mt-6 mb-4">Alternate lodging options</h3>
90+
<a
91+
href="https://www.ihg.com/holidayinnexpress/hotels/us/en/burlingame/urlbh/hoteldetail"
92+
target="_blank"
93+
rel="noreferrer"
94+
>
95+
Holiday Inn Express San Francisco Airport South, and IHG Hotel
96+
</a>
7797
</div>
98+
7899
<div>
79100
<h3 className="sm:text-2xl text-xl font-medium text-white mt-6 mb-4">
80101
Hotel Information
@@ -140,15 +161,19 @@ const VenueConf = () => {
140161
icon: AroundIcon,
141162
content: (
142163
<div>
143-
<a href="https://flysfo.com">
164+
<a href="https://flysfo.com" target="_blank" rel="noreferrer">
144165
San Francisco International Airport (SFO)
145166
</a>
146167
<p>
147168
Drive time from venue: 7 mins.
148169
<br />
149170
Distance from venue: 3.1 miles.
150171
</p>
151-
<a href="https://www.google.com/maps/dir/San+Francisco+International+Airport+(SFO),+San+Francisco,+CA/Hyatt+Regency+San+Francisco+Airport,+1333+Old+Bayshore+Hwy,+Burlingame,+CA+94010/@37.6056719,-122.3979086,14z/am=t/data=!4m14!4m13!1m5!1m1!1s0x808f778c55555555:0xa4f25c571acded3f!2m2!1d-122.3789554!2d37.6213129!1m5!1m1!1s0x808f762dd36adc25:0x66d848e8e05f3445!2m2!1d-122.3651261!2d37.5938725!3e0?shorturl=1">
172+
<a
173+
href="https://www.google.com/maps/dir/San+Francisco+International+Airport+(SFO),+San+Francisco,+CA/Hyatt+Regency+San+Francisco+Airport,+1333+Old+Bayshore+Hwy,+Burlingame,+CA+94010/@37.6056719,-122.3979086,14z/am=t/data=!4m14!4m13!1m5!1m1!1s0x808f778c55555555:0xa4f25c571acded3f!2m2!1d-122.3789554!2d37.6213129!1m5!1m1!1s0x808f762dd36adc25:0x66d848e8e05f3445!2m2!1d-122.3651261!2d37.5938725!3e0?shorturl=1"
174+
target="_blank"
175+
rel="noreferrer"
176+
>
152177
Driving Directions from SFO to Venue
153178
</a>
154179
</div>
@@ -159,7 +184,13 @@ const VenueConf = () => {
159184
icon: ParkingIcon,
160185
content: (
161186
<div>
162-
<a>The Hyatt Regency SFO offers self-parking.</a>
187+
<a
188+
href="https://www.hyatt.com/en-US/hotel/california/hyatt-regency-san-francisco-airport/sfobu"
189+
target="_blank"
190+
rel="noreferrer"
191+
>
192+
The Hyatt Regency SFO offers self-parking.
193+
</a>
163194
<p className="font-bold">Self-Parking:</p>
164195
<p>
165196
0-1 hour: $12

src/pages/conf/faq.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -650,12 +650,9 @@ const faq: Array<{ id: string; title: string; contents: ReactNode }> = [
650650
<li>Application Deadline — Friday, July 21, 2023 11:59 PM PST</li>
651651
<li>Notifications — Week of August 7, 2023</li>
652652
</ul>
653-
<ButtonConf
654-
onWhiteBg
655-
text="Apply for a Scholarship"
656-
href="https://forms.gle/PwgWSTJ872Pce9XW6"
657-
target="_blank"
658-
/>
653+
<ButtonConf href="https://forms.gle/PwgWSTJ872Pce9XW6">
654+
Apply for a Scholarship
655+
</ButtonConf>
659656
</>
660657
),
661658
},

src/pages/conf/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export default () => {
3737
</div>
3838
</div>
3939
<div className="flex justify-center gap-4 flex-row">
40-
<ButtonConf text="Join as a Sponsor" href="/conf/sponsor/" />
41-
<ButtonConf text="Submit to Speak" href="/conf/speak/" />
40+
<ButtonConf href="/conf/sponsor/">Join as a Sponsor</ButtonConf>
41+
<ButtonConf href="/conf/speak/">Submit to Speak</ButtonConf>
4242
</div>
4343
</div>
4444
</div>

src/pages/conf/speak.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,9 @@ export default () => {
297297
</a>
298298
.
299299
</p>
300-
<ButtonConf
301-
onWhiteBg
302-
text="Submit a Proposal"
303-
href="https://sessionize.com/graphqlconf2023/"
304-
target="_blank"
305-
/>
300+
<ButtonConf href="https://sessionize.com/graphqlconf2023/">
301+
Submit a Proposal
302+
</ButtonConf>
306303
</section>
307304
<ul className="md:columns-2 max-lg:p-0 max-lg:m-0 list-none">
308305
{cfp.map(q => (

src/pages/conf/sponsor.tsx

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,25 @@ export default () => {
1313
<div className="container flex py-16 items-center justify-center flex-col">
1414
<div className="flex flex-col items-center w-full">
1515
<div className="sm:text-3xl text-2xl mb-8 text-white text-center leading-relaxed">
16-
<span className="block lg:inline">
17-
Sponsor GraphQLConf 2023
18-
</span>
16+
<span className="block lg:inline">Sponsor GraphQLConf 2023</span>
1917
</div>
2018
<div className="flex justify-center items-center gap-4 flex-col sm:flex-row">
21-
<ButtonConf
22-
text="Explore Sponsorship"
23-
target="_blank"
24-
href="https://events.linuxfoundation.org/wp-content/uploads/2023/03/sponsor_GraphQLConf_2023_032423.pdf"
25-
/>
26-
<ButtonConf
27-
text="Contact Us"
28-
target="_blank"
29-
href="mailto:graphqlconf@graphql.org?subject=Sponsorships"
30-
/>
19+
<ButtonConf href="https://events.linuxfoundation.org/wp-content/uploads/2023/03/sponsor_GraphQLConf_2023_032423.pdf">
20+
Explore Sponsorship
21+
</ButtonConf>
22+
<ButtonConf href="mailto:graphqlconf@graphql.org?subject=Sponsorships">
23+
Contact Us
24+
</ButtonConf>
3125
</div>
3226
</div>
3327
<div className="mx-auto max-w-prose mt-8">
3428
<div className="text-black h-full bg-gray-100 bg-opacity-75 p-8 rounded-lg overflow-hidden relative">
3529
<p>
3630
Contact us at{" "}
37-
<a className="font-medium" href="mailto:graphqlconf@graphql.org">
31+
<a
32+
className="font-medium"
33+
href="mailto:graphqlconf@graphql.org"
34+
>
3835
graphqlconf@graphql.org
3936
</a>{" "}
4037
to reserve your sponsorship, ask questions or talk about

0 commit comments

Comments
 (0)