Skip to content

Commit

Permalink
Remove announcement strip and update event details
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnouv committed Aug 11, 2024
1 parent 7103cb0 commit 1b550b4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 44 deletions.
Binary file added app/assets/gsoc_demo_day_2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions app/components/conferences/eventPoster/components/EventStrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function EventStrip({

const options = {
year: 'numeric',
month: '2-digit',
month: 'short',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
Expand All @@ -50,11 +50,12 @@ function EventStrip({
const config = {
name: event?.attributes['name'],
description: event?.attributes['description'],
startDate: '2024-03-25',
startTime: '11:00',
endTime: '14:30',
startDate: new Date(event.attributes['starts-at']).toISOString().split('T')[0],
startTime: new Date(event.attributes['starts-at']).toISOString().split('T')[1].substring(0, 5),
endTime: new Date(event.attributes['ends-at']).toISOString().split('T')[1].substring(0, 5),
timeZone: "Etc/UTC",
organizer: 'Rocket.Chat|[email protected]',
location: 'https://meet.google.com/dbt-czaj-whr',
location: 'https://meet.google.com/xjf-yuvh-cci',
options: [
'Apple',
'Google',
Expand All @@ -64,7 +65,7 @@ function EventStrip({
'Outlook.com',
'Yahoo',
],
iCalFileName: 'rocket-chat-gsoc-alumni-summit-2024',
iCalFileName: 'rocket-chat-gsoc-demo-day-2024',
};

setConfig(config);
Expand Down
18 changes: 0 additions & 18 deletions app/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,6 @@ function Layout(props) {

return (
<>
<div className="announcement_strip">
<a
href={'/community/conferences/c/GSoC-Alumni-Summit-2024'}
style={{ textDecoration: 'none', color: 'white' }}
>
<h6>
📢 Join our GSoC'24 Alumni Summit at{' '}
{new Date('2024-03-25T11:00:00.000Z').toLocaleString('en-GB', {
day: '2-digit',
month: '2-digit',
year: 'numeric',
hour: '2-digit',
minute: '2-digit',
timeZoneName: 'short',
})}
</h6>
</a>
</div>
<VerifyUserRole menuprops={props} />
{props.children}
<Footer></Footer>
Expand Down
10 changes: 6 additions & 4 deletions open-event-server/seed/pic.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
def update_photo_url(speakers, usernames):
for speaker in speakers:
if speaker.get('id', 0) >= 5:
name = speaker.get('name', '').lower().replace(' ', '.')
if name in usernames:
username = name
speaker['photo_url'] = f"https://open.rocket.chat/{username}"
name = speaker.get('name', '').lower()
first_name = name.split()[0] # Get the first name
for username in usernames:
if first_name in username:
speaker['photo_url'] = f"https://open.rocket.chat/avatar/{username}"
break

# Update the photo_url values
update_photo_url(speakers, usernames)
Expand Down
32 changes: 16 additions & 16 deletions open-event-server/seed/speakers.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"name": "Ryan Zhou",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://www.linkedin.com/in/ryanbowz/",
"photo_url": "https://open.rocket.chat/avatar/ryan.zhou",
"country": null,
"long_biography": "I''m passionate about tech, self-engineering, game development, and digital arts.",
"website": null,
Expand Down Expand Up @@ -183,7 +183,7 @@
"name": "Aman Negi",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://media.licdn.com/dms/image/D4D03AQEMZYz4NVGT-Q/profile-displayphoto-shrink_800_800/0/1692632521553?e=1728518400&v=beta&t=y1YKrqo1-ChFPievxMC0_i37hIL9uhRZCOlpNj6HwTk",
"photo_url": "https://open.rocket.chat/avatar/aman.negi",
"country": null,
"long_biography": "I am a developer passionate about solving problems through innovative app development. I thrive on building robust, user-friendly applications using Flutter, React, and Node.js.",
"website": null,
Expand Down Expand Up @@ -218,7 +218,7 @@
"name": "Vipin",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://media.licdn.com/dms/image/C4D03AQHLioHbmGj0wA/profile-displayphoto-shrink_800_800/0/1668060088397?e=1728518400&v=beta&t=POA2RkfR_cyjRXtyQtuJbBFwU604CHUJxa6DxN-FDoE",
"photo_url": "https://open.rocket.chat/avatar/vipin.chaudhary",
"country": null,
"long_biography": "I am doing open source contributions for a long time, I have developed a deep understanding of development and built meaningful connections.",
"website": null,
Expand Down Expand Up @@ -253,7 +253,7 @@
"name": "Jeffrey Yu",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://avatars.githubusercontent.com/u/35394596?v=4",
"photo_url": "https://open.rocket.chat/avatar/jeffrey.yu",
"country": null,
"long_biography": "Hi there! I''m Jeffrey. I''m from Shenzhen, a beautiful coastal city in China. I studied computer science at UCLA. I''m working at Facebook Notification ML team in Meta. In my free time, I love snowboarding, ultimate frisbee, and playing board games.",
"website": null,
Expand Down Expand Up @@ -288,7 +288,7 @@
"name": "Yuriko",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://www.linkedin.com/in/yuriko-kikuchi/",
"photo_url": "https://open.rocket.chat/avatar/yuriko.kikuchi",
"country": null,
"long_biography": "I am deeply passionate about computer science, committed to using technology to solve people''s problems and generate happiness. Continuously working and learning to fulfill this mission.",
"website": null,
Expand Down Expand Up @@ -323,7 +323,7 @@
"name": "Sayan Banerjee",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://media.licdn.com/dms/image/D5603AQEjRAaQsB2eog/profile-displayphoto-shrink_400_400/0/1718429027290?e=1728518400&v=beta&t=rlixw5IIdIZy9GL5yq-xLIHCj986y1nihiFU5gSLbQI",
"photo_url": "https://open.rocket.chat/avatar/sayan.banerjee",
"country": null,
"long_biography": "Have been a pretty average student from childhood. Understood the importance of money when my father had a heart attack and money drained faster than water. Stepped up my academics, got in a decent college in India, learned development and forced myself to do the hard stuffs always.",
"website": null,
Expand Down Expand Up @@ -358,7 +358,7 @@
"name": "Umang Utkarsh",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://drive.google.com/file/d/19yisGNiHVQZy0izaP2gk4RRi0Gyuoju5/preview",
"photo_url": "https://open.rocket.chat/avatar/umang.utkarsh",
"country": null,
"long_biography": "Hey there! I\u2019m Umang Utkarsh, a recent graduate from the National Institute of Technology, Karnataka, India, with a B.Tech degree. My journey in the tech world has been quite an adventure, starting during my college days with a keen interest in machine learning projects.",
"website": null,
Expand Down Expand Up @@ -393,7 +393,7 @@
"name": "Maria Khelli",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://media.licdn.com/dms/image/D5603AQHREz-7BnoldQ/profile-displayphoto-shrink_800_800/0/1723050847054?e=1728518400&v=beta&t=VJqxqtXOChCal9_ubCTn42xKpCoJIVXsRmyGhqD_pLk",
"photo_url": "https://open.rocket.chat/avatar/maria.khelli",
"country": null,
"long_biography": "Hi~ I specialized in back-end engineering, but I can do some AI stuffs (machine learning/data science/prompt engineering) and a bit of front-end (i.e. I can do full-stack!). Besides these nerdy stuffs, I also like photography and sports (I like running). I also watch MotoGP & Badminton!",
"website": null,
Expand Down Expand Up @@ -428,7 +428,7 @@
"name": "Akshun",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://drive.google.com/file/d/17D_RAuLDMI0X_fgmZagTaDez8g5aA_jn/preview",
"photo_url": "https://open.rocket.chat/avatar/akshun.kuthiala",
"country": null,
"long_biography": "With a zeal to learn and create, I am an ardent Computer Science Engineering student and a full-stack developer. I have an ardour for exploring the innovative and ever-evolving realms of Artificial Intelligence.",
"website": null,
Expand Down Expand Up @@ -463,7 +463,7 @@
"name": "Zishan Ahmad",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://www.linkedin.com/in/zishanahmad72",
"photo_url": "https://open.rocket.chat/avatar/zishan.ahmad",
"country": null,
"long_biography": "As a final-year student at IIIT Kottayam, my path has been an exciting mix of web development, AI, and embedded systems. After completing my DSA and placements, I wanted a fresh challenge and found open source.",
"website": null,
Expand Down Expand Up @@ -498,7 +498,7 @@
"name": "Hunter",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://media.licdn.com/dms/image/D5603AQHtGYGTm2znGQ/profile-displayphoto-shrink_400_400/0/1715709260677?e=1728518400&v=beta&t=-QwVZtEpyiAcmVai-4LcJl9TtgkAkFpyU2knDZ6UECo",
"photo_url": "https://open.rocket.chat/avatar/hunter.xia",
"country": null,
"long_biography": "I am a CS student with a knack for engineering and innovation, specializing in developing AI and machine learning applications that make a difference.",
"website": null,
Expand Down Expand Up @@ -533,7 +533,7 @@
"name": "Abhi Patel",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://drive.google.com/file/d/1mMQ5Yg6qM66_r9IVWCt6dosChzjvaC-7/preview",
"photo_url": "https://open.rocket.chat/avatar/abhi.patel",
"country": null,
"long_biography": "I\u2019m Abhi Patel, and during Google Summer of Code, I had the opportunity to contribute to Rocket.Chat by implementing a multiple file sharing feature in one message. This experience was incredibly rewarding, as it not only allowed me to work on a project that enhances user interaction but also taught me valuable skills like time management, problem-solving, and effective communication.",
"website": null,
Expand Down Expand Up @@ -568,7 +568,7 @@
"name": "Hardik Bhatia",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://drive.google.com/file/d/1frsRx4MLsda43tm_7wCy4yqbHePPbR1S/preview",
"photo_url": "https://open.rocket.chat/avatar/hardik.bhatia",
"country": null,
"long_biography": "I''ve been writing code since I was 12, explored many different domains, thought about dropping out a bunch of times. Passionate about software, opensource, finance and business.",
"website": null,
Expand Down Expand Up @@ -603,7 +603,7 @@
"name": "Anjy",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://drive.google.com/file/d/1-b3YGvic2vKO8ih3DjYI0bvX-yZyTLql/preview",
"photo_url": "https://open.rocket.chat/avatar/anjaneya.gupta",
"country": null,
"long_biography": "My journey as a software engineer began with an insatiable fascination for technology and a burning desire to be at the forefront of innovation. Currently, I''m pursuing a B.Tech degree in Computer Science, a path that has allowed me to explore a diverse range of technical disciplines and hone my skills as a full-stack developer.",
"website": null,
Expand Down Expand Up @@ -638,7 +638,7 @@
"name": "Prisha",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://drive.google.com/file/d/1Itb6smZjB4vhnJSuqZlabvKrn_sSws86/preview",
"photo_url": "https://open.rocket.chat/avatar/prisha.gupta",
"country": null,
"long_biography": "I''m a Full Stack Developer and ML enthusiast, passionate about solving complex problems and diving into Web, DevOps, and Gen-AI technologies. With a solid background in React, MongoDB, Angular, Vue, NodeJS, Python, and more, I enjoy pushing the boundaries of what''s possible.",
"website": null,
Expand Down Expand Up @@ -673,7 +673,7 @@
"name": "Sandeep Pillai",
"email": "[email protected]",
"mobile": null,
"photo_url": "https://drive.google.com/file/d/15sV8L9PTE_Q0v22w2hVaRH-NvwDihdyG/preview",
"photo_url": "https://open.rocket.chat/avatar/sandeep.pillai",
"country": null,
"long_biography": "I am passionate about software development and enjoy contributing to open source projects. This inclination arises from the opportunity to collaborate with others and make meaningful contributions to the software community. I am motivated by the prospect of solving real-world problems and gaining a comprehensive understanding of how software works.",
"website": null,
Expand Down

0 comments on commit 1b550b4

Please sign in to comment.