Giter VIP home page Giter VIP logo

website's Introduction

EuroPython Website ๐ŸŒ๐Ÿ

Introduction ๐Ÿ‘‹

Welcome to the repository for the EuroPython website! We use Astro in combination with pnpm to manage dependencies.

Setup ๐Ÿ› ๏ธ

Local dev env

To get started, clone the repository and run pnpm install to fetch all the dependencies. Then, use pnpm run dev to start the development server.

The website will be available at http://localhost:4321.

Pre-commit Setup

To ensure code quality and consistency, we use pre-commit hooks. Follow these steps to set up pre-commit on your local environment:

  1. Install pre-commit. You can follow the instructions from pre-commit.com.
  2. Run pre-commit install in the root of your local repository.
  3. Now, pre-commit will run automatically on git commit. You can also run it manually on all files using pre-commit run --all-files.

This will help maintain a consistent coding style and catch common issues before submission.

Docker

If you want to run this in docker, run:

$ docker compose build
$ docker compose up

The website will be available at http://localhost:4321.

Content Structure ๐Ÿ—‚๏ธ

The content of the site is store in this repository. We are using Astro's content collections to manage the content. The collections are configure inside src/content/config.ts.

Pages

Pages are stored in the src/content/pages directory. Each page is a mdx file with frontmatter.

Deadlines

Meanwhile, our important deadlines โฐ are located inside the src/content/deadlines directory.

Using Astro Image Component ๐Ÿ–ผ๏ธ

When adding images to the website, please make sure to use astro Image component and to specify the width of the image. This will make sure we are optimizing the images and not serving large images to the users.

Here is an example:

import { Image } from "astro:assset";

import image from "./image.jpg";

<Image src={image} width={500} />;

website's People

Contributors

patrick91 avatar hypha avatar artcz avatar vaibhavs10 avatar ladybiss avatar gilgamezh avatar egeakman avatar kislovskiy avatar thepetk avatar aramboi avatar dependabot[bot] avatar github-actions[bot] avatar cheukting avatar laisbsc avatar fpierfed avatar rodrigogiraoserrao avatar cmaureir avatar clytaemnestra avatar ntoll avatar nvaytet avatar whykay avatar dhanshreea avatar cybit avatar pgryko avatar sebastiaanz avatar sangarshanan avatar carlijoy avatar changhiskhan avatar ambv avatar fkiraly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.