Skip to content

Commit 5631476

Browse files
authored
replace buttons to a secondary button, make images smaller, update te… (#134)
…xt to SG conventions Problem ======= Need to use updated SG and update text sizes, images, and buttons Link to GitHub Issue(s): #133 Solution ======== - install latest SG version - update styling with @jeanettedepatie Change summary: --------------- - [ ] Updated Spec Versions - [ ] Tidy, well formulated change - [ ] Another great message - [ ] Something else I/we did Steps to Verify: ---------------- 1. check it looks good in light and dark 2. check that button links work on the outlined buttons that were added in HTML to the markdown Screenshots (optional): ----------------------- <img width="956" height="1115" alt="Screenshot 2025-10-07 at 2 26 36 PM" src="https://github.com/user-attachments/assets/87f95f96-18d7-4ccc-9941-40223c71e4ee" /> <img width="954" height="856" alt="Screenshot 2025-10-07 at 2 27 05 PM" src="https://github.com/user-attachments/assets/20582b3c-7312-4098-9fbd-102ba50bb78c" />
1 parent 61124c4 commit 5631476

File tree

20 files changed

+398
-282
lines changed

20 files changed

+398
-282
lines changed

css/button-links.css

Lines changed: 77 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,102 @@
11
.button-links,
2-
.button-links > p {
3-
display: flex;
4-
justify-content: space-around;
5-
align-content: center;
6-
align-items: stretch;
7-
flex-wrap: wrap;
2+
.button-links-outlined {
3+
max-width: 800px;
4+
margin: 48px auto 0 auto;
85
}
96

10-
.button-links > p {
11-
width: 100%;
7+
.button-links,
8+
.button-links > p,
9+
.button-links-outlined,
10+
.button-links-outlined > p {
11+
display: grid;
12+
grid-template-columns: 1fr 1fr;
13+
place-items: center;
14+
gap: 24px;
15+
}
16+
17+
/* center when there's only one child */
18+
.button-links:has(> :only-child),
19+
.button-links-outlined:has(> :only-child) {
20+
grid-template-columns: 1fr;
21+
justify-items: center;
1222
margin: 0;
23+
max-width: 400px;
24+
}
25+
26+
.button-links > p,
27+
.button-links-outlined > p {
28+
width: 100%;
1329
}
1430

1531
.button-links a,
1632
.button-links > p a,
1733
.button-links a:link,
1834
.button-links > p a:link,
1935
.button-links a:visited,
20-
.button-links > p a:visited {
36+
.button-links > p a:visited,
37+
.button-links-outlined a,
38+
.button-links-outlined > p a,
39+
.button-links-outlined a:link,
40+
.button-links-outlined > p a:link,
41+
.button-links-outlined a:visited,
42+
.button-links-outlined > p a:visited {
43+
@apply docsBodyText;
2144
text-decoration: none;
22-
box-sizing: content-box;
2345
font-weight: 700;
24-
color: var(--button-nav-fg);
25-
background-color: var(--button-nav-bg);
2646
border-radius: 9999px;
2747
user-select: none;
28-
padding: 20px 10%;
29-
margin: 10px;
3048
display: flex;
31-
font-size: 20px;
3249
flex: 0.5;
3350
transition: none;
3451
justify-content: center;
3552
align-items: center;
3653
text-align: center;
3754
white-space: nowrap;
55+
max-width: 388px;
56+
width: 100%;
57+
}
58+
59+
.button-links a,
60+
.button-links > p a,
61+
.button-links a:link,
62+
.button-links > p a:link,
63+
.button-links a:visited,
64+
.button-links > p a:visited {
65+
padding: 12px 10%;
66+
color: var(--button-nav-fg);
67+
background-color: var(--button-nav-bg);
68+
}
69+
70+
.button-links-outlined a,
71+
.button-links-outlined > p a,
72+
.button-links-outlined a:link,
73+
.button-links-outlined > p a:link,
74+
.button-links-outlined a:visited,
75+
.button-links-outlined > p a:visited {
76+
padding: 8px 10%;
77+
color: var(--button-outlined-text);
78+
border: 2px solid var(--button-outlined-border);
79+
background: var(--button-outlined-bg);
3880
}
3981

4082
@media screen and (max-width: 1080px) {
41-
.button-links a,
42-
.button-links > p a,
43-
.button-links a:link,
44-
.button-links > p a:link {
45-
box-sizing: border-box;
46-
margin: 10px 6px;
47-
flex: 0 0 90%;
48-
width: 100%;
49-
white-space: normal;
83+
.button-links,
84+
.button-links > p,
85+
.button-links-outlined,
86+
.button-links-outlined > p {
87+
grid-template-columns: 1fr;
5088
}
5189
}
5290

53-
@media screen and (max-width: 400px) {
91+
@media screen and (max-width: 1080px) {
5492
.button-links a,
5593
.button-links > p a,
5694
.button-links a:link,
57-
.button-links > p a:link {
58-
box-sizing: border-box;
59-
margin: 10px 6px;
60-
flex: 0 0 100%;
95+
.button-links > p a:link,
96+
.button-links-outlined a,
97+
.button-links-outlined > p a,
98+
.button-links-outlined a:link,
99+
.button-links-outlined > p a:link {
61100
width: 100%;
62101
white-space: normal;
63102
}
@@ -71,3 +110,12 @@
71110
color: var(--button-nav-hover-fg);
72111
background: var(--button-nav-hover-bg);
73112
}
113+
114+
.button-links-outlined a:hover,
115+
.button-links-outlined > p a:hover,
116+
.button-links-outlined a:visited:hover,
117+
.button-links-outlined > p a:visited:hover {
118+
text-decoration: none;
119+
color: var(--button-outlined-hover-text);
120+
border: 2px solid var(--button-outlined-hover-border);
121+
}

css/highlight-dark.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,13 @@ pre .hljs {
104104

105105
.svg-embed-light {
106106
display: none;
107+
max-width: 800px;
108+
margin: 0 auto;
107109
}
108110
.svg-embed-coal {
109111
display: block;
112+
max-width: 800px;
113+
margin: 0 auto;
110114
}
111115

112116
.no-js .svg-embed-light {

css/overrides.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
body {
13-
font-size: 18px;
13+
@apply docsBodyText;
1414
font-family: "Poppins", sans-serif;
1515
}
1616

@@ -269,7 +269,7 @@ body#sidebar {
269269
#content {
270270
overflow-y: auto;
271271
min-height: 100vh;
272-
padding: 32px 45px 128px 6px;
272+
padding: 10px 45px 128px 6px;
273273
}
274274

275275
#content .nav-wrapper {
@@ -278,8 +278,8 @@ body#sidebar {
278278
}
279279

280280
#content .mobile-nav-chapters {
281+
@apply docsSubHeaderText;
281282
display: block;
282-
font-size: 1em;
283283
font-weight: 700;
284284
text-align: center;
285285
text-decoration: none;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lint": "npm run lint:md && npm run lint:spellcheck"
2020
},
2121
"devDependencies": {
22-
"@frequency-chain/style-guide": "^0.3.0",
22+
"@frequency-chain/style-guide": "v0.4.1",
2323
"@tailwindcss/cli": "^4.1.7",
2424
"remark": "^15.0.1",
2525
"remark-cli": "^12.0.1",

pages/Architecture/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Frequency is a Layer 1 blockchain built to support high volume, data-driven applications within a decentralized environment. This section outlines the core components that make up Frequency and the ecosystem in which it operates.
44

5-
{{#button-links}}
5+
{{#button-links-outlined}}

pages/Data/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ This data can be stored directly on each node for critical and frequently access
55

66
This section discusses the different types of data management provided by Frequency, and the tradeoffs of using each in terms of high availability, scalability, and throughput.
77

8-
9-
{{#button-links}}
8+
{{#button-links-outlined}}

pages/Delegation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ Users can also directly revoke delegated permissions, even if they are Coinless
1414

1515
MSAs allow users to delegate tasks to Providers on their behalf and ensure Messages and Stateful Storage (i.e. non-financial transactions) have verifiable chains of authorship, while maintaining the ability to revoke a delegation at any time without cost.
1616

17-
{{#button-links}}
17+
{{#button-links-outlined}}

pages/Guides/BecomeAProvider.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ Providers handle transactions, manage user delegations, and facilitate various o
99

1010
{{#svg-embed pages/images/Become_Provider.svg Become a Provider}}
1111

12-
### From a Developer's Perspective, Providers
12+
### **From a Developer's Perspective, Providers**
1313

1414
- **Manage Delegated Tasks:** Users delegate specific permissions to Providers, allowing them to perform only those specified actions on the user's behalf in a secure and transparent manner.
15-
- **Create and Update User-Generated Content with Permission:** Providers publish new content or modify existing content on behalf of users, such as posts, comments, and other social interactions, after obtaining the user's consent.
16-
- **Maintain the User's Social Graph:** Providers manage and update users' social connections on Frequency, (based on a user’s direction and consent) such as following or unfollowing other users, and maintaining friend lists. These actions ensure that the user's relationships are accurately represented on the blockchain.
15+
- **Create and Update User-Generated Content with Permission:** Providers publish new content or modify existing content on behalf of users, such as posts, comments, and other social interactions, after obtaining the user's consent.
16+
- **Maintain the User's Social Graph:** Providers manage and update users' social connections on Frequency, (based on a user’s direction and consent) such as following or unfollowing other users, and maintaining friend lists. These actions ensure that the user's relationships are accurately represented on the blockchain.
1717
- **Store User-Generated Content and Write Links to It on Frequency:** Providers store user-generated content files (e.g., media files, documents) and publish links to the content on chain or batched metadata in The InterPlanetary File Service (IPFS). This enables decentralized access and verification. Providers have many options for user-generated content file storage including decentralized storage like IPFS.
1818
- **Simplify User Participation:** By handling transaction complexities and fees, Providers make blockchain applications more accessible to end-users who may not possess sufficient technical knowledge or hold tokens.
1919
- **Enhance User Experience:** Providers may offer intuitive user interfaces and seamless interactions, so users don’t need to experience or understand the underlying blockchain mechanics.
2020

21-
## How You Can Become a Provider
21+
## **How You Can Become a Provider**
2222

2323
### Step 1: Generate Your Keys
2424

@@ -59,4 +59,8 @@ You can also use the [Provider Dashboard](https://provider.frequency.xyz/) to ad
5959

6060
Ready to move to production? [Become a Provider on Mainnet](https://projectlibertylabs.github.io/gateway/GettingStarted/BecomeProvider.html#mainnet).
6161

62-
**[Become a Provider Today](https://provider.frequency.xyz/)**
62+
<div class="button-links-outlined">
63+
<a href="https://provider.frequency.xyz/" target="_blank" rel="noopener noreferrer">
64+
Become a Provider Today
65+
</a>
66+
</div>

pages/Guides/Gateway.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
Gateway offers a suite of tools and services hosted by you that make it easy to connect your applications to the Frequency blockchain.
1212
This allows your development team to focus on building outstanding user experiences without managing the complexity of blockchain interactions.
1313

14-
## What is Frequency Developer Gateway?
14+
## **What is Frequency Developer Gateway?**
1515

1616
**Frequency Developer Gateway** has a simple API to interact with the Frequency social layers (including identity, Universal Social Graph, user-generated content, and more).
1717
It includes a suite of self-hosted tools you can select from to build the best applications for your users.
1818

19-
### Key Features:
19+
### **Key Features:**
2020

2121
#### Decentralize with Web2 API Simplicity:
2222

@@ -31,12 +31,12 @@ It includes a suite of self-hosted tools you can select from to build the best a
3131
- **Connect Your Users with Their Universal Social Graph:** Access and manage user relationships across the Frequency Ecosystem.
3232
- **Read, Write, and Interact with Social Media Content:** Enable rich social interactions within your application.
3333

34-
## How Can I Integrate Frequency Developer Gateway?
34+
## **How Can I Integrate Frequency Developer Gateway?**
3535

3636
Frequency Developer Gateway is composed of independent, self-hosted, standalone microservices, allowing you to use only those components you need.
3737
These microservices include simple APIs for interacting with various aspects of the Frequency Ecosystem.
3838

39-
### Key Microservices:
39+
### **Key Microservices:**
4040

4141
#### 1. Account Service
4242

@@ -45,22 +45,21 @@ Accounts are defined with an `msaId` (64-bit identifier) and can contain additio
4545

4646
[Account Service Docs](https://projectlibertylabs.github.io/gateway/Build/AccountService/AccountService.html)
4747

48-
##### Features:
48+
Features:
4949

5050
- **Account Authentication and Single Sign-On:** Simplifies user onboarding with Sign-In with Frequency (SIWF).
5151
- **Delegation Management:** Manages permissions and actions delegated by users.
5252
- **User Handle Creation and Retrieval:** Creates and manages unique, user-selected user handles on Frequency.
5353
- **User Key Retrieval and Management:** Accesses and securely manages user cryptographic keys.
5454

55-
5655
#### 2. Universal Social Graph Service
5756

5857
The Graph Service enables easy interaction with social graphs on Frequency.
5958
Each graph connection can be private or public and can be unidirectional (a follow) or bidirectional (mutually opted-in friend connection).
6059

6160
[Social Graph Service Docs](https://projectlibertylabs.github.io/gateway/Build/GraphService/GraphService.html)
6261

63-
##### Features:
62+
Features:
6463

6564
- **Fetch User Graph:** Retrieves a user's social connections and relationships.
6665
- **Update Delegated User Graphs:** Modifies social graphs on behalf of users with their permission.
@@ -74,7 +73,7 @@ User-generated content can be stored using IPFS or other systems.
7473

7574
[Content Publishing Service Docs](https://projectlibertylabs.github.io/gateway/Build/ContentPublishing/ContentPublishing.html)
7675

77-
##### Features:
76+
Features:
7877

7978
- **Create Posts to Publicly Broadcast:** Publishes links to content metadata to the chain.
8079
- **Create Replies to Posts:** Facilitates conversations by allowing users to publish responses to user-generated content.
@@ -89,10 +88,14 @@ The Content Watcher Service helps your application process content from the Freq
8988

9089
[Content Watcher Service Docs](https://projectlibertylabs.github.io/gateway/Build/ContentWatcher/ContentWatcher.html)
9190

92-
##### Features:
91+
Features:
9392

9493
- **Parse and Validate Frequency Content:** Ensures content is well formed and complies with network standards.
9594
- **Filterable Webhooks:** Receive notifications based on specific filters.
9695
- **Scanning Control:** Manage how and when the service scans Frequency.
9796

98-
**[Start Using Frequency Developer Gateway](https://projectlibertylabs.github.io/gateway/)**
97+
<div class="button-links-outlined">
98+
<a href="https://projectlibertylabs.github.io/gateway/" target="_blank" rel="noopener noreferrer">
99+
Start Using Frequency Developer Gateway
100+
</a>
101+
</div>

pages/Guides/SSO.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,26 @@ Sign-in With Frequency (SIWF) allows Providers to enhance their apps with secure
88

99
{{#svg-embed pages/images/Single_Sign_On.svg Single Sign-On Flow}}
1010

11-
## What is Sign-In with Frequency?
11+
## **What is Sign-In with Frequency?**
1212

1313
Sign-in With Frequency (SIWF) provides tools and documentation to integrate an easy-to-use single sign-on identity solution for users of Frequency, currently supporting Frequency Access for key management.
1414
SIWF simplifies the authentication process, allowing users to access the entire Frequency ecosystem effortlessly while maintaining control over their personal data.
1515

1616
By leveraging Frequency Access, Providers can offer users a seamless experience, making it easier for consumers to engage with applications without confronting the complexities of blockchain technology.
1717
Additionally, developers benefit by receiving verified emails, enhancing security and trust within your application.
1818

19-
### Key Features
19+
### **Key Features**
2020

2121
#### Easy Integration:
2222

2323
- Utilize developer-friendly documentation and tools to quickly add SIWF to your applications.
2424
- SIWF streamlines the setup process, allowing Providers to integrate authentication and identity management with minimal effort.
2525

26-
2726
#### Secure Authentication:
2827

2928
- SIWF works with Frequency Access to verify users and manages the signing of requested payloads, ensuring a secure authentication process.
3029
- Developers can receive emails that Frequency Access has previously verified to enhance communication and security within their applications.
3130

32-
3331
#### Universal Identity and Authentication:
3432

3533
- Offers users a familiar and standardized sign-in experience with a consistent sign-in button.
@@ -45,4 +43,8 @@ Additionally, developers benefit by receiving verified emails, enhancing securit
4543
- Offers a familiar sign-in process that allows users to effortlessly take control of their accounts.
4644
- Reduces barriers to entry, encouraging more users to engage with your application.
4745

48-
**[Integrate SIWF with Your App](https://projectlibertylabs.github.io/gateway/GettingStarted/SSO.html)**
46+
<div class="button-links-outlined">
47+
<a href="https://projectlibertylabs.github.io/gateway/GettingStarted/SSO.html" target="_blank" rel="noopener noreferrer">
48+
Integrate SIWF with Your App
49+
</a>
50+
</div>

0 commit comments

Comments
 (0)