init new fancy project for starting 2024
This commit is contained in:
24
src/data.json
Normal file
24
src/data.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"socialLinks": [
|
||||
{
|
||||
"name": "Twitter",
|
||||
"url": "https://twitter.com/username"
|
||||
},
|
||||
{
|
||||
"name": "Facebook",
|
||||
"url": "https://facebook.com/username"
|
||||
},
|
||||
{
|
||||
"name": "LinkedIn",
|
||||
"url": "https://linkedin.com/in/username"
|
||||
},
|
||||
{
|
||||
"name": "Instagram",
|
||||
"url": "https://instagram.com/username"
|
||||
},
|
||||
{
|
||||
"name": "YouTube",
|
||||
"url": "https://youtube.com/user/username"
|
||||
}
|
||||
]
|
||||
}
|
||||
3
src/index.js
Normal file
3
src/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import './templates/social-links.hbs';
|
||||
import '../public/styles/main.css';
|
||||
// Additional JavaScript code can be added here
|
||||
6
src/templates/social-links-template.hbs
Normal file
6
src/templates/social-links-template.hbs
Normal file
@@ -0,0 +1,6 @@
|
||||
{{#each socialLinks}}
|
||||
<div class="social-link">
|
||||
<h2>{{name}}</h2>
|
||||
<a href="{{url}}" target="_blank">Visit {{name}}</a>
|
||||
</div>
|
||||
{{/each}}
|
||||
Reference in New Issue
Block a user