Skip to content

Commit

Permalink
Changes to be committed:
Browse files Browse the repository at this point in the history
	modified:   src/plays/cheesylines/Cheesylines.js
	deleted:    src/plays/cheesylines/styles.css
  • Loading branch information
Karna0005 committed Oct 5, 2024
1 parent 89aa2bb commit 05df6a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 83 deletions.
31 changes: 15 additions & 16 deletions src/plays/cheesylines/Cheesylines.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import PlayHeader from 'common/playlists/PlayHeader';
import './styles.css';
import React, { useState } from 'react';
import PlayHeader from '../../common/playlists/PlayHeader';

// WARNING: Do not change the entry component name
function Cheesylines(props) {
const cheesylines = [
'Are you French? Because Eiffel for you.',
Expand Down Expand Up @@ -334,26 +332,27 @@ function Cheesylines(props) {

const handleClick = () => {
const randomLine = cheesylines[Math.floor(Math.random() * cheesylines.length)];
setLine(randomLine);
setLine(randomLine); // Ensure no extra space or newline here
};

return (
<>
<div className="play-details">
<div className="min-h-screen flex flex-col justify-center items-center bg-gray-100">
<PlayHeader play={props} />
<div className="project-header">
<h1>Cheesy Pick-up Lines</h1>
<div className="text-center py-6">
<h1 className="text-4xl font-bold text-black mb-4">Cheesy Pick-up Lines</h1>
</div>
<div className="play-details-body">
{/* Your Code Starts Here */}
<div className="container">
<div className="box">
<h2>Love at First Line!</h2>
{line && <p className="text-background">{line}</p>}
</div>
<button onClick={handleClick}>Get Cheesy Line</button>
<div className="w-full flex flex-col items-center">
<div className="border-2 border-green-500 p-12 rounded-lg shadow-lg bg-gray-200 max-w-3xl w-11/12 flex flex-col justify-center items-center">
<h2 className="text-3xl text-green-600 mb-6 text-center">Love at First Line!</h2>
{line && <p className="text-xl text-gray-700 mt-4 text-center">{line}</p>}
</div>
{/* Your Code Ends Here */}
<button
className="mt-8 py-3 px-8 text-xl font-semibold bg-green-500 text-white rounded-lg hover:bg-green-600 transition-colors"
onClick={handleClick}
>
Get Cheesy Line
</button>
</div>
</div>
</>
Expand Down
67 changes: 0 additions & 67 deletions src/plays/cheesylines/styles.css

This file was deleted.

0 comments on commit 05df6a8

Please sign in to comment.