Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8836ee0

Browse files
committed
add responsiveness and clean up code
1 parent2006f70 commit8836ee0

File tree

2 files changed

+45
-34
lines changed

2 files changed

+45
-34
lines changed

‎components/ResourcesAndContacts/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const ResourcesAndContacts = () => {
1313

1414
<divclassName="text-center my-10">
1515
<pclassName="text-[#3977F8] font-game text-xl">03</p>
16-
<h1className="font-bold text-5xl">RESOURCES&CONTACTS</h1>
16+
<h1className="font-bold text-6xl">RESOURCES&CONTACTS</h1>
1717
</div>
1818

1919
<divclassName="py-8 bg-no-repeat bg-center">

‎components/Sponsors/index.tsx‎

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,48 @@
1-
importReactfrom'react'
1+
importReactfrom"react";
22

33
constSponsors=()=>{
4-
return(
5-
<sectionclassName="flex flex-col min-h-screen py-8 px-24 relative">
6-
<div>
7-
<pclassName="text-[#3977F8] font-game text-xl">04</p>
8-
<h2className="font-bold text-7xl">SUPPORT CSESOC</h2>
9-
</div>
10-
<divclassName="flex-1 flex justify-center items-center">
11-
<divstyle={{backgroundImage:'radial-gradient(50% 50% at 50% 50%, rgba(235, 1, 255, 0.6) 0%, rgba(121, 73, 255, 0.6) 48.96%, rgba(57, 119, 248, 0.6) 100%)'}}className="overflow-hidden rounded-[4rem] h-[35rem] w-[90rem] grid grid-cols-10 grid-row-2">
12-
<divclassName="flex flex-col justify-center items-center col-span-4 row-start-1 row-end-3">
13-
<divclassName="max-w-[19.5rem] flex flex-col justify-center items-center">
14-
<h2className="text-5xl font-black">Our sponsors</h2>
15-
<pstyle={{fontSize:'1.65rem',lineHeight:'2.1rem'}}className="my-16">Check out our very cool sponsors.</p>
16-
<buttonstyle={{backgroundColor:'#FFFFFF',border:'1px solid #A7A6E5',color:'#3977F8'}}className="text-2xl rounded-xl w-[100%] h-16">View our sponsors</button>
17-
</div>
18-
</div>
19-
<divstyle={{backgroundColor:'rgba(0, 71, 255, 0.33)'}}className="flex justify-center items-center col-span-3 row-start-1 row-end-2"><imgsrc="assets/atlassian_logo.svg"alt="Atlassian logo"/></div>
20-
<divstyle={{backgroundColor:'rgba(82, 130, 255, 0.47)'}}className="flex justify-center items-center col-span-3 row-start-1 row-end-2"><imgsrc="assets/google_logo.svg"alt="Google logo"/></div>
21-
<divstyle={{backgroundColor:'rgba(48, 93, 255, 0.2)'}}className="flex justify-center items-center col-span-3 row-start-2 row-end-3"><imgsrc="assets/freelancer_logo.svg"alt="Freelancer logo"/></div>
22-
<divstyle={{backgroundColor:'rgba(122, 137, 236, 0.27)'}}className="flex justify-center items-center col-span-3 row-start-2 row-end-3"><imgsrc="assets/microsoft_logo.svg"alt="Microsoft logo"/></div>
23-
</div>
24-
</div>
25-
<divclassName="flex justify-between">
26-
<imgsrc="assets/csesoc_logo_white.svg"alt="CSESoc Logo"/>
27-
<divclassName="flex flex-col max-w-[14rem]">
28-
<pclassName="mb-6">B03 CSE Building K17, UNSW csesoc@csesoc.org.au</p>
29-
<p>© 2021 — CSESoc UNSW</p>
30-
</div>
4+
constfirstRowBoxesStyling="xl:p-16 p-10 flex justify-center items-center xl:col-span-3 sm:col-span-5 col-span-10 xl:row-start-1 xl:row-end-2 sm:row-start-3 sm:row-end-4 sm:h-auto h-36";
5+
constsecondRowBoxesStyling="xl:p-16 p-10 flex justify-center items-center xl:col-span-3 sm:col-span-5 col-span-10 xl:row-start-2 xl:row-end-3 sm:row-start-4 sm:row-end-5 sm:h-auto h-36";
6+
7+
return(
8+
<sectionclassName="flex flex-col min-h-screen py-8 xl:px-24 sm:px-10 px-8 relative mt-20">
9+
<divclassName="text-center">
10+
<pclassName="text-[#3977F8] font-game text-xl">04</p>
11+
<h2className="font-bold text-6xl">SUPPORT CSESOC</h2>
12+
</div>
13+
<divclassName="flex-1 flex justify-center items-center my-20">
14+
<divstyle={{backgroundImage:"radial-gradient(50% 50% at 50% 50%, rgba(235, 1, 255, 0.6) 0%, rgba(121, 73, 255, 0.6) 48.96%, rgba(57, 119, 248, 0.6) 100%)"}}className="overflow-hidden rounded-[4rem] w-[90rem] grid grid-cols-10 xl:grid-row-2 sm:grid-row-5">
15+
<divclassName="flex flex-col justify-center items-center xl:col-span-4 col-span-10 row-start-1 row-end-3 xl:my-0 my-12">
16+
<divclassName="max-w-[15rem]">
17+
<h2className="text-4xl font-black">Our sponsors</h2>
18+
<pclassName="xl:my-10 my-3 text-lg">Check out our very cool sponsors.</p>
19+
<buttonclassName="bg-white border text-[#3977F8] border-[#A7A6E5] text-lg rounded-xl w-[100%] xl:h-12 h-10">View our sponsors</button>
3120
</div>
32-
<imgsrc="assets/sponsors_backdrop.svg"alt="Sponsors backdrop"className="absolute bottom-0 left-0 w-screen -z-10"/>
33-
</section>
34-
)
35-
}
21+
</div>
22+
<divclassName={`${firstRowBoxesStyling} bg-[rgba(0, 71, 255, 0.33)]`}>
23+
<imgsrc="assets/atlassian_logo.svg"alt="Atlassian logo"/>
24+
</div>
25+
<divclassName={`${firstRowBoxesStyling} bg-[rgba(82, 130, 255, 0.47)]`}>
26+
<imgsrc="assets/google_logo.svg"alt="Google logo"/>
27+
</div>
28+
<divclassName={`${secondRowBoxesStyling} bg-[rgba(48, 93, 255, 0.2)]`}>
29+
<imgsrc="assets/freelancer_logo.svg"alt="Freelancer logo"/>
30+
</div>
31+
<divclassName={`${secondRowBoxesStyling} bg-[rgba(122, 137, 236, 0.27)]`}>
32+
<imgsrc="assets/microsoft_logo.svg"alt="Microsoft logo"/>
33+
</div>
34+
</div>
35+
</div>
36+
<divclassName="sm:flex justify-between">
37+
<imgsrc="assets/csesoc_logo_white.svg"alt="CSESoc Logo"/>
38+
<divclassName="flex flex-col max-w-[14rem] sm:mt-0 mt-10 font-light">
39+
<pclassName="mb-6">B03 CSE Building K17, UNSW csesoc@csesoc.org.au</p>
40+
<p>© 2021 — CSESoc UNSW</p>
41+
</div>
42+
</div>
43+
<imgsrc="assets/sponsors_backdrop.svg"alt="Sponsors backdrop"className="absolute bottom-0 left-0 w-screen -z-10"/>
44+
</section>
45+
);
46+
};
3647

37-
exportdefaultSponsors
48+
exportdefaultSponsors;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp