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

fix: ajustes estructura #8

Merged
merged 5 commits into from
Aug 10, 2023
Merged
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
14 changes: 11 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ function watch() {

gulp.task("build", async function () {
gulp.src(paths.scripts.src).pipe(minify()).pipe(gulp.dest("static/dist/js"));
gulp
.src(paths.styles_scss.src)
.pipe(
scss({
bundleExec: true,
})
)
.pipe(gulp.dest("static/src/css"));
gulp
.src(paths.styles_css.src)
.pipe(cssmin())
Expand All @@ -63,11 +71,11 @@ exports.watch = watch;

var paths = {
styles_scss: {
src: "static/src/scss/**/*.scss",
dest: "static/src/css",
src: ["static/src/scss/**/*.scss", "!static/src/scss/vars.scss"],
dest: ["static/src/css"],
},
styles_css: {
src: "static/src/css/style.css",
src: "static/src/css/*.css",
dest: "static/dist/css",
},
scripts: {
Expand Down
102 changes: 100 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,111 @@
<meta name="theme-color" content="#000" />

<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="static/dist/css/style.min.css" />

<style type="text/css">
button,
fieldset,
img {
border: none
}

:focus,
a,
button {
outline: 0
}

* {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent
}

html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth
}

body {
background-color: #FFF;
color: #000;
font: 1rem/1.1 Arial, sans-serif;
margin: 0;
padding-top: 0
}

a {
text-decoration: none
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0
}

figure,
li,
ol,
ul {
margin: 0;
padding: 0;
list-style: none
}

img {
vertical-align: top;
text-indent: -9999px
}

fieldset {
padding: 0;
margin: 0
}

button {
background: 0 0;
cursor: pointer;
padding: 0
}

input,
input:focus {
font-size: 16px
}

:focus {
box-shadow: none
}

.splash {
background: #000;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
height: 100vh;
width: 100vw
}

.splash__span {
display: block
}
</style>


</head>

<body>
<div class="splash">
<h2 class="splash__title">
En construcción. Vuelve pronto.
<span class="splash__span">En construcción</span> Vuelve pronto.
</h2>
</div>
<script>
Expand Down
6 changes: 0 additions & 6 deletions static/src/css/header.css

This file was deleted.

4 changes: 4 additions & 0 deletions static/src/css/partials/splash.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
display: flex;
align-items: center;
justify-content: center;
text-align: center;
height: 100vh;
width: 100vw;
}
.splash__span {
display: block;
}
87 changes: 87 additions & 0 deletions static/src/css/style-inline.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
* {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
}

body {
background-color: #FFFFFF;
color: black;
font: 1rem/1.1 "Arial", sans-serif;
margin: 0;
padding-top: 0;
}

a {
text-decoration: none;
outline: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
}

figure,
ul,
ol,
li {
margin: 0;
padding: 0;
list-style: none;
}

img {
border: none;
vertical-align: top;
text-indent: -9999px;
}

fieldset {
border: none;
padding: 0;
margin: 0;
}

button {
background: transparent;
border: none;
cursor: pointer;
outline: 0;
padding: 0;
}

input:focus,
input {
font-size: 16px;
}

*:focus {
outline: none;
box-shadow: none;
}

.splash {
background: black;
color: white;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
height: 100vh;
width: 100vw;
}
.splash__span {
display: block;
}
78 changes: 4 additions & 74 deletions static/src/css/style.css
Original file line number Diff line number Diff line change
@@ -1,83 +1,13 @@
* {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
}

body {
background-color: #FFFFFF;
color: black;
font: 1rem/1.1 "Arial", sans-serif;
margin: 0;
padding-top: 0;
}

a {
text-decoration: none;
outline: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
}

figure,
ul,
ol,
li {
margin: 0;
padding: 0;
list-style: none;
}

img {
border: none;
vertical-align: top;
text-indent: -9999px;
}

fieldset {
border: none;
padding: 0;
margin: 0;
}

button {
background: transparent;
border: none;
cursor: pointer;
outline: 0;
padding: 0;
}

input:focus,
input {
font-size: 16px;
}

*:focus {
outline: none;
box-shadow: none;
}

.splash {
background: black;
color: white;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
height: 100vh;
width: 100vw;
}
.splash__span {
display: block;
}
Empty file removed static/src/css/vars.css
Empty file.
1 change: 0 additions & 1 deletion static/src/scss/partials/normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ body {
font: 1rem/1.1 $font-primary;
margin: 0;
padding-top: 0;

}

a {
Expand Down
5 changes: 5 additions & 0 deletions static/src/scss/partials/splash.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
display: flex;
align-items: center;
justify-content: center;
text-align: center;
height: 100vh;
width: 100vw;

&__span {
display: block;
}
}
2 changes: 2 additions & 0 deletions static/src/scss/style-inline.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'partials/normalize.scss';
@import 'partials/splash.scss';
1 change: 0 additions & 1 deletion static/src/scss/style.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@import 'partials/normalize.scss';
@import 'partials/splash.scss';
Loading