Skip to content

Commit 481f389

Browse files
committed
Readme updated
1 parent db98d78 commit 481f389

File tree

1 file changed

+79
-32
lines changed

1 file changed

+79
-32
lines changed

README.md

Lines changed: 79 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,86 @@
1-
# Code Fry Dev (CFD)
1+
# Adding a New Section: **Store**
22

3-
## Build Using HUGO
3+
This guide outlines steps to add a new section called **Store** to the website.
44

5+
---
56

6-
> Plan to replace font awesome icom with svg
7-
- Chages will be in two file
7+
## **Step I. Create Content Folder**
88

9-
```html
10-
<button class="neumorphic hapticButton">
11-
<!-- <i class="{{ .icon }}"></i> -->
12-
<svg class="icon" viewBox="0 0 24 24" aria-hidden="true">
13-
<path d="M12 2C6.48 2 2 6.48 2 12s4.48…Z"/>
14-
</svg>
15-
<span>Dashboard</span>
16-
</button>
9+
1. Inside the `content` folder, create a new folder named `store`.
10+
2. Inside the `store` folder, create a file named `_index.md`.
11+
12+
**Example Structure:**
13+
14+
```sh
15+
content/
16+
└── store/
17+
└── _index.md
18+
```
19+
20+
---
21+
22+
## **Step II. Configure \_index.md**
23+
24+
Add the following front matter to `_index.md`:
25+
26+
```yaml
27+
---
28+
title: "Store"
29+
date: 2025-07-07T00:00:00Z
30+
---
1731
```
1832

19-
- Css Changes
20-
21-
```css
22-
/* replace > i with > .icon */
23-
button.neumorphic > .icon {
24-
width: 31cqi;
25-
height: 31cqi;
26-
fill: currentColor;
27-
display: block;
28-
}
29-
30-
/* active state—you had > i { font-size:28cqi } */
31-
button.neumorphic:active > .icon,
32-
button.neumorphic.active > .icon {
33-
width: 28cqi;
34-
height: 28cqi;
35-
}
36-
37-
/* text stays same */
38-
button.neumorphic > span { /* …unchanged… */ }
33+
---
34+
35+
## **Step III. Create Data File**
36+
37+
1. Inside the `data` folder, create a new file named `store.yaml`.
38+
39+
**Example Structure:**
40+
41+
```sh
42+
data/
43+
└── store.yaml
3944
```
45+
46+
---
47+
48+
## **Step IV. Add Store Data**
49+
50+
Populate `store.yaml` with data in the following format:
51+
52+
```yaml
53+
data:
54+
- name: "Water Reminder"
55+
icon: "cfd-waterreminder"
56+
url: "https://play.google.com/"
57+
```
58+
59+
* **name**: Display name of the store item.
60+
* **icon**: Icon class or identifier for the item.
61+
* **url**: Link to the item.
62+
63+
---
64+
65+
## **Step V. Create Layout Template**
66+
67+
1. Inside the `layouts` folder, create a new folder named `store`.
68+
2. Inside the `store` folder, create a file named `store.html`.
69+
70+
**Example Structure:**
71+
72+
```sh
73+
layouts/
74+
└── store/
75+
└── store.html
76+
```
77+
78+
2. Add your desired HTML template code in `store.html` to render the Store section on the website.
79+
80+
---
81+
82+
## ✅ **Summary Checklist**
83+
84+
✔️ `content/store/_index.md` created and configured
85+
✔️ `data/store.yaml` created with store items
86+
✔️ `layouts/store/store.html` created with the section layout

0 commit comments

Comments
 (0)