Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: new SCSS Structure added and Vite reconfiguration #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
255 changes: 254 additions & 1 deletion package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"dev": "vite serve src",
"build": "vite build src",
"serve": "vite preview",
"lint": "eslint --fix"
},
Expand All @@ -15,6 +15,7 @@
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-promise": "^5.1.0",
"prettier": "2.3.1",
"sass": "^1.35.2",
"vite": "^2.3.8"
}
}
File renamed without changes.
File renamed without changes
6 changes: 3 additions & 3 deletions index.html → src/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<html lang="es">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link rel="icon" type="image/svg+xml" href="./assets/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script type="module" src="./js/main.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/main.js → src/js/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import './style.css'
import '../scss/main.scss'

document.querySelector('#app').innerHTML = `<h1>Hello Vite!</h1>`
Empty file.
Empty file.
Empty file added src/scss/abstract/_mixins.scss
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions src/scss/base/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward './reset';
@forward './typography'
6 changes: 6 additions & 0 deletions src/scss/base/_reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*,
*::after,
*::before {
margin: 0;
padding: 0;
}
Empty file added src/scss/base/_typography.scss
Empty file.
Empty file added src/scss/layout/_footer.scss
Empty file.
Empty file added src/scss/layout/_grid.scss
Empty file.
Empty file added src/scss/layout/_header.scss
Empty file.
4 changes: 4 additions & 0 deletions src/scss/layout/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@forward './grid';
@forward './header';
@forward './navigation';
@forward './footer';
Empty file.
4 changes: 4 additions & 0 deletions src/style.css → src/scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@use './base';
@use './layout';

// css default de Vite para comprobar que funciona
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
Expand Down