Skip to content

Commit c409d61

Browse files
author
antimoloch007
committed
updates
1 parent 56ff300 commit c409d61

File tree

7 files changed

+428
-248
lines changed

7 files changed

+428
-248
lines changed

assets/badges/gemini-generated.svg

Lines changed: 1 addition & 1 deletion
Loading

assets/badges/midjourney-generated.svg

Lines changed: 5 additions & 1 deletion
Loading

css/styles.css

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,4 +937,165 @@ footer {
937937
.cta-section h2 {
938938
font-size: 1.5rem;
939939
}
940+
}
941+
942+
/* Additional styles for the redesigned implementation section */
943+
.badge-selector {
944+
margin-bottom: 2rem;
945+
text-align: center;
946+
}
947+
948+
.badge-type-dropdown {
949+
padding: 0.5rem 1rem;
950+
font-size: 1rem;
951+
border: 1px solid var(--border);
952+
border-radius: var(--radius-md);
953+
min-width: 250px;
954+
margin-left: 0.5rem;
955+
cursor: pointer;
956+
}
957+
958+
.implementation-grid {
959+
display: grid;
960+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
961+
gap: 2rem;
962+
margin-bottom: 2rem;
963+
}
964+
965+
.implementation-card {
966+
background-color: var(--white);
967+
border-radius: var(--radius-md);
968+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
969+
padding: 1.5rem;
970+
transition: all 0.3s;
971+
}
972+
973+
.implementation-card:hover {
974+
transform: translateY(-5px);
975+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
976+
}
977+
978+
.implementation-card h3 {
979+
margin-bottom: 1rem;
980+
text-align: center;
981+
color: var(--primary);
982+
}
983+
984+
.code-box {
985+
background-color: #fafafa;
986+
border-radius: var(--radius-sm);
987+
padding: 0.5rem;
988+
position: relative;
989+
margin-bottom: 0.5rem;
990+
}
991+
992+
.code-box pre {
993+
margin: 0;
994+
padding: 1rem;
995+
overflow-x: auto;
996+
font-family: 'Fira Code', monospace;
997+
font-size: 0.9rem;
998+
}
999+
1000+
/* Platform badges container styles */
1001+
.platform-badges-container {
1002+
max-width: 100%;
1003+
margin: 2rem auto;
1004+
}
1005+
1006+
.platform-badge-row {
1007+
display: flex;
1008+
justify-content: center;
1009+
flex-wrap: wrap;
1010+
gap: 2rem;
1011+
margin-bottom: 2rem;
1012+
}
1013+
1014+
.platform-badge-item {
1015+
flex: 0 1 300px;
1016+
display: flex;
1017+
flex-direction: column;
1018+
align-items: center;
1019+
text-align: center;
1020+
background-color: var(--white);
1021+
border-radius: var(--radius-md);
1022+
padding: 1.5rem;
1023+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
1024+
transition: all 0.3s;
1025+
}
1026+
1027+
.platform-badge-item:hover {
1028+
transform: translateY(-5px);
1029+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
1030+
}
1031+
1032+
.platform-badge-item h3 {
1033+
margin: 1rem 0 0.5rem;
1034+
}
1035+
1036+
.platform-badge-item p {
1037+
margin-bottom: 0;
1038+
font-size: 0.95rem;
1039+
color: var(--medium);
1040+
}
1041+
1042+
.platform-badge-item.try-demo {
1043+
display: flex;
1044+
justify-content: center;
1045+
align-items: center;
1046+
background-color: var(--primary-light);
1047+
}
1048+
1049+
/* Modal styles */
1050+
.modal {
1051+
display: none;
1052+
position: fixed;
1053+
top: 0;
1054+
left: 0;
1055+
width: 100%;
1056+
height: 100%;
1057+
background-color: rgba(0, 0, 0, 0.5);
1058+
z-index: 1000;
1059+
opacity: 0;
1060+
transition: opacity 0.3s;
1061+
}
1062+
1063+
.modal.active {
1064+
display: block;
1065+
opacity: 1;
1066+
}
1067+
1068+
.modal-content {
1069+
position: relative;
1070+
background-color: var(--white);
1071+
margin: 10vh auto;
1072+
padding: 2rem;
1073+
width: 90%;
1074+
max-width: 800px;
1075+
border-radius: var(--radius-md);
1076+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
1077+
max-height: 80vh;
1078+
overflow-y: auto;
1079+
transform: scale(0.9);
1080+
transition: transform 0.3s;
1081+
}
1082+
1083+
.modal.active .modal-content {
1084+
transform: scale(1);
1085+
}
1086+
1087+
/* Responsive adjustments */
1088+
@media (max-width: 768px) {
1089+
.implementation-grid {
1090+
grid-template-columns: 1fr;
1091+
}
1092+
1093+
.platform-badge-row {
1094+
flex-direction: column;
1095+
align-items: center;
1096+
}
1097+
1098+
.platform-badge-item {
1099+
width: 100%;
1100+
}
9401101
}

demo.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<meta name="description" content="See how attest.ink badges look on different content types">
88
<link rel="stylesheet" href="css/styles.css">
99
<link rel="stylesheet" href="css/demo.css">
10+
<link rel="stylesheet" href="css/additional-styles.css">
1011
<link rel="preconnect" href="https://fonts.googleapis.com">
1112
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1213
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
@@ -241,9 +242,9 @@ <h3>PDF Documents</h3>
241242
<span class="modal-close">&times;</span>
242243
<h2 id="modal-title">Code Example</h2>
243244
<div class="modal-tabs">
244-
<button class="modal-tab-btn active" data-modal-tab="modal-html">HTML</button>
245-
<button class="modal-tab-btn" data-modal-tab="modal-markdown">Markdown</button>
246-
<button class="modal-tab-btn" data-modal-tab="modal-javascript">JavaScript</button>
245+
<button class="modal-tab-btn active" data-modal-tab="html">HTML</button>
246+
<button class="modal-tab-btn" data-modal-tab="markdown">Markdown</button>
247+
<button class="modal-tab-btn" data-modal-tab="javascript">JavaScript</button>
247248
</div>
248249
<div class="modal-tab-content active" id="modal-html-tab">
249250
<pre><code id="modal-html-code"></code></pre>
@@ -359,7 +360,7 @@ <h3>Implementation</h3>
359360
<div id="video-template" class="video-preview">
360361
<div class="video-container">
361362
<iframe width="100%" height="400" src="https://www.youtube.com/embed/2kigO0bR16Y" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
362-
<div class="video-title">Understanding Content Attribution</div>
363+
<div class="video-title">AI Sponge Best Moments 1</div>
363364
<div class="video-meta">
364365
<span>4:32</span>
365366
<span>May 5, 2025</span>

0 commit comments

Comments
 (0)