finished affiliation descriptions

This commit is contained in:
Youwen Wu 2024-02-10 22:54:11 -08:00
parent 62bfb94cd4
commit 947771ce1e
9 changed files with 123 additions and 41 deletions

View file

@ -0,0 +1,53 @@
import { affiliations } from '@/app/db/data'
import { notFound } from 'next/navigation'
import { Zilla_Slab } from 'next/font/google'
import { Fragment } from 'react'
const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] })
export default function Page({
params,
}: Readonly<{ params: { shortName: string } }>) {
const { shortName } = params
const { name, short, image, description } = affiliations[shortName]
if (!name) {
notFound()
}
const Description = () => {
return (
<>
{description.split('[linebreak]').map((d, i) => (
<>
<div key={i} className='text-lg sm:text-md font-serif'>
{d}
</div>
<br className='m-1' />
</>
))}
</>
)
}
return (
<div>
<div className='grid grid-cols-1 max-w-3xl mx-auto'>
<div className='mx-auto mb-4 w-[90vw] md:w-auto md:h-[40vw] lg:h-[20vw]'>
<img
alt='profile picture'
className='rounded-sm mx-auto object-cover w-full h-full'
src={image}
/>
</div>
<span className={`${zillaSlab.className} font-bold text-4xl text-left`}>
{name}
</span>
<div className='text-slate-600 text-2xl mt-4'>{short}</div>
</div>
<div className='max-w-3xl mx-auto grid grid-cols-1'>
<hr className='mx-auto w-full h-1 border-0 bg-slate-200 my-2 rounded-md' />
<Description />
</div>
</div>
)
}

View file

@ -117,8 +117,8 @@ export default function Page({
return ( return (
<div> <div>
<div className='grid grid-cols-1 md:grid-cols-2 items-center max-w-3xl mx-auto'> <div className='grid grid-cols-1 md:grid-cols-2 items-center max-w-3xl'>
<div className='aspect-square w-[60vw] md:w-[30vw] lg:w-[20vw] 2xl:w-[15vw] overflow-hidden mx-auto mb-4'> <div className='aspect-square w-[60vw] md:w-[30vw] lg:w-[20vw] 2xl:w-[15vw] overflow-hidden mb-4'>
<img <img
alt='profile picture' alt='profile picture'
className='rounded-full mx-auto object-cover w-full h-full border-slate-800 border-4' className='rounded-full mx-auto object-cover w-full h-full border-slate-800 border-4'

View file

@ -305,6 +305,7 @@ export interface Affiliations {
name: string name: string
short: string short: string
image: string image: string
description: string
} }
} }
@ -314,36 +315,90 @@ export const affiliations: Affiliations = {
short: '1280 Mech', short: '1280 Mech',
image: image:
'https://raw.githubusercontent.com/Team-1280/identity/main/assets/img/figurehead/figurehead-primary.png', 'https://raw.githubusercontent.com/Team-1280/identity/main/assets/img/figurehead/figurehead-primary.png',
description: `The mechanical subteam is the backbone of Team 1280, focusing on the physical design, construction, and mechanical integrity of their robots. This subteam is where concepts and designs become tangible, transforming ideas into the moving parts and structural components that give the robots their form and function. The Mechanical subteam's work encompasses a broad range of activities, from drafting initial sketches and CAD modeling to machining parts and assembling complex mechanical systems.
[linebreak]
Members of the Mechanical subteam are adept in applying principles of mechanical engineering to solve practical problems, ensuring that the robot is not only capable of performing the tasks required by the competition but is also robust, efficient, and adaptable to the dynamic environment of a FIRST Robotics match. They work closely with materials, tools, and manufacturing processes, gaining hands-on experience in fabrication techniques such as welding, 3D printing, and CNC machining.
[linebreak]
Collaboration is key within the Mechanical subteam, as its members must coordinate closely with the EECS subteam to integrate mechanical and electrical components seamlessly. This interdisciplinary approach ensures that the robot's design is holistic, with each system working harmoniously to achieve optimal performance.
[linebreak]
The Mechanical subteam fosters a culture of creativity, innovation, and excellence, encouraging its members to push the boundaries of what is possible. Through their participation in the FIRST Robotics Competition, students develop not only technical skills in mechanical design and engineering but also soft skills such as teamwork, problem-solving, and project management. With access to advanced tools and guided by mentors from various engineering fields, the Mechanical subteam of Team 1280 is a place where future mechanical engineers are nurtured, ready to make their mark in the world of robotics and beyond.`,
}, },
'1280-eecs': { '1280-eecs': {
name: "Team 1280, the Ragin' C Biscuits, Electrical Engineering and Computer Science Subteam", name: "Team 1280, the Ragin' C Biscuits, Electrical Engineering and Computer Science Subteam",
short: '1280 EECS', short: '1280 EECS',
image: image:
'https://raw.githubusercontent.com/Team-1280/identity/main/assets/img/eecs/eecs.png', 'https://raw.githubusercontent.com/Team-1280/identity/main/assets/img/eecs/eecs.png',
description: `The Team 1280 EECS (Electrical Engineering and Computer Science) subteam is an autonomous organization within Team 1280, specializing in the design, programming, and electrical systems that bring their robots to life. As the nerve center of Team 1280, the EECS subteam combines the disciplines of electrical engineering and computer science to develop sophisticated control systems, autonomous functionalities, and robust electrical infrastructures that enable their robots to perform complex tasks and maneuvers in the competitive arena.
[linebreak]
Team 1280 EECS is composed of highly skilled and passionate students who are keen on applying theoretical knowledge to practical challenges. They are responsible for everything from circuit design and sensor integration to software development and debugging, ensuring that the robot can effectively communicate, navigate, and interact with its environment.
[linebreak]
Team 1280 EECS benefits from mentorship by experienced professionals and alumni, access to state-of-the-art tools and technologies, and a culture that encourages creativity, experimentation, and continuous improvement. As a result, the EECS subteam plays a crucial role in driving Team 1280's success in competitions and inspiring the next generation of engineers and computer scientists.`,
}, },
'1280-programming': { '1280-programming': {
name: "Team 1280, the Ragin' C Biscuits, Programming Subteam (now defunct)", name: "Team 1280, the Ragin' C Biscuits, Programming Subteam (now defunct)",
short: '1280 Programming', short: '1280 Programming',
image: image:
'https://raw.githubusercontent.com/Team-1280/identity/main/assets/img/eecs/eecs.png', 'https://raw.githubusercontent.com/Team-1280/identity/main/assets/img/eecs/eecs.png',
description: 'placeholder',
}, },
'usc-viterbi': { 'usc-viterbi': {
name: 'University of Southern California, Viterbi School of Engineering', name: 'University of Southern California, Viterbi School of Engineering',
short: 'USC Viterbi', short: 'USC Viterbi',
image: image:
'https://pbs.twimg.com/profile_images/1006996145212551169/HaqpwHNY_400x400.jpg', 'https://pbs.twimg.com/profile_images/1006996145212551169/HaqpwHNY_400x400.jpg',
description: `The University of Southern California (USC) Viterbi School of
Engineering is a cornerstone of innovation and excellence in the
engineering field. Established in 1905, it has grown into a leading
institution recognized globally for its pioneering research,
distinguished faculty, and diverse, talented student body.
[linebreak]
Named after Andrew J. Viterbi, co-founder of Qualcomm Inc. and
inventor of the Viterbi Algorithm, the school underscores its
commitment to advancing technology for societal benefits. USC Viterbi
offers a wide range of undergraduate, graduate, and doctoral programs
covering various engineering disciplines, including aerospace,
biomedical, chemical, civil, computer science, electrical, and
environmental engineering, among others. It is renowned for its
cutting-edge research in areas such as artificial intelligence,
cybersecurity, energy sustainability, and health systems.
[linebreak]
Located in Los Angeles, California, USC Viterbi benefits from its
proximity to leading tech companies, providing ample opportunities for
internships, collaborations, and employment for its graduates. With
its strong emphasis on innovation, entrepreneurship, and global
impact, USC Viterbi continues to shape the future of engineering,
making significant contributions to both the academic community and
the wider world.`,
}, },
'1280-business': { '1280-business': {
name: "Team 1280, the Ragin' C Biscuits, Business Subteam", name: "Team 1280, the Ragin' C Biscuits, Business Subteam",
short: '1280 Business', short: '1280 Business',
image: image:
'https://raw.githubusercontent.com/Team-1280/identity/main/assets/img/figurehead/figurehead-primary.png', 'https://raw.githubusercontent.com/Team-1280/identity/main/assets/img/figurehead/figurehead-primary.png',
description: `The Business subteam of Team 1280 plays a crucial role in ensuring the team's operational success and sustainability. Unlike the engineering-focused subteams, the Business subteam focuses on the financial, organizational, and community aspects of the team's operations. They are responsible for fundraising, sponsorship outreach, budget management, and public relations, ensuring that the team has the necessary resources and support to thrive in their endeavors.
[linebreak]
Members of the Business subteam develop and execute strategies to engage with corporate sponsors, local businesses, and individual donors, crafting compelling sponsorship proposals and maintaining ongoing relationships with stakeholders. They also manage the team's finances, meticulously planning and tracking expenditures to ensure that resources are allocated efficiently and effectively.
[linebreak]
In addition to financial management, the Business subteam plays a key role in promoting Team 1280's achievements and activities. They handle all aspects of communication, from social media management and website content to press releases and community outreach events. Their efforts not only raise the team's profile but also foster a positive image of STEM education and robotics within the broader community.
[linebreak]
Through their work, the Business subteam members gain valuable experience in business administration, marketing, and communication, skills that are highly transferable and beneficial in any career path. They learn the importance of leadership, teamwork, and strategic planning, all while contributing to the success of Team 1280 in a meaningful way.
[linebreak]
By bridging the gap between engineering innovation and business acumen, the Business subteam ensures that Team 1280 is not only competitive in robotics challenges but also sustainable and impactful in its mission to inspire and educate future generations in STEM fields.`,
}, },
'raid-zero': { 'raid-zero': {
name: 'Team 4253 - Raid Zero', name: 'Team 4253 - Raid Zero',
short: 'Raid 0', short: 'Raid 0',
image: image:
'https://scontent-sjc3-1.xx.fbcdn.net/v/t39.30808-6/299113446_475020107964742_4855015622304877578_n.png?_nc_cat=101&ccb=1-7&_nc_sid=efb6e6&_nc_ohc=f-tZdWsVEzQAX_9HeIZ&_nc_ht=scontent-sjc3-1.xx&oh=00_AfDRrS-nRH8uMBH9tpG7g8RNEO1AEtNso5EQMgJ5NaneaQ&oe=65CD858E', 'https://scontent-sjc3-1.xx.fbcdn.net/v/t39.30808-6/299113446_475020107964742_4855015622304877578_n.png?_nc_cat=101&ccb=1-7&_nc_sid=efb6e6&_nc_ohc=f-tZdWsVEzQAX_9HeIZ&_nc_ht=scontent-sjc3-1.xx&oh=00_AfDRrS-nRH8uMBH9tpG7g8RNEO1AEtNso5EQMgJ5NaneaQ&oe=65CD858E',
description: `Team 4253, Raid Zero, hailing from Taipei American School in Taipei, Taipei Special Municipality, Chinese Taipei, has been a formidable presence in the world of robotics since its rookie year in 2012. As a participant in the international FIRST Robotics Competition, Raid Zero exemplifies innovation, teamwork, and the pursuit of excellence in science, technology, engineering, and mathematics (STEM).
[linebreak]
Since its inception, Raid Zero has dedicated itself to designing, building, and programming competitive robots that can perform complex tasks and compete at high levels. The team's journey through the FIRST Robotics Competition has been marked by continuous learning, adaptation, and growth, reflecting their commitment to not only compete but also to embody the ideals of gracious professionalism and cooperation.
[linebreak]
Beyond the technical skills gained through robotics design and competition, Team 4253 is deeply committed to spreading the excitement and appreciation for STEM within their local community and beyond. Through outreach programs, workshops, and participation in events, Raid Zero aims to inspire younger students and peers, encouraging them to explore their interests in technology and engineering.
[linebreak]
Operating within the vibrant educational environment of Taipei American School, Team 4253 benefits from a supportive network of mentors, educators, and alumni who provide guidance and support. This nurturing ecosystem fosters creativity, critical thinking, and problem-solving skills among team members, preparing them for future challenges and opportunities in STEM fields.
[linebreak]
Raid Zero's influence extends beyond the technical achievements in robotics competitions. The team's efforts to promote STEM education, engage with the community, and develop sustainable practices demonstrate a holistic approach to their mission. As Team 4253 continues to evolve and impact the world of robotics and STEM education, Raid Zero remains a beacon of innovation and inspiration for students and enthusiasts around the globe.`,
}, },
} }

View file

@ -151,7 +151,7 @@ export default function Page({
download={`${params.slug}-rev-${latest}.pdf`} download={`${params.slug}-rev-${latest}.pdf`}
target='_blank' target='_blank'
> >
<button className='bg-blue-600 text-slate-100 hover:bg-blue-400 font-semibold rounded py-2 px-4 my-2'> <button className='button-default'>
Download{' '} Download{' '}
{(() => { {(() => {
switch (file) { switch (file) {

View file

@ -25,3 +25,7 @@ a:hover {
padding: 35px; padding: 35px;
border-radius: 15px; border-radius: 15px;
} }
.button-default {
@apply bg-blue-600 text-slate-100 hover:bg-blue-400 font-semibold rounded py-2 px-4 my-2;
}

View file

@ -30,7 +30,9 @@ export default function RootLayout({
<body className={inter.className}> <body className={inter.className}>
<div className={styles.header}> <div className={styles.header}>
<div className='max-w-[1200px] flex flex-nowrap mx-auto justify-between items-center'> <div className='max-w-[1200px] flex flex-nowrap mx-auto justify-between items-center'>
<Link href='/affiliation/1280-eecs'>
<img className='h-[100px] mt-4' src='/eecs-wordmark.png' /> <img className='h-[100px] mt-4' src='/eecs-wordmark.png' />
</Link>
<p className={`max-w-[600px] hidden md:inline`}> <p className={`max-w-[600px] hidden md:inline`}>
We gratefully acknowledge support from our volunteer peer We gratefully acknowledge support from our volunteer peer
reviewers, member institutions, and all{' '} reviewers, member institutions, and all{' '}

View file

@ -1,6 +1,4 @@
'use client' 'use client'
import styles from './searchBar.module.css'
export default function SearchBar() { export default function SearchBar() {
return ( return (
<div className='width-[40vw]'> <div className='width-[40vw]'>
@ -10,7 +8,10 @@ export default function SearchBar() {
name='q' name='q'
placeholder='Search...' placeholder='Search...'
/> />
<button type='submit' className='p-2.5 mx-4 border-2 rounded-xl bg-'> <button
type='submit'
className='p-2.5 mx-4 border-2 rounded-xl hover:bg-blue-300'
>
Search Search
</button> </button>
</div> </div>

View file

@ -1,33 +0,0 @@
.searchBox,
.searchButton {
display: inline;
}
.search {
position: absolute;
top: 175px;
right: 0;
width: 40vw;
}
.searchBox {
height: 45px;
border: 3px solid #0c5198;
border-radius: 10px;
padding: 22px;
/* color: inherit; */
}
.searchButton {
background-color: #0c5198;
color: white;
border: 3px solid white;
padding: 10px;
border-radius: 10px;
margin-left: 10px;
}
.searchButton:hover {
background-color: white;
color: #0c5198;
}