Skip to content

Commit

Permalink
Merge pull request #28 from RustLangES/fix-fonts
Browse files Browse the repository at this point in the history
Fix fonts
  • Loading branch information
SergioRibera authored Oct 31, 2024
2 parents dd8d01f + 8ecc2ee commit 06d2bb8
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 65 deletions.
Binary file added .github/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 5 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,7 @@
# Astro Starter Kit: Minimal
# Resume

```sh
npm create astro@latest -- --template minimal
```
<div align="center">
<img src=".github/images/screenshot.png">
</div>

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json)

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:

```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.

There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the `public/` directory.

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |

## 👀 Want to learn more?

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
Este proyecto es el sitio web de la comunidad RustLang en Español, construido con [Astro](https://astro.build). Con el objetivo de promover el aprendizaje y la difusión de Rust en hispanohablantes, compartiendo conocimientos y proyectos emocionantes.
Binary file modified bun.lockb
Binary file not shown.
Binary file added public/fonts/AlfaSlabOne-Regular.woff
Binary file not shown.
Binary file modified public/fonts/AlfaSlabOne-Regular.woff2
Binary file not shown.
Binary file added public/fonts/WorkSans-Medium.woff
Binary file not shown.
Binary file added public/fonts/WorkSans-Medium.woff2
Binary file not shown.
Binary file added public/fonts/WorkSans-Regular.woff
Binary file not shown.
Binary file added public/fonts/WorkSans-Regular.woff2
Binary file not shown.
Binary file added public/fonts/WorkSans-SemiBold.woff
Binary file not shown.
Binary file added public/fonts/WorkSans-SemiBold.woff2
Binary file not shown.
47 changes: 27 additions & 20 deletions src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,39 @@
}

@font-face {
font-family: "Alfa Slab One";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('fonts/AlfaSlabOne-Regular.woff2') format("woff2");
font-family: 'Work Sans';
src: url('/fonts/WorkSans-SemiBold.woff2') format('woff2'),
url('/fonts/WorkSans-SemiBold.woff') format('woff');
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('fonts/Work-Sans-Regular.woff2') format('woff2');
font-family: 'Alfa Slab One';
src: url('/fonts/AlfaSlabOne-Regular.woff2') format('woff2'),
url('/fonts/AlfaSlabOne-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Work Sans';
font-style: medium;
font-weight: 500;
font-display: swap;
src: url('fonts/Work-Sans-500.woff2') format('woff2');
font-family: 'Work Sans';
src: url('/fonts/WorkSans-Regular.woff2') format('woff2'),
url('/fonts/WorkSans-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Work Sans';
font-style: semibold;
font-weight: 600;
font-display: swap;
src: url('fonts/Work-Sans-600.woff2') format('woff2');
font-family: 'Work Sans';
src: url('/fonts/WorkSans-Medium.woff2') format('woff2'),
url('/fonts/WorkSans-Medium.woff') format('woff');
font-weight: 500;
font-style: normal;
font-display: swap;
}

body {
Expand Down

0 comments on commit 06d2bb8

Please sign in to comment.