11<!--
2- Copyright 2024 Google LLC
2+ Copyright 2025 Google LLC
33
44 Licensed under the Apache License, Version 2.0 (the "License");
55 you may not use this file except in compliance with the License.
1616< div class ="site-layout h-screen overflow-scroll ">
1717 < div class ="w-full py-4 flex flex-col lg:px-12 mb-8 ">
1818 <!-- Icon and Title Section -->
19- < div class ="flex items-center p-8 pl-[10%] justify-start ">
19+ @if (viewCodeLink) {
20+ < div
21+ class ="w-full mr-8 flex items-center justify-center ">
22+ < div class ="pl-[10%] pr-[10%] banner font-light flex flex-col sm:flex-row items-center ">
23+ < img src ="assets/link.svg " class ="link ">
24+ < span > {{viewCodeMessage}}</ span >
25+ < a mat-button class ="m-1 " [href] ="viewCodeLink " target ="_blank " rel ="noopener "> Create Workspace</ a >
26+ </ div >
27+ </ div >
28+ }
29+ < div class ="flex items-center p-6 pb-0 pl-[10%] justify-start ">
2030 < img
21- src ="../assets/Spark_Gradient.png "
31+ src ="../assets/gemini_logo.svg "
2232 alt ="Icon "
2333 class ="w-12 h-12 mr-4 "
2434 />
25- < h1 class ="text-3xl " style =" font-family: 'Helvetica Neue', sans-serif ">
35+ < h1 class ="text-2xl md:text-3xl ">
2636 Planning with the Gemini API
2737 </ h1 >
2838 </ div >
2939
3040 < div
31- class ="w-full p-4 flex flex-col lg:items-start lg:flex-row lg:gap-6 justify-between items-center mx-auto "
41+ class ="w-full p-4 py-0 flex flex-col lg:items-start lg:flex-row lg:gap-6 justify-between items-center mx-auto "
3242 >
3343 <!-- Task Generation -->
3444 < div
@@ -37,7 +47,7 @@ <h1 class="text-3xl" style="font-family: 'Helvetica Neue', sans-serif">
3747 < div class ="flex-grow flex flex-col justify-between overflow-scroll ">
3848 < div >
3949 <!-- Checkbox Images Section -->
40- < div class ="w-[90%] flex gap-12 justify-center mx-auto ">
50+ < div class ="w-full flex gap-12 mb-4 p-4 justify-center mx-auto ">
4151 < app-checkboximage
4252 #location
4353 [src] ="'/assets/location.png' "
@@ -55,7 +65,7 @@ <h1 class="text-3xl" style="font-family: 'Helvetica Neue', sans-serif">
5565 <!-- Prompt Input Section -->
5666 < form >
5767 < div class ="w-full flex flex-col justify-between gap-4 mb-4 p-4 lg:flex-row xl:flex-row ">
58- < mat-form-field class ="w-11/12 mb-8 " appearance ="outline ">
68+ < mat-form-field class ="w-full mb-8 " appearance ="outline ">
5969 < mat-label > Add a prompt</ mat-label >
6070 < textarea
6171 [formControl] ="formControls.prompt "
@@ -80,15 +90,15 @@ <h1 class="text-3xl" style="font-family: 'Helvetica Neue', sans-serif">
8090 </ mat-form-field >
8191 < button
8292 mat-button
83- class ="mt-6 flex items-center gap-2 pr-4 "
93+ class ="mt-6 flex items-center gap-2 pr-4 with-bg "
8494 (click) ="onGoClick() "
8595 [disabled] ="!formControls.prompt.value "
8696 >
8797 < span class ="flex items-center ">
8898 < img
8999 src ="../assets/spark_icon_24.svg "
90100 alt ="Gemini Icon "
91- class ="w-6 h-6 "
101+ class ="w-12 h-6 "
92102 />
93103 < span class ="p-2 "> Go</ span >
94104 </ span >
@@ -118,8 +128,8 @@ <h1 class="text-3xl" style="font-family: 'Helvetica Neue', sans-serif">
118128 < div class ="flex flex-row gap-4 w-full justify-end ">
119129 < button
120130 mat-button
121- [disabled] ="!generatedTask "
122- class ="w-36 text-md "
131+ [disabled] ="!generatedTask || !(firestoreReady | async) "
132+ class ="w-36 text-md with-bg "
123133 (click) ="onSave() "
124134 >
125135 Save
0 commit comments