-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
190 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from flask import Flask, jsonify, request | ||
from flask_cors import CORS | ||
|
||
app = Flask(__name__) | ||
CORS(app) | ||
|
||
@app.route('/', methods=['GET']) | ||
def main(): | ||
data = {'message': 'Welcome to CMUCal!'} | ||
return jsonify(data) | ||
|
||
@app.route('/welcome', methods=['GET']) | ||
def welcome(): | ||
data = {'message': 'Welcome to CMUCal!'} | ||
return jsonify(data) | ||
|
||
@app.route('/data', methods=['GET']) | ||
def get_data(): | ||
data = {'message': 'Hello from Flask!'} | ||
return jsonify(data) | ||
|
||
if __name__ == '__main__': | ||
app.run(debug=True) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,65 @@ | ||
import React from 'react' | ||
import React, { useState } from 'react' | ||
import { FaHeart } from "react-icons/fa"; | ||
import { HiOutlineUserCircle } from "react-icons/hi"; | ||
import { IoAdd } from "react-icons/io5"; | ||
|
||
interface TipsContent { | ||
title: string; | ||
description: string; | ||
date: string; | ||
votes: BigInt; | ||
note: React.ReactNode; | ||
} | ||
|
||
const FeatureCard = ({ title, description, date, votes, icon }: any) => ( | ||
<div className="bg-white border border-gray-200 shadow-sm rounded-lg p-4 flex flex-col gap-3"> | ||
<h3 className="text-teal text-2xl font-semibold">{title}</h3> | ||
<p className="text-gray-600 text-sm line-clamp-3">{description}</p> | ||
<div className="flex justify-between items-center mt-auto"> | ||
<div className="flex items-center gap-2"> | ||
{icon} | ||
<span className="text-gray-500 text-sm">{date}</span> | ||
</div> | ||
<div className="flex items-center gap-1"> | ||
<FaHeart className="text-gray-500" /> | ||
<span className="text-gray-500 text-sm">{votes}</span> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
const SupportFeatureIdeas: React.FC = () => { | ||
return ( | ||
<div> | ||
<h1>Support Feature Ideas</h1> | ||
<div className='px-20 pt-16 pb-10 bg-[757575]'> | ||
<h1 className="text-4xl pb-5 font-semibold text-teal">Feature Ideas Hub</h1> | ||
<p className="pb-8">Welcome to the Feature Ideas Hub! Below, you'll find posts from our community sharing their ideas for new features and improvements. Browse through the suggestions, vote on your favorites, and contribute your own ideas to help us make CMUCal even better.</p> | ||
|
||
<button | ||
className="text-base rounded-lg border border-teal px-4 py-2 mb-8 ml-auto flex items-center gap-1 bg-teal text-white inline-flex mx-1 my-1" | ||
style={{ minWidth: "7rem" }} | ||
> | ||
<IoAdd className="h-4 w-4 text-white mr-2" /> | ||
{"Post an idea"} | ||
</button> | ||
|
||
<div className="grid grid-cols-3 gap-4"> | ||
<FeatureCard title="New Feature Title" | ||
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | ||
date="Jun 30, 2024" votes="4" icon="s" /> | ||
<FeatureCard title="A very very very long new feature title" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | ||
date="Jun 30, 2024" votes="4" icon="s" /> | ||
<FeatureCard title="New Feature Title" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | ||
date="Jun 30, 2024" votes="4" icon="s" /> | ||
<FeatureCard title="New Feature Title" | ||
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | ||
date="Jun 30, 2024" votes="4" icon="s" /> | ||
<FeatureCard title="A very very very long new feature title" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | ||
date="Jun 30, 2024" votes="4" icon="s" /> | ||
<FeatureCard title="New Feature Title" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." | ||
date="Jun 30, 2024" votes="4" icon="s" /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
|
||
export {SupportFeatureIdeas}; | ||
export { SupportFeatureIdeas }; |
This file contains 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
This file contains 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
This file contains 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