Init project

This commit is contained in:
2023-07-13 16:53:06 +07:00
parent 3c40ecb572
commit 7ae1f6af5c
6 changed files with 4040 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
.parcel-cache
node_modules
dist
File diff suppressed because it is too large Load Diff
+22
View File
@@ -0,0 +1,22 @@
{
"name": "practice-02",
"version": "1.0.0",
"description": "Practice 02",
"scripts": {
"start": "rm -rf dist && rm -rf .parcel-cache && parcel ./src/*.pug --no-cache --no-source-maps",
"build": "rm -rf build && rm -rf .parcel-cache && parcel build ./src/*.pug --no-cache --no-source-maps --dist-dir dist",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@parcel/transformer-pug": "^2.9.3",
"@parcel/transformer-sass": "^2.9.3",
"parcel": "^2.9.3"
},
"dependencies": {
"pug": "^3.0.2",
"sass": "^1.63.6"
}
}
+9
View File
@@ -0,0 +1,9 @@
doctype html
html(lang="en")
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
link(rel="stylesheet", href="./sass/main.scss")
title Food Hut
body
@@ -0,0 +1,54 @@
$background-color_1: transparent;
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font: inherit;
&:before {
box-sizing: border-box;
}
&:after {
box-sizing: border-box;
}
}
img {
display: block;
max-width: 100%;
}
picture {
display: block;
max-width: 100%;
}
svg {
display: block;
max-width: 100%;
}
video {
display: block;
max-width: 100%;
}
input {
background-color: $background-color_1;
outline: none;
}
select {
background-color: $background-color_1;
outline: none;
}
textarea {
background-color: $background-color_1;
outline: none;
}
button {
cursor: pointer;
background-color: $background-color_1;
outline: none;
border: 0;
}
body {
min-height: 100vh;
font-weight: 400;
font-size: 16px;
line-height: 1;
}
+1
View File
@@ -0,0 +1 @@
@import "./base/reset.scss";