Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use smaller png for cover #219

Merged
merged 1 commit into from
Oct 13, 2023
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
98 changes: 53 additions & 45 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,62 +125,71 @@ function useFilteredUsers() {
}

function ShowcaseTemplateSearch() {
const cover = useBaseUrl("/img/cover.png");
return (
<div className={styles.searchArea}>
<div
style={{
display: "flex",
flexDirection: "column",
<div className={styles.searchContainer}>
<img
src={useBaseUrl("/img/coverBackground.png")}
className={styles.cover}
onError={({ currentTarget }) => {
currentTarget.style.display = "none";
}}
>
alt=""
/>
<div className={styles.searchArea}>
<div
className={styles.heroBar}
style={{
textAlign: "center",
display: "flex",
flexDirection: "column",
}}
>
<div
className={styles.heroBar}
style={{
textAlign: "center",
}}
>
<Text
size={800}
weight="semibold"
style={{
background:
"linear-gradient(90deg, rgb(112.68, 94.63, 239.06) 0%, rgb(41.21, 120.83, 190.19) 100%)",
WebkitBackgroundClip: "text",
WebkitTextFillColor: "transparent",
}}
>
{TITLE}
</Text>
</div>
<Text
size={800}
weight="semibold"
align="center"
size={400}
style={{
background:
"linear-gradient(90deg, rgb(112.68, 94.63, 239.06) 0%, rgb(41.21, 120.83, 190.19) 100%)",
WebkitBackgroundClip: "text",
WebkitTextFillColor: "transparent",
color: "#242424",
padding: "10px 0 20px 0",
}}
>
{TITLE}
{DESCRIPTION}
</Text>
</div>
<Text
align="center"
size={400}
style={{
color: "#242424",
padding: "10px 0 20px 0",
}}
>
{DESCRIPTION}
</Text>
<FilterBar id="filterBar" />
<Text
align="center"
size={300}
style={{
color: "#242424",
padding: "20px 0",
}}
>
Not familiar with the Azure Developer CLI (azd)?
<FluentUILink
href={ADD_URL}
target="_blank"
style={{ paddingLeft: "3px", color: "#7160E8" }}
<FilterBar id="filterBar" />
<Text
align="center"
size={300}
style={{
color: "#242424",
padding: "20px 0",
}}
>
Learn more
</FluentUILink>
</Text>
Not familiar with the Azure Developer CLI (azd)?
<FluentUILink
href={ADD_URL}
target="_blank"
style={{ paddingLeft: "3px", color: "#7160E8" }}
>
Learn more
</FluentUILink>
</Text>
</div>
</div>
</div>
);
Expand Down Expand Up @@ -640,7 +649,6 @@ function ShowcaseCards() {
</section>
);
}

export default function Showcase(): JSX.Element {
return (
<FluentProvider theme={teamsLightTheme}>
Expand Down
18 changes: 15 additions & 3 deletions website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,22 @@
margin-right: 0;
}

.cover{
pointer-events: none;
position: absolute;
width: 100%;
height: 100%;
}

.searchContainer{
display: inline-block;
overflow: hidden;
position: relative;
width: 100%;
}

.searchArea {
background-image: url("/img/cover.svg");
background-size: cover;
background-repeat: "no-repeat";
position: relative;
width: 100%;
height: 300px;
display: flex;
Expand Down
14 changes: 0 additions & 14 deletions website/static/img/cover.svg

This file was deleted.

Binary file added website/static/img/coverBackground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading