Skip to content

Commit

Permalink
Merge pull request #2 from RustLangES/development
Browse files Browse the repository at this point in the history
feat: update global styles and add clickable component
  • Loading branch information
gxskpo authored Oct 10, 2024
2 parents 55a744e + 9ea1f5c commit 928fc3c
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 1 deletion.
Empty file removed src/Home.module.css
Empty file.
10 changes: 10 additions & 0 deletions src/components/Clickable.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<style>
.clickable {
@apply inline-flex flex-col p-2 shadow-md border-black border-[2px];
box-shadow: 5px 5px 1px 1px #000;
}
</style>

<div class="clickable">
<slot />
</div>
49 changes: 49 additions & 0 deletions src/globals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@import url("https://fonts.cdnfonts.com/css/work-sans");
@import url("https://fonts.cdnfonts.com/css/alfa-slab-one");

:root {
--background: #fed7aa;
--orange: #f97316;
--black: #000;
}

body {
background: var(--background);
box-sizing: border-box;
}

* {
padding: 0;
margin: 0;
}

h1 {
@apply text-7xl font-normal;
color: var(--orange);
font-family: "Alfa Slab One", sans-serif;
}

h2 {
@apply text-4xl font-normal;
color: var(--black);
font-family: "Alfa Slab One", sans-serif;
}

h3 {
@apply text-4xl font-semibold;
color: var(--black);
font-family: "Work Sans", sans-serif;
}

h4 {
@apply text-3xl font-light;
color: var(--black);
font-family: "Work Sans", sans-serif;
}

p {
@apply text-lg font-normal;
color: var(--black);
font-family: "Work Sans", sans-serif;
}
21 changes: 20 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import "../globals.css";
import Clickable from "../components/Clickable.astro";
---

<html lang="en">
Expand All @@ -9,8 +10,26 @@
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Astro</title>

<!-- -->
<link
href="https://fonts.cdnfonts.com/css/alfa-slab-one"
rel="stylesheet"
/>
<link href="https://fonts.cdnfonts.com/css/work-sans" rel="stylesheet" />
</head>
<body>
<!--
<h4>Un espacio seguro</h4>
<h1>Astro</h1>
<h3>En Español</h3>
<h2>Aprender</h2>
<Clickable>
<p>oli</p>
</Clickable>
-->
</body>
</html>

0 comments on commit 928fc3c

Please sign in to comment.