Skip to content

Commit

Permalink
Adding demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dapize committed Nov 5, 2023
1 parent c3fe81c commit 5aae9b3
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README-es_ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import { Box } from 'react-layouter';

const App = () => {
return (
<Box w="100" h={100} c="13/15">
<Box w="100" h={100} c="13/15" as="main">
contenido
</Box>
);
Expand All @@ -66,6 +66,14 @@ export default App;

**Y listo!**, eso es todo lo que necesitamos para usar el **layouter** en React. Solo usa el componente Box por todo lugar donde lo requieras.

## 🚀 Demo

<p align="center">
<img src="screenshot.png" alt="Layouter DEMO"/>
<br>
<b><a href="https://dapize.github.io/react-layouter/">⚓ LINK DEMO ⚓</a></b>
</p>

## ⚡ Directivas

Son practicamente las mismas que la [librería](https://github.com/dapize/layouter.js), solo que se an cambiado las directivas de tipo `kebab-case` por `camelCase`, veamos:
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import { Box } from 'react-layouter';

const App = () => {
return (
<Box w="100" h={100} c="13/15">
<Box w="100" h={100} c="13/15" as="main">
content
</Box>
);
Expand All @@ -66,6 +66,14 @@ export default App;

**That's it!**, that is all of we have to do to use the **layouter** in React. Just use the component `Box` wherever you want.

## 🚀 Demo

<p align="center">
<img src="screenshot.png" alt="Layouter DEMO"/>
<br>
<b><a href="https://dapize.github.io/react-layouter/">⚓ LINK DEMO ⚓</a></b>
</p>

## ⚡ Directives

Are practically the same of the [library](https://github.com/dapize/layouter.js), just the names was changed from `kebab-case` to `camelCase`, let see:
Expand Down
48 changes: 48 additions & 0 deletions assets/index-72c55f36.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/index-8d16d58a.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>React Layouter DEMO</title>
<script type="module" crossorigin src="/assets/index-72c55f36.js"></script>
<link rel="stylesheet" href="/assets/index-8d16d58a.css" />
</head>
<body>
<div id="root"></div>
</body>
</html>
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,5 @@
"layouter.js": "^1.9.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"dependencies": {}
}
}
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5aae9b3

Please sign in to comment.