Skip to content

Commit

Permalink
feat: add image to starter (#4497)
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jun 14, 2023
1 parent d8d9aca commit 8350d56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions starters/apps/basic/src/components/starter/hero/hero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
gap: 40px;
}

.hero-image {
width: 100%;
position: absolute;
height: auto;
object-fit: cover;
z-index: -1;
opacity: 0.2;
pointer-events: none;
}

.hero p {
color: white;
margin: 0;
Expand Down
2 changes: 2 additions & 0 deletions starters/apps/basic/src/components/starter/hero/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { component$ } from '@builder.io/qwik';
import styles from './hero.module.css';
import ImgThunder from '~/media/thunder.png?jsx';

export default component$(() => {
return (
<div class={['container', styles.hero]}>
<ImgThunder class={styles['hero-image']} />
<h1>
So <span class="highlight">fantastic</span>
<br />
Expand Down
Binary file added starters/apps/basic/src/media/thunder.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8350d56

Please sign in to comment.