Add round pb feature
This commit is contained in:
parent
3a7e24c6df
commit
19ebcef3fc
6 changed files with 1776 additions and 733 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -3,3 +3,6 @@ src/dist
|
|||
dev/docker/stacks/main/assets
|
||||
.env
|
||||
.DS_Store
|
||||
.yarn
|
||||
yarn.lock
|
||||
.yarnrc.yml
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
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
|
||||
# profilePic: # uncomment and set this if your profile pic has a custom name
|
||||
theme: 'blurred-white'
|
||||
roundPB: false
|
||||
theme: 'simple-orange'
|
||||
links:
|
||||
- text: "YouTube" # text on the link
|
||||
hyperlink: "Test" # the actual hyperlink
|
||||
|
|
|
@ -7,7 +7,7 @@ console.log('🔧 Configuring socialtree...')
|
|||
|
||||
dotenv.config()
|
||||
const app = express()
|
||||
const port = process.env.PORT
|
||||
const port = process.env.PORT || 3000
|
||||
const engine = 'ejs'
|
||||
|
||||
app.set('view engine', engine)
|
||||
|
@ -23,7 +23,8 @@ app.get('/', (req, res) => {
|
|||
summaryText: config.summaryText ? config.summaryText: '',
|
||||
links: config.links,
|
||||
smallLinks: config.smallLinks,
|
||||
theme: config.theme
|
||||
theme: config.theme,
|
||||
roundPB: config.roundPB
|
||||
})
|
||||
})
|
||||
|
||||
|
|
3
src/public/themes/round-pb.scss
Normal file
3
src/public/themes/round-pb.scss
Normal file
|
@ -0,0 +1,3 @@
|
|||
.imgbox>img{
|
||||
border-radius: 100%;
|
||||
}
|
|
@ -4,4 +4,7 @@
|
|||
<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="style/<%= theme %>.css">
|
||||
<% if(roundPB) { %>
|
||||
<link rel="stylesheet" href="style/round-pb.css">
|
||||
<% } %>
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue