Add round pb feature

This commit is contained in:
Nikurasu 2022-12-30 01:57:42 +01:00
parent 3a7e24c6df
commit 19ebcef3fc
6 changed files with 1776 additions and 733 deletions

5
.gitignore vendored
View file

@ -2,4 +2,7 @@ node_modules
src/dist src/dist
dev/docker/stacks/main/assets dev/docker/stacks/main/assets
.env .env
.DS_Store .DS_Store
.yarn
yarn.lock
.yarnrc.yml

View file

@ -1,7 +1,8 @@
name: "Nikurasu" # The name on the linktree name: "Nikurasu" # The name on the linktree
# summaryText: 'A simple sample text' # A short summary for what you do, will appear under the name if uncommened # summaryText: 'A simple sample text' # A short summary for what you do, will appear under the name if uncommened
# profilePic: # uncomment and set this if your profile pic has a custom name # profilePic: # uncomment and set this if your profile pic has a custom name
theme: 'blurred-white' roundPB: false
theme: 'simple-orange'
links: links:
- text: "YouTube" # text on the link - text: "YouTube" # text on the link
hyperlink: "Test" # the actual hyperlink hyperlink: "Test" # the actual hyperlink

View file

@ -7,7 +7,7 @@ console.log('🔧 Configuring socialtree...')
dotenv.config() dotenv.config()
const app = express() const app = express()
const port = process.env.PORT const port = process.env.PORT || 3000
const engine = 'ejs' const engine = 'ejs'
app.set('view engine', engine) app.set('view engine', engine)
@ -23,8 +23,9 @@ app.get('/', (req, res) => {
summaryText: config.summaryText ? config.summaryText: '', summaryText: config.summaryText ? config.summaryText: '',
links: config.links, links: config.links,
smallLinks: config.smallLinks, smallLinks: config.smallLinks,
theme: config.theme theme: config.theme,
roundPB: config.roundPB
}) })
}) })
app.listen(port, () => console.log(`🚀 Socialtree started on port ${port}, with view engine ${engine}`)) app.listen(port, () => console.log(`🚀 Socialtree started on port ${port}, with view engine ${engine}`))

View file

@ -0,0 +1,3 @@
.imgbox>img{
border-radius: 100%;
}

View file

@ -4,4 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
<link rel="stylesheet" href="style/<%= theme %>.css"> <link rel="stylesheet" href="style/<%= theme %>.css">
<% if(roundPB) { %>
<link rel="stylesheet" href="style/round-pb.css">
<% } %>
</head> </head>

2488
yarn.lock

File diff suppressed because it is too large Load diff