mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
update 0.1.5
-added UI -fixed bugs -fixed css issues -creating a blog is now easier than ever
This commit is contained in:
parent
03cba16e97
commit
7f8f627565
9 changed files with 318 additions and 12 deletions
|
@ -153,7 +153,7 @@ Blog's default JSON Format
|
|||
}
|
||||
```
|
||||
|
||||
### Follow me on twitter for more updates [@imfunnieee](https://twitter.com/imfunnieee)
|
||||
# Follow me on twitter for more updates [@imfunnieee](https://twitter.com/imfunnieee)
|
||||
|
||||
# License
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#! /usr/bin/env node
|
||||
#! /usr/bin/env node
|
||||
/* Argument parser */
|
||||
const program = require("commander");
|
||||
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gitfolio",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "gitfolio",
|
||||
"version": "0.1.4",
|
||||
"description": "a portfolio website for everyone to showcase your work",
|
||||
"version": "0.1.5",
|
||||
"description": "a portfolio website for everyone to showcase their work",
|
||||
"main": "build.js",
|
||||
"bin": "bin/gitfolio.js",
|
||||
"scripts": {
|
||||
|
|
4
ui.js
4
ui.js
|
@ -6,7 +6,7 @@ const { populateCSS, populateConfig } = require("./build");
|
|||
const { updateCommand } = require("./update");
|
||||
const app = express();
|
||||
app.set("view engine", "ejs");
|
||||
app.use(express.static("views"));
|
||||
app.use(express.static(__dirname + "/views"));
|
||||
app.set("views", __dirname + "/views");
|
||||
app.use(express.json({ limit: "50mb" }));
|
||||
app.use(express.urlencoded({ limit: "50mb", extended: true }));
|
||||
|
@ -185,7 +185,7 @@ function uiCommand() {
|
|||
'You need to run build command before accessing blogs<br><a href="/">Go Back</a>'
|
||||
);
|
||||
}
|
||||
fs.readFile("./dist/config.json", function(err, data) {
|
||||
fs.readFile(`${outDir}/config.json`, function(err, data) {
|
||||
res.render("blog.ejs", { profile: JSON.parse(data) });
|
||||
});
|
||||
});
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
<link rel="stylesheet" href="../index.css" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/index.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/gh/zeva-ui/zeva/dist/css/zeva.min.css"
|
||||
|
@ -122,7 +122,7 @@
|
|||
type="text/javascript"
|
||||
src="https://cdn.jsdelivr.net/gh/zeva-ui/zeva/dist/js/index.min.js"
|
||||
></script>
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
var imgElement = document.querySelector("#file");
|
||||
var topImageElement = document.querySelector("#top_image_file");
|
||||
var img_number = 0;
|
||||
|
@ -214,7 +214,6 @@
|
|||
reader.readAsDataURL(e.target.files[0]);
|
||||
reader.onload = data => {
|
||||
images.push(data.target.result);
|
||||
console.log(images);
|
||||
};
|
||||
|
||||
imgElement.value = "";
|
||||
|
|
BIN
views/css/font/Circular.otf
Normal file
BIN
views/css/font/Circular.otf
Normal file
Binary file not shown.
299
views/css/index.css
Normal file
299
views/css/index.css
Normal file
|
@ -0,0 +1,299 @@
|
|||
@import url("https://fonts.googleapis.com/css?family=Poppins");
|
||||
@import url("https://fonts.googleapis.com/css?family=Questrial");
|
||||
|
||||
@font-face {
|
||||
font-family: "Circular";
|
||||
src: url("./font/Circular.otf");
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0%;
|
||||
padding: 0%;
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
overflow-x: hidden;
|
||||
align-items: center;
|
||||
font-family: "Poppins", sans-serif;
|
||||
background: rgb(250, 250, 250) !important;
|
||||
will-change: auto;
|
||||
}
|
||||
|
||||
header {
|
||||
width: 90vw;
|
||||
padding: 4vh 5vw;
|
||||
font-weight: bold;
|
||||
background: rgb(255, 255, 255);
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
header b {
|
||||
font-family: "Circular", sans-serif;
|
||||
}
|
||||
|
||||
header a {
|
||||
font-size: 16px;
|
||||
margin: 1.8vh 0px;
|
||||
margin-left: 4vw;
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
transition: 0.4s ease-in-out;
|
||||
}
|
||||
|
||||
header a:hover {
|
||||
color: #bebebe;
|
||||
}
|
||||
|
||||
form {
|
||||
width: 90vw;
|
||||
padding: 2vh 5vw;
|
||||
}
|
||||
|
||||
form .button {
|
||||
margin: 2vh 0px;
|
||||
}
|
||||
|
||||
.input {
|
||||
margin: 1.5vh 0px !important;
|
||||
}
|
||||
|
||||
.label {
|
||||
display: inline-block !important;
|
||||
margin-right: 25px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
button {
|
||||
transition: 0.4s ease-in-out !important;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
color: #fff;
|
||||
background: #000 !important;
|
||||
}
|
||||
|
||||
.-size-small {
|
||||
margin-right: 1vw !important;
|
||||
}
|
||||
|
||||
#top_image {
|
||||
width: 100vw;
|
||||
height: 50vh;
|
||||
position: absolute;
|
||||
top: 14vh;
|
||||
left: 0;
|
||||
background: linear-gradient(0deg, rgb(250, 250, 250), rgb(200, 200, 200));
|
||||
background-size: cover !important;
|
||||
background-repeat: no-repeat !important;
|
||||
z-index: 1;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#top_image i {
|
||||
font-size: 20px;
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
top: 4vh;
|
||||
right: 5vw;
|
||||
padding: 15px 15px;
|
||||
background: #ffffff;
|
||||
color: rgb(0, 0, 0);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
#top_image i:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#profile_blog {
|
||||
width: 60vw;
|
||||
margin: 0px 20vw;
|
||||
margin-top: 42vh !important;
|
||||
text-align: left;
|
||||
z-index: 1;
|
||||
transition: 0.4s ease-in-out;
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#profile_img_blog {
|
||||
border-radius: 50%;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
background-size: cover !important;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
#username_blog {
|
||||
font-size: 18px;
|
||||
color: #000;
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-weight: bold;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
#username_blog span {
|
||||
font-size: 24px;
|
||||
font-family: "Questrial", sans-serif !important;
|
||||
}
|
||||
|
||||
#username_blog b {
|
||||
font-size: 12px;
|
||||
font-family: "Poppins", sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#blog-display {
|
||||
width: 60vw;
|
||||
margin: 3vh 20vw;
|
||||
text-align: left;
|
||||
z-index: 1;
|
||||
transition: 0.4s ease-in-out;
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#blog_title {
|
||||
font-size: 50px;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
font-family: "Questrial", sans-serif;
|
||||
background: transparent;
|
||||
border: 0px;
|
||||
width: 100%;
|
||||
resize: none;
|
||||
height: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
#blog_sub_title {
|
||||
font-size: 36px;
|
||||
color: rgb(100, 100, 100);
|
||||
font-weight: bold;
|
||||
font-family: "Questrial", sans-serif;
|
||||
background: transparent;
|
||||
border: 0px;
|
||||
width: 100%;
|
||||
resize: none;
|
||||
height: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
#blog_sub_title::placeholder {
|
||||
color: rgb(100, 100, 100);
|
||||
}
|
||||
|
||||
#blog-display h2 {
|
||||
color: var(--blog-gray-color);
|
||||
}
|
||||
|
||||
#blog-display {
|
||||
padding: 1vh 0px;
|
||||
font-family: "Questrial", sans-serif;
|
||||
}
|
||||
|
||||
.div_for_buttons {
|
||||
margin-top: 5vh;
|
||||
}
|
||||
|
||||
.para {
|
||||
font-size: 17px;
|
||||
line-height: 25px;
|
||||
word-spacing: 1.2px;
|
||||
margin: 5vh 0px;
|
||||
background: transparent;
|
||||
border: 0px;
|
||||
width: 100%;
|
||||
font-family: "Questrial", sans-serif;
|
||||
resize: none;
|
||||
height: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.para span {
|
||||
padding: 2px 4px;
|
||||
background: #000;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
#blog {
|
||||
margin-top: 2vh;
|
||||
}
|
||||
|
||||
#blog img {
|
||||
width: 100%;
|
||||
margin: 2vh 0px;
|
||||
border-radius: 5px;
|
||||
border: 1px solid rgb(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.remove {
|
||||
margin-bottom: 2vh 0px;
|
||||
font-weight: bold;
|
||||
transition: 0.4s ease-in-out;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.remove i {
|
||||
font-size: 14px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.remove:hover {
|
||||
cursor: pointer;
|
||||
color: rgb(255, 70, 70);
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
#blog-display {
|
||||
width: 90vw;
|
||||
margin: 0px 5vw;
|
||||
text-align: left;
|
||||
margin-top: 0vh;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
#profile_blog {
|
||||
width: 90vw;
|
||||
margin: 0px 5vw;
|
||||
}
|
||||
|
||||
#profile_img_blog {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
#blog img {
|
||||
margin: 1vh 0px !important;
|
||||
}
|
||||
|
||||
#blog p {
|
||||
margin: 2vh 0px;
|
||||
}
|
||||
}
|
||||
|
||||
::selection {
|
||||
color: #fff;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
input,
|
||||
textarea:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
::placeholder {
|
||||
color: #000;
|
||||
}
|
|
@ -15,7 +15,7 @@
|
|||
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
<link rel="stylesheet" href="../index.css" />
|
||||
<link rel="stylesheet" type="text/css" href="./css/index.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/gh/zeva-ui/zeva/dist/css/zeva.min.css"
|
||||
|
@ -140,6 +140,14 @@
|
|||
type="text/javascript"
|
||||
src="https://cdn.jsdelivr.net/gh/zeva-ui/zeva/dist/js/index.min.js"
|
||||
></script>
|
||||
<script src="./index.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
document.querySelector("#socials").addEventListener("change", event => {
|
||||
if (event.target.checked) {
|
||||
document.querySelector("#input_for_socials").style.display = "block";
|
||||
} else {
|
||||
document.querySelector("#input_for_socials").style.display = "none";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue