Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sites/www/content/flip/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: I/O FLIP
bodyTags: interior
bodyTags: interior flip
description: I/O FLIP is a modern AI take on a battle card game that uses generative AI to create custom cards for players to challenge each other. It was created to inspire developers to experiment with what is possible with generative AI + Google tools. Character images are generated with DreamBooth on Muse, and descriptions were generated using the PaLM API. Created in Flutter, it uses a suite of Firebase and Google Cloud tools for hosting and sharing.
publishDate: "2023-05-04"
---
Expand Down
2 changes: 1 addition & 1 deletion sites/www/lib/src/pages/flip_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FlipPage extends StatelessComponent {
]),
div(classes: 'hero-details', [
a(
classes: 'btn secondary',
classes: 'btn white',
href: 'https://flip.withgoogle.com',
target: Target.blank,
[.text('Play now')],
Expand Down
1 change: 0 additions & 1 deletion sites/www/lib/src/pages/not_found_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class NotFoundPage extends StatelessComponent {
@override
Component build(BuildContext context) {
return main_([
const section(classes: 'hero', []),
section(
classes: 'content-container',
attributes: const {
Expand Down
41 changes: 14 additions & 27 deletions sites/www/lib/styles/components/_btn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
font-size: var(--font-size-heading-5);
}

&.solid {
&.solid, &.primary {
background-color: var(--blue-6);
color: white;
}
Expand All @@ -35,17 +35,11 @@
}
}

&.primary {
background-color: var(--blue-6);
color: white;
}

&.quiet {
background-color: transparent !important;
border: none !important;
color: black;
padding: 0 var(--gutter-sm);
;

&:hover {
background-color: transparent !important;
Expand All @@ -54,19 +48,16 @@
}

&.collapsed {
padding: 0 !important
padding: 0 !important;
}

.link-arrow-icon {
position: relative;
left: 0;
transform: translateX(0);
transition: transform 400ms var(--ui-anim-func);
}

&:hover {
.link-arrow-icon {
transition: left 400ms var(--ui-anim-func);
left: 3px;
}
&:hover .link-arrow-icon {
transform: translateX(3px);
}
}

Expand All @@ -81,22 +72,18 @@
cursor: pointer;
padding: 0;

&:hover,
&.active {
transition: background-color 300ms ease;
transition: background-color 300ms ease;

&:hover, &.active {
background-color: rgba(250, 250, 250, 0.15);
}
}

main .btn {
border: 1px solid var(--blue-6);

main {
.btn {
border: 1px solid var(--blue-6);
font-size: var(--font-size-default);

&:hover {
background-color: var(--blue-6);
color: white;
}
&:hover {
background-color: var(--blue-6);
color: white;
}
}
26 changes: 5 additions & 21 deletions sites/www/lib/styles/components/_carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
.carousel {
.carousel-slider {
margin-left: calc(-1 * var(--gutter));
padding: 20px 0 30px;
padding-left: var(--gutter);
padding: 20px 0 30px var(--gutter);
align-items: stretch;
display: flex;
overflow-x: auto;
Expand Down Expand Up @@ -87,26 +86,19 @@
background-repeat: no-repeat;
background-position: center;
background-size: contain;
border-top-left-radius: var(--ui-border-radius-sm);
border-top-right-radius: var(--ui-border-radius-sm);
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-radius: var(--ui-border-radius-sm) var(--ui-border-radius-sm) 0 0;
height: 250px;
}

.text {
padding: var(--spacer);
display: flex;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: var(--ui-border-radius-sm);
border-bottom-left-radius: var(--ui-border-radius-sm);
border-radius: 0 0 var(--ui-border-radius-sm) var(--ui-border-radius-sm);
flex-direction: column;
text-align: center;
align-items: center;
justify-content: center;
background-color: var(--primary);
/* default, cms editable */
height: 500px;

h4 {
Expand Down Expand Up @@ -140,7 +132,6 @@
}

&.dark {

h4,
p {
color: var(--grey-3);
Expand All @@ -161,18 +152,12 @@

.media {
width: var(--ui-card-width);
border-top-left-radius: var(--ui-border-radius-sm);
border-bottom-left-radius: var(--ui-border-radius-sm);
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-radius: var(--ui-border-radius-sm) 0 0 var(--ui-border-radius-sm);
}

.text {
padding: var(--gutter-md);
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border-top-right-radius: var(--ui-border-radius-sm);
border-bottom-right-radius: var(--ui-border-radius-sm);
border-radius: 0 var(--ui-border-radius-sm) var(--ui-border-radius-sm) 0;

h3 {
font-size: 54px;
Expand Down Expand Up @@ -301,7 +286,6 @@
height: 100%;
position: relative;
width: 0;
/* dynamic */
}

.carousel-nav {
Expand Down
16 changes: 7 additions & 9 deletions sites/www/lib/styles/components/_embeds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
height: 0;
overflow: hidden;
max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
iframe, object, embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
33 changes: 11 additions & 22 deletions sites/www/lib/styles/components/_features.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,8 @@

.features {
margin-bottom: var(--gutter-sm);

--anim-offset: 200px;

@keyframes slideup {
0% { opacity: 0; }
100% { opacity: 1; top: 0px }
}
--anim-offset: 200px;

.stacked-feature {
.feature {
Expand Down Expand Up @@ -157,13 +152,8 @@
}

&.active {
animation: marketing-slide-up 600ms var(--ui-anim-func) forwards;
display: grid;
animation-duration: 600ms;
animation-delay: 0ms;
animation-name: slideup;
animation-iteration-count: 1;
animation-timing-function: var(--ui-anim-func);
animation-fill-mode: forwards;
}

.text {
Expand All @@ -180,7 +170,7 @@
font-size: var(--font-size-heading-3);
}
}

p {
margin-bottom: var(--gutter-sm);
font-size: var(--font-size-heading-4);
Expand All @@ -194,10 +184,9 @@

.media {
margin-bottom: var(--gutter);
width: var(--feature-img-width);
overflow: hidden;
order: 1;

img {
width: 100%;
max-width: 600px;
Expand Down Expand Up @@ -227,8 +216,8 @@
&.reverse {
grid-template-columns: 40% 1fr;

.text {
order: 2;
.text {
order: 2;
padding: 0 var(--gutter) 0 var(--gutter-xl);
}

Expand Down Expand Up @@ -314,7 +303,7 @@

&:hover {
transition: background-color 300ms, box-shadow 200ms var(--ui-anim-func);
background-color: rgba(255, 255, 255, 0.15); /* #5298E3; */
background-color: rgba(255, 255, 255, 0.15);
box-shadow: var(--ui-drop-shadow);

h3 .link-arrow-icon {
Expand Down Expand Up @@ -364,7 +353,7 @@
grid-template-columns: minmax(0, 400px) minmax(0, 400px);
column-gap: var(--gutter);
}

&.col-3 {
grid-template-columns: minmax(0, 400px) minmax(0, 400px);
column-gap: var(--gutter-sm);
Expand All @@ -378,7 +367,7 @@
grid-template-columns: minmax(0, 500px) minmax(0, 500px);
column-gap: 90px;
}

&.col-3 {
grid-template-columns: minmax(0, 400px) minmax(0, 400px) minmax(0, 400px);
column-gap: var(--gutter-sm);
Expand Down Expand Up @@ -408,14 +397,14 @@
font-size: var(--font-size-heading-2);
line-height: 1; /* tighter */
}

p {
margin-bottom: var(--gutter-sm);
font-size: var(--font-size-heading-4);
}
}
}

@include breakpoints.screen(md) {
grid-template-columns: 1fr 1fr;
}
Expand Down
2 changes: 1 addition & 1 deletion sites/www/lib/styles/components/_filters-dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
top: calc(var(--button-height) + 10px);
background-color: #ffffff;
min-width: 160px;
box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.25);
box-shadow: var(--ui-drop-shadow);
border-radius: 8px;
z-index: 6;

Expand Down
2 changes: 1 addition & 1 deletion sites/www/lib/styles/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ form {
color: black;
font-size: var(--font-size-heading-5);
}

input[type=text],
input[type=email],
input[type=search] {
Expand Down
11 changes: 3 additions & 8 deletions sites/www/lib/styles/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(124.64deg, #027DFD 0%, #833EF2 100%);
background: linear-gradient(124.64deg, #027dfd 0%, #833ef2 100%);
border-radius: 0;
color: white;
font-size: var(--font-size-default);
Expand Down Expand Up @@ -254,9 +254,8 @@
z-index: 15;
position: fixed;
left: var(--gutter-sm);
width: calc(100% - calc(var(--gutter-sm) * 2));
width: calc(100% - var(--gutter-sm) * 2);
justify-content: center;
/* when global-gamers-challenge button removed put: bottom: 44px; */
bottom: 44px;
}

Expand All @@ -275,7 +274,7 @@
/* Expand nav to 100% */
nav {
background-color: var(--blue-6);
box-shadow: var(--ui-box-shadow);
box-shadow: var(--ui-drop-shadow);
padding: var(--gutter-lg) var(--gutter-sm);
display: block;
position: fixed;
Expand All @@ -284,8 +283,6 @@
width: 100%;
height: 100%;
top: 0;
/* overflow-y: auto;
overflow-x: hidden; */
overflow: hidden;

animation-duration: 300ms;
Expand All @@ -299,7 +296,6 @@
position: relative;
top: 70px;
display: inline-block;
/* when global-gamers-challenge button removed put: height: 90%; */
height: 85%;
width: 100%;
overflow-y: auto;
Expand Down Expand Up @@ -370,7 +366,6 @@
font-weight: var(--font-weight-bold);
}

/* &.active, */
&:active,
&:hover {
background-color: rgba(250, 250, 250, 0.15);
Expand Down
Loading
Loading