Skip to content

Commit 07a7d7a

Browse files
authored
Updates homepage styling (#820)
* Updates homepage styling * Updates ml related copy to "ai" * Update GoogleDevelopers-lockup.svg * Update ml.png * Removes obsolete pages and copy * Updates no project message * Change jax to gemma card
1 parent 1aa1847 commit 07a7d7a

16 files changed

+216
-145
lines changed

app/public/img/ai-banner.png

66.3 KB
Loading

app/public/img/ai-studio-icon.png

10.7 KB
Loading

app/public/img/gemini-icon.png

14.6 KB
Loading

app/public/img/gemma-logo.png

16.4 KB
Loading

app/public/logos/ml.png

-8.25 KB
Loading

app/src/assets/GoogleDevelopers-lockup.svg

+32-42
Loading

app/src/assets/css/tailwind.css

+35-5
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,37 @@
213213
width: 24px;
214214
}
215215

216-
.value-prop-cards {
216+
.dev-tools-cards {
217217
background: #f1f3f4;
218218
}
219219

220+
.dev-tools-cards .card,
221+
.value-prop-cards .card {
222+
justify-content: flex-start;
223+
}
224+
225+
.dev-tools-cards .card button,
226+
.value-prop-cards .card button {
227+
margin-block: auto 16px;
228+
}
229+
230+
.section-inner {
231+
max-width: 1488px;
232+
margin: 0 auto;
233+
}
234+
235+
.dev-tools-image img {
236+
height: 96px;
237+
width: auto;
238+
margin-block: 16px 24px;
239+
}
240+
220241
.value-prop-image {
221242
margin-bottom: 33px;
222243
}
223244

224245
.value-prop-image img {
225-
width: 200px;
246+
width: 80px;
226247
}
227248

228249
.value-prop-cards button {
@@ -264,8 +285,12 @@
264285
font-weight: 500;
265286
}
266287

288+
.no-projects-link {
289+
color: rgb(26, 115, 232);
290+
}
291+
267292
@screen lg {
268-
.homepage-header h1,
293+
.homepage-header h1,
269294
.full-bleed-header-image h1 {
270295
font-size: 44px;
271296
line-height: 52px;
@@ -300,7 +325,7 @@
300325
}
301326

302327
.repo-item {
303-
border-radius: 4px;
328+
border-radius: 4px;
304329
padding: 4px 6px;
305330
}
306331

@@ -323,10 +348,15 @@
323348
top: 44px;
324349
}
325350

351+
.ai-hero-clipart {
352+
width: 308px;
353+
top: 0;
354+
}
355+
326356
.impact-number {
327357
font-size: 64px;
328358
}
329-
359+
330360
.impact-text {
331361
font-size: 20px;
332362
}

app/src/components/NavBar.vue

+1-9
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@
5959
<span class="header">Authors</span>
6060
</router-link>
6161

62-
<router-link to="/featured-content" class="section">
63-
<span class="header">Featured Content</span>
64-
</router-link>
65-
6662
<router-link to="/about" class="section">
6763
<span class="header">About</span>
6864
</router-link>
@@ -123,10 +119,6 @@
123119
><span>Authors</span></router-link
124120
>
125121

126-
<router-link class="block nav-item nav-item-link" to="/featured-content"
127-
><span class="header">Featured Content</span>
128-
</router-link>
129-
130122
<router-link class="block nav-item nav-item-link" to="/about"
131123
><span>About</span></router-link
132124
>
@@ -140,7 +132,7 @@
140132
type="primary"
141133
v-if="!showSideMenu"
142134
>
143-
Submit your content
135+
Submit your AI project
144136
</MaterialButton>
145137
</transition>
146138
</div>

app/src/components/SubmitDialog.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class SubmitDialog extends Vue {
5454

5555
mounted() {
5656
EVENT_BUS.$on(NAME_SHOW_SUBMIT_DIALOG, () => {
57-
this.show = true;
57+
this.goToForm()
5858
});
5959
}
6060

@@ -66,7 +66,7 @@ export default class SubmitDialog extends Vue {
6666
this.show = false;
6767
conversionEvent("submit");
6868
window.open(
69-
"https://devlibrary.advocu.com/home/applications/form",
69+
"https://forms.gle/S61NStowwwTjVrHT7",
7070
"_blank"
7171
);
7272
}

app/src/router/index.ts

-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import Vue from "vue";
1818
import VueRouter, { RouteConfig } from "vue-router";
1919
import Home from "../views/Home.vue";
20-
import FeaturedContent from "../views/FeaturedContent.vue";
2120
import About from "../views/About.vue";
2221
import ContentPolicy from "../views/ContentPolicy.vue";
2322
import Product from "../views/Product.vue";
@@ -50,11 +49,6 @@ const routes: Array<RouteConfig> = [
5049
name: "RepoPage",
5150
component: Repo,
5251
},
53-
{
54-
path: "/featured-content",
55-
name: "Featured Content",
56-
component: FeaturedContent,
57-
},
5852
{
5953
path: "/authors",
6054
name: "Authors",

app/src/views/About.vue

+5-11
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,10 @@
4747
<li>Blog posts</li>
4848
</ul>
4949

50-
<p class="mt-4">
51-
We are currently not accepting new submissions from the community, please check back later!
52-
</p>
5350
<p class="mt-8 flex flex-wrap gap-4">
54-
<a href="mailto:[email protected]">
55-
<MaterialButton @click.native="showSubmitDialog" type="primary"
56-
>Submit your content</MaterialButton
57-
>
58-
</a>
51+
<MaterialButton @click.native="showSubmitDialog" type="primary"
52+
>Submit your AI project</MaterialButton
53+
>
5954
</p>
6055
</div>
6156
</div>
@@ -144,7 +139,7 @@
144139
</div>
145140
<div v-show="FaqData[3]" class="pb-2 border-b">
146141
<p class="mt-4">
147-
<a target="_blank" href="https://devlibrary.withgoogle.com/featured-content"> Check out</a> our Featured Content page to stay up to date with the latest projects added to the platform. This page features some of the best submissions from each product every month. Also, you can check out the <a href="https://developers.googleblog.com/search/label/Google%20Dev%20Library">Dev Library blog archives</a> for past highlights.
142+
<a target="_blank" href="https://devlibrary.withgoogle.com/products/ml"> Check out</a> our AI products page to stay up to date with the latest projects added to the platform. Also, you can check out the <a href="https://developers.googleblog.com/search/label/Google%20Dev%20Library">Dev Library blog archives</a> for past highlights.
148143
</p>
149144
</div>
150145
<p class="mt-6 font-bold">Contributing to Dev Library</p>
@@ -166,7 +161,6 @@
166161
<ol class="ml-6 mt-2 list-disc">
167162
<li>Their own author profile page</li>
168163
<li>A shiny contributor badge for their Google Developer profile</li>
169-
<li>Spotlights in the Dev Library Featured Content page</li>
170164
<li>Inspiring developers to build with Google!</li>
171165
</ol>
172166
</p>
@@ -324,7 +318,7 @@
324318
</div>
325319
<div v-show="FaqData[12]" class="pb-2 border-b">
326320
<p class="mt-4">
327-
To remove or update your content, please open a Pull request or raise an issue on the
321+
To remove or update your content, please open a Pull request or raise an issue on the
328322
<a target="_blank" href="https://github.com/google/devlibrary/issues/new">
329323
Dev Library's GitHub repo</a>.
330324
</p>

0 commit comments

Comments
 (0)