Created by Furkan Γnsalan
This repository contains a website template for Google Developer Groups (GDG) on campus. It provides a customizable framework for showcasing your GDG events, team members, and social media profiles.
This project is built using:
- Next.js (created with create-next-app)
- TypeScript
- shadcn/ui
Modify the files in the src/data/
folder to customize your website content:
src/
βββ data/
βββ events.ts
βββ socials.ts
βββ team.ts
βββ video.ts
Contains an array of events with the following type definition:
export interface Event {
bannerImage: StaticImageData;
images: StaticImageData[];
title: string;
slug: string;
description: string;
text: string;
date: string;
location: string;
}
Exports some constants named socials
, campus
and joinLink
for the information of your club.
socials
constant exports your social media links like the following:
socials.instagram.url
socials.linkedin.url
socials.github.url
socials.discord.url
-
campus
exports a string with the name of your campus to use on footer and in-between pages. -
joinLink
exports a string which contains a link for your member application form etc.
Contains an array of team members with the TeamMember
type definition:
export type Variant = 'green' | 'blue' | 'red' | 'yellow';
export interface TeamMember {
avatar?: StaticImageData;
name: string;
surname: string;
title: string;
variant: Variant;
linkedinUrl?: string;
instagramUsername?: string;
}
Contains an array of youtube videos with the Video
type definition:
export interface Video {
url: string;
title: string;
}
Organize your images in the src/images/
folder:
src/
βββ images/
βββ events/
β βββ event-1/
β β βββ 1.jpeg
β β βββ 2.jpeg
β β βββ ...
β βββ event-2/
β β βββ 1.jpeg
β β βββ 2.jpeg
β β βββ ...
β βββ ...
βββ team/
βββ member-1.jpeg
βββ member-2.jpeg
βββ ...
- The
events
folder contains individual event folders with event images. - The
team
folder contains images of your core team members.
Note: Currently, you need to manually import each image in events.ts
and team.ts
. This process will be improved in a future version to be more dynamic.
After forking this repository and customizing it to fit your needs, you can host the website on Vercel for easy deployment and management.
We welcome contributions to improve this Google Developer Groups on Campus Website Template! Whether you're fixing bugs, adding new features, or improving documentation, your help is appreciated. Here's how you can contribute:
- Fork the repository on GitHub
- Clone your fork locally:
git clone https://github.com/gdg-on-campus-halic/gdg-campus-halic-web.git
- Create a new branch for your feature or bug fix:
or
git checkout -b feature/your-feature-name
git checkout -b fix/your-bug-fix
- Make your changes in your feature branch
- Test your changes thoroughly
- Add and commit your changes:
git add . git commit -m "Your descriptive commit message"
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- Consider starting the commit message with an applicable prefix:
feat:
for new featuresfix:
for bug fixesdocs:
for documentation changesstyle:
for changes that do not affect the meaning of the coderefactor:
for code changes that neither fix a bug nor add a featureperf:
for code changes that improve performancetest:
for adding missing tests or correcting existing tests
- Push your changes to your fork on GitHub:
git push origin feature/your-feature-name
- Create a pull request from your fork to the main repository
- In the pull request description, clearly describe the changes and their purpose
- Link any relevant issues in the pull request description
- The project maintainers will review your pull request
- They may suggest changes or improvements
- Make any requested changes by adding new commits to your branch
- Once approved, your pull request will be merged into the main branch
- Please ensure your code follows the existing style and includes appropriate documentation
- For major changes, please open an issue first to discuss the proposed changes
- Update the README.md with details of changes to the interface, if applicable
- Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent
Thank you for interest in the Google Developer Groups on Campus Website Template!