This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { setupDriver } = require("./web-driver"); | |
async function performSearch() { | |
const driver = await setupDriver(); | |
try { | |
// Navigate to Google's homepage | |
await driver.get("<https://www.google.com/>"); | |
// Find the search input element and send the search query |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Import the styles in a JavaScript file | |
import styles from './Card.module.css' | |
//use it as an object | |
<div class={styles.card}> | |
{/* Code related to card */} | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.card{ | |
/* Styles related to the card */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styles from './HeroImage.module.css' | |
export default function HeroImage() { | |
return ( | |
<div className={styles.half}> | |
<img className={styles.image} src='https://www.lambdatest.com/resources/images/main/home_banner.webp' /> | |
</div> | |
) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.half{ | |
width: 50%; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: start; | |
gap: 1.5rem; | |
} | |
.leading{ | |
font-size: 3rem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import styles from './HeroText.module.css' | |
import Button from '../Button/Button' | |
export default function HeroText() { | |
return ( | |
<div className={styles.half}> | |
<h1 className={styles.leading}>Next-Generation Mobile Apps and Cross Browser Testing Cloud</h1> | |
<div className={styles.buttoncontainer}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section{ | |
display: flex; | |
flex-direction: row; | |
min-height: 100vh; | |
width: 100%; | |
padding: 5rem; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import HeroImage from '../HeroImage/HeroImage' | |
import HeroText from '../HeroText/HeroText' | |
import styles from './HeroSection.module.css' | |
export default function HeroSection() { | |
return ( | |
<section className={styles.section}> | |
<HeroText /> |