Skip to content

Commit 6285818

Browse files
committed
add vue example by alexop
1 parent 431a250 commit 6285818

3 files changed

Lines changed: 54 additions & 54 deletions

File tree

.astro/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"_variables": {
3-
"lastUpdateCheck": 1740663581887
3+
"lastUpdateCheck": 1757925690810
44
}
55
}

src/components/MFExample.astro

Lines changed: 38 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const {
1010
author,
1111
authorUrl,
1212
githubUrl,
13+
blogUrl,
1314
liveUrl,
1415
contribute,
1516
} = Astro.props;
@@ -57,27 +58,36 @@ import { Image } from "astro:assets";
5758
</a>
5859
)
5960
}
60-
{
61-
githubUrl && (
62-
<a class="githubUrl" href={githubUrl} target="_blank">
63-
GitHub
64-
</a>
65-
)
66-
}
67-
{
68-
contribute && (
69-
<a class="contribute" href="#contribute">
70-
Share your approach
71-
</a>
72-
)
73-
}
74-
{
75-
liveUrl && (
76-
<a class="liveUrl" href={liveUrl}>
77-
Live Demo
78-
</a>
79-
)
80-
}
61+
<div class="urls">
62+
{
63+
githubUrl && (
64+
<a class="githubUrl" href={githubUrl} target="_blank">
65+
GitHub
66+
</a>
67+
)
68+
}
69+
{
70+
blogUrl && (
71+
<a class="blogUrl" href={blogUrl} target="_blank">
72+
Blog
73+
</a>
74+
)
75+
}
76+
{
77+
contribute && (
78+
<a class="contribute" href="#contribute">
79+
Share your approach
80+
</a>
81+
)
82+
}
83+
{
84+
liveUrl && (
85+
<a class="liveUrl" href={liveUrl}>
86+
Live Demo
87+
</a>
88+
)
89+
}
90+
</div>
8191
</div>
8292
</section>
8393

@@ -161,49 +171,24 @@ import { Image } from "astro:assets";
161171
}
162172

163173
.repository {
164-
@media (max-width: 999px) {
165-
grid-template:
166-
"author" auto
167-
"githubUrl" auto
168-
"liveUrl" auto / 1fr;
169-
}
170-
171-
@media screen and (min-width: 1000px) {
172-
grid-template:
173-
"author author" auto
174-
"githubUrl liveUrl" auto / 1fr 1fr;
175-
}
176-
177174
margin-top: 1rem;
178-
display: grid;
179-
gap: 0.5rem;
180175
}
181176

182177
a.author {
183-
grid-area: author;
178+
display: block;
184179
text-decoration: none;
180+
margin-bottom: 0.5rem;
185181
}
186182

187-
.githubUrl {
188-
grid-area: githubUrl;
189-
justify-self: start;
190-
}
191-
192-
.contribute {
193-
grid-column: 1 / 3;
194-
}
195-
196-
.liveUrl {
197-
@media screen and (min-width: 1000px) {
198-
justify-self: end;
199-
}
200-
201-
grid-area: liveUrl;
202-
}
203183
.bigLink,
204184
.bigLink:hover {
205185
text-decoration: none;
206186
display: block;
207187
color: inherit;
208188
}
189+
.urls {
190+
display: flex;
191+
justify-content: space-between;
192+
gap: 0.5rem;
193+
}
209194
</style>

src/components/content/Implementations.astro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import webpack from "./../../../public/images/tech/webpack.svg";
88
import rspack from "./../../../public/images/tech/rspack.svg";
99
import question from "./../../../public/images/tech/question.svg";
1010
import htmx from "./../../../public/images/tech/htmx.svg";
11+
import vue from "./../../../public/images/tech/vue.svg";
1112
---
1213

1314
<div class="root">
@@ -110,6 +111,7 @@ import htmx from "./../../../public/images/tech/htmx.svg";
110111
integration="nginx SSI"
111112
author="inaudi tech"
112113
authorUrl="https://www.inauditech.com/"
114+
blogUrl="https://medium.com/@alexander.heerens/radically-simple-web-architecture-a-web-application-blueprint-for-startups-and-small-enterprises-f503a5f36381"
113115
githubUrl="https://github.com/heerens/tractor-store-htmx-tailwind"
114116
liveUrl="https://tractorstore.inauditech.com/"
115117
/>
@@ -127,6 +129,19 @@ import htmx from "./../../../public/images/tech/htmx.svg";
127129
liveUrl="https://latest-tractor-v2-app-zephyr-examples-zephyrcloudio-ze.zephyr-cloud.io/"
128130
/>
129131

132+
<MFExample
133+
title="Vue 3"
134+
rendering="app shell (three SPAs), client-only"
135+
lib1={vue}
136+
lib2={vue}
137+
lib3={vue}
138+
integration="Module Federation"
139+
author="Alexander Opalic"
140+
authorUrl="https://alexop.dev/"
141+
githubUrl="https://github.com/alexanderop/tractorStoreVueModuleFederation"
142+
blogUrl="https://alexop.dev/posts/how-to-build-microfrontends-with-module-federation-and-vue/"
143+
/>
144+
130145
<MFExample
131146
title="Your Implementation ..."
132147
rendering="[rendering approach]"

0 commit comments

Comments
 (0)