Skip to content

Commit f8d9928

Browse files
committed
Update feature section with grid-like design + other general styling improvements
sorry jeremy (bro wont even see this!!) it's 11, this commit is a liiiittttlee messy
1 parent b3ed9a7 commit f8d9928

File tree

3 files changed

+157
-37
lines changed

3 files changed

+157
-37
lines changed

.astro/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"_variables": {
3-
"lastUpdateCheck": 1722002543768
3+
"lastUpdateCheck": 1728399114239
44
}
55
}

src/components/sections/FeatureSection.astro

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,22 @@ import { Image } from "astro:assets";
2121
background-color: var(--secondary-nav-color);
2222
padding: 20px;
2323
border-radius: 16px;
24-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
2524
text-align: center;
2625
margin-bottom: 20px;
26+
height: 100%;
2727
}
2828

2929
.feature-image {
3030
width: 100%;
3131
height: auto;
3232
}
3333

34+
.feature-image img {
35+
width: 100%;
36+
height: auto;
37+
object-fit: cover;
38+
}
39+
3440
.feature-text h3 {
3541
font-size: 1.5rem;
3642
margin-bottom: 10px;

src/pages/index.astro

+149-35
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,55 @@ import CTAImage from "../images/mythic-screenshot.png";
77
88
import FeatureSection from "../components/sections/FeatureSection.astro";
99
10-
import AccountsScreenshot from "../images/accounts.png";
11-
import ImportScreenshot from "../images/import.png";
12-
import BottlesSCreenshot from "../images/bottles.png";
10+
import FullscreenLibraryScreenshotLight from "../images/app/light/fs_library.png"
11+
import GameSettingsScreenshotLight from "../images/app/light/gamesettings.png"
12+
import ImportSheetScreenshotLight from "../images/app/light/importsheet.png"
13+
import ContainerConfigurationScreenshotLight from "../images/app/light/containerconfiguration.png"
14+
import AccountManagerScreenshotLight from "../images/app/light/accountmanager.png"
15+
import SupportViewScreenshotLight from "../images/app/light/supportview.png"
16+
import MythicXcodeScreenshotLight from "../images/app/light/mythic_xcode.png"
1317
1418
import SocialCard from "../components/ui/SocialCard.astro";
1519
1620
import Footer from "../components/navigation/Footer.astro";
1721
1822
const features = [
19-
{
20-
title: "Import your own titles",
21-
desc: "Epic not enough? Import your own macOS or Windows® titles directly into Mythic, and the rest is history.",
22-
image: ImportScreenshot,
23+
{
24+
title: "Your library, your way.",
25+
desc: "Easily manage all your games in one place, with a beautiful and customizable library.",
26+
image: FullscreenLibraryScreenshotLight,
2327
color: "#2294b1",
2428
},
29+
{
30+
title: "Open-source, open season!",
31+
desc: "Something isn't as good as it should be? Dig through the source code and help make it better.",
32+
image: MythicXcodeScreenshotLight,
33+
color: "#e241da",
34+
},
2535
{
2636
title: "Multiple launchers, one place",
27-
desc: "Install, set up, and launch all your games from an external launcher, from Epic, or by yourself.",
28-
image: AccountsScreenshot,
37+
desc: "Install, set up, and launch all your games from an external launcher, or by yourself.",
38+
image: AccountManagerScreenshotLight,
2939
color: "#3d44c3",
3040
},
3141
{
32-
title: "Virtualized your way",
33-
desc: "Create multiple environments of Windows® directly within Mythic, and keep all your games isolated safely from one another.",
34-
image: BottlesSCreenshot,
42+
title: "Game management, without the fuss.",
43+
desc: "Need to move your games around? Maybe, edit some settings? Add some flags? Mythic has you covered.",
44+
image: GameSettingsScreenshotLight,
45+
color: "#2294b1",
46+
},
47+
{
48+
title: "Import your own titles",
49+
desc: "Epic not enough? Import your own macOS or Windows® titles directly into Mythic, and the rest is history.",
50+
image: ImportSheetScreenshotLight,
3551
color: "#e241da",
3652
},
53+
{
54+
title: "Virtualization? Child's play.",
55+
desc: "Create multiple environments of Windows® directly within Mythic, and keep all your games isolated safely from one another.",
56+
image: ContainerConfigurationScreenshotLight,
57+
color: "#3d44c3",
58+
},
3759
];
3860
3961
const socials = [
@@ -72,7 +94,7 @@ const socials = [
7294
<h1 class="mythic-gradient-text">
7395
The best way to play Windows games on Mac.
7496
</h1>
75-
<p style="margin-top: 15px; max-width: 800px;">
97+
<p>
7698
An open-source macOS game launcher to play Windows games through our
7799
implementation of Apple's Game Porting Toolkit - supporting many launchers.
78100
</p>
@@ -90,29 +112,86 @@ const socials = [
90112
/>
91113

92114
<div class="cta-after">
93-
<h1 class="mythic-gradient-text" style="text-align: left;">
94-
Gaming on a Mac has never been this easy
115+
<h1
116+
class="mythic-gradient-text"
117+
style="text-align: left; margin-bottom: 0;"
118+
>
119+
Friends gaming without you?
120+
</h1>
121+
<h1 style="text-align: left; margin: 0;">
122+
Mythic can fix that.
95123
</h1>
96-
<p style="margin-top: 15px; text-align: left;">
97-
Time to throw all your virtual machines, wine bottles and subscriptions
98-
out of the window.
124+
<p style="text-align: left; margin-top: 0;">
125+
Time to throw all your virtual machines and subscriptions out of the
126+
window.
99127
</p>
100-
{
101-
features.map((feature, index) => (
128+
129+
<!-- unfortunately i'm not a webdev and am too lazy to deal with modularity -->
130+
<div class="grid-container" style="grid-template-columns: 3fr 1fr;">
131+
<div class="large-tile">
102132
<FeatureSection
103-
title={feature.title}
104-
desc={feature.desc}
105-
image={feature.image}
106-
id={String(index + 1)}
107-
color={feature.color}
133+
title={features[0].title}
134+
desc={features[0].desc}
135+
image={features[0].image}
136+
id="1"
137+
color={features[0].color}
108138
/>
109-
))
110-
}
139+
</div>
140+
<div class="small-tile">
141+
<FeatureSection
142+
title={features[1].title}
143+
desc={features[1].desc}
144+
image={features[1].image}
145+
id="2"
146+
color={features[1].color}
147+
/>
148+
</div>
149+
<div class="small-tile">
150+
<FeatureSection
151+
title={features[2].title}
152+
desc={features[2].desc}
153+
image={features[2].image}
154+
id="3"
155+
color={features[2].color}
156+
/>
157+
</div>
158+
</div>
159+
160+
<div class="grid-container" style="grid-template-columns: 1fr 3fr;">
161+
<div class="large-tile" style="grid-column: 2;">
162+
<FeatureSection
163+
title={features[3].title}
164+
desc={features[3].desc}
165+
image={features[3].image}
166+
id="3"
167+
color={features[3].color}
168+
/>
169+
</div>
170+
<div class="small-tile" style="grid-column: 1;">
171+
<FeatureSection
172+
title={features[4].title}
173+
desc={features[4].desc}
174+
image={features[4].image}
175+
id="4"
176+
color={features[4].color}
177+
/>
178+
</div>
179+
<div class="small-tile" style="grid-column: 1;">
180+
<FeatureSection
181+
title={features[5].title}
182+
desc={features[5].desc}
183+
image={features[5].image}
184+
id="5"
185+
color={features[5].color}
186+
/>
187+
</div>
188+
</div>
189+
111190
<sub>
112-
We have even more to come, see{" "}
191+
We have even more to come, check out the{" "}
113192
<span>
114193
<a href="https://github.com/orgs/MythicApp/projects/2/views/2">
115-
roadmap
194+
roadmap.
116195
</a>
117196
</span>
118197
</sub>
@@ -138,6 +217,46 @@ const socials = [
138217
</Layout>
139218

140219
<style>
220+
.grid-container {
221+
display: grid;
222+
gap: 1rem;
223+
row-gap: 0;
224+
align-items: center;
225+
height: 100%;
226+
}
227+
228+
.large-tile {
229+
grid-column: 1;
230+
grid-row: 1 / span 2;
231+
display: flex;
232+
flex-direction: column;
233+
justify-content: space-evenly;
234+
height: 100%;
235+
}
236+
237+
.small-tile {
238+
grid-column: 2;
239+
padding: 0;
240+
display: flex;
241+
flex-direction: column;
242+
justify-content: space-between;
243+
height: 100%;
244+
}
245+
246+
@media only screen and (max-width: 768px) {
247+
.grid-container {
248+
grid-template-columns: 1fr;
249+
grid-template-rows: auto;
250+
}
251+
252+
.large-tile,
253+
.small-tile {
254+
grid-column: 1;
255+
grid-row: auto;
256+
height: auto;
257+
}
258+
}
259+
141260
.ctalogo {
142261
width: 124px;
143262
height: 124px;
@@ -146,7 +265,6 @@ const socials = [
146265
.mythic-gradient-text {
147266
display: inline;
148267
--bg-size: 400%;
149-
font-size: 60px;
150268
background: linear-gradient(
151269
90deg,
152270
var(--color-one),
@@ -157,7 +275,7 @@ const socials = [
157275
color: transparent;
158276
-webkit-background-clip: text;
159277
background-clip: text;
160-
animation: move-bg 40s infinite linear;
278+
animation: move-bg 40s infinite ease-in-out;
161279
margin-bottom: 0;
162280
}
163281

@@ -227,10 +345,6 @@ const socials = [
227345
height: 64px;
228346
}
229347

230-
.mythic-gradient-text {
231-
font-size: 36px;
232-
}
233-
234348
sub {
235349
font-size: 12px;
236350
}

0 commit comments

Comments
 (0)