diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index 5be02db..a3f1ff5 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/settings.py b/config/settings.py index 291d043..83ba4de 100644 --- a/config/settings.py +++ b/config/settings.py @@ -58,6 +58,8 @@ INSTALLED_APPS = [ 'core', ] +AUTH_USER_MODEL = 'core.User' + MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', diff --git a/cookies.txt b/cookies.txt new file mode 100644 index 0000000..4133569 --- /dev/null +++ b/cookies.txt @@ -0,0 +1,5 @@ +# Netscape HTTP Cookie File +# https://curl.se/docs/http-cookies.html +# This file was generated by libcurl! Edit at your own risk. + +127.0.0.1 FALSE / TRUE 1796991812 csrftoken cXuPVQPkN93dgAsbLP1e8OsLOYhW3Mkl diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index cd6f855..1e76241 100644 Binary files a/core/__pycache__/admin.cpython-311.pyc and b/core/__pycache__/admin.cpython-311.pyc differ diff --git a/core/__pycache__/forms.cpython-311.pyc b/core/__pycache__/forms.cpython-311.pyc new file mode 100644 index 0000000..d1f8e91 Binary files /dev/null and b/core/__pycache__/forms.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b..9335191 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 1f807fa..3a67afd 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf..cdb0bc9 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/admin.py b/core/admin.py index 8c38f3f..d3dfb73 100644 --- a/core/admin.py +++ b/core/admin.py @@ -1,3 +1,6 @@ from django.contrib import admin +from .models import User, Profile, SocialProfile -# Register your models here. +admin.site.register(User) +admin.site.register(Profile) +admin.site.register(SocialProfile) diff --git a/core/forms.py b/core/forms.py new file mode 100644 index 0000000..f4ce4f5 --- /dev/null +++ b/core/forms.py @@ -0,0 +1,29 @@ +from django import forms +from django.contrib.auth.forms import UserCreationForm +from .models import User, Profile + +class CompanySignUpForm(UserCreationForm): + class Meta(UserCreationForm.Meta): + model = User + fields = ('username', 'email') + + def save(self, commit=True): + user = super().save(commit=False) + user.role = User.Role.COMPANY + if commit: + user.save() + Profile.objects.create(user=user) + return user + +class InfluencerSignUpForm(UserCreationForm): + class Meta(UserCreationForm.Meta): + model = User + fields = ('username', 'email') + + def save(self, commit=True): + user = super().save(commit=False) + user.role = User.Role.INFLUENCER + if commit: + user.save() + Profile.objects.create(user=user) + return user diff --git a/core/migrations/0001_initial.py b/core/migrations/0001_initial.py new file mode 100644 index 0000000..65701c9 --- /dev/null +++ b/core/migrations/0001_initial.py @@ -0,0 +1,34 @@ +# Generated by Django 5.2.7 on 2025-12-12 12:06 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Influencer', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=255)), + ('bio', models.TextField()), + ('profile_picture', models.ImageField(blank=True, null=True, upload_to='influencer_profile_pictures/')), + ], + ), + migrations.CreateModel( + name='Profile', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('platform', models.CharField(max_length=255)), + ('handle', models.CharField(max_length=255)), + ('url', models.URLField()), + ('influencer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profiles', to='core.influencer')), + ], + ), + ] diff --git a/core/migrations/__pycache__/0001_initial.cpython-311.pyc b/core/migrations/__pycache__/0001_initial.cpython-311.pyc new file mode 100644 index 0000000..590cb84 Binary files /dev/null and b/core/migrations/__pycache__/0001_initial.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index 71a8362..7101d43 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,26 @@ +from django.contrib.auth.models import AbstractUser from django.db import models -# Create your models here. +class User(AbstractUser): + class Role(models.TextChoices): + COMPANY = "COMPANY", "Company" + INFLUENCER = "INFLUENCER", "Influencer" + + role = models.CharField(max_length=50, choices=Role.choices) + +class Profile(models.Model): + user = models.OneToOneField(User, on_delete=models.CASCADE) + bio = models.TextField(blank=True) + profile_picture = models.ImageField(upload_to='profile_pictures/', blank=True, null=True) + + def __str__(self): + return self.user.username + +class SocialProfile(models.Model): + profile = models.ForeignKey(Profile, on_delete=models.CASCADE, related_name='social_profiles') + platform = models.CharField(max_length=255) + handle = models.CharField(max_length=255) + url = models.URLField() + + def __str__(self): + return f'{self.profile.user.username} - {self.platform}' diff --git a/core/templates/base.html b/core/templates/base.html index 1e7e5fb..da53ecd 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -1,25 +1,58 @@ +{% load static %} - - - {% block title %}Knowledge Base{% endblock %} - {% if project_description %} - - - - {% endif %} - {% if project_image_url %} - - - {% endif %} - {% load static %} - - {% block head %}{% endblock %} + + + {% block title %}MarketMatchr{% endblock %} + + + + + + + {% if project_description %} + + + + {% endif %} + + {% if project_image_url %} + + + {% endif %} + - - {% block content %}{% endblock %} - + +
+ {% block content %}{% endblock %} +
+ + + diff --git a/core/templates/core/index.html b/core/templates/core/index.html index faec813..5cc96fa 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,145 +1,95 @@ {% extends "base.html" %} +{% load static %} -{% block title %}{{ project_name }}{% endblock %} - -{% block head %} - - - - -{% endblock %} +{% block title %}MarketMatchr - Connect with Influencers{% endblock %} {% block content %} -
-
-

Analyzing your requirements and generating your app…

-
- Loading… +
+
+
+

Find the Perfect Influencer for Your Brand

+

Connect with top influencers and launch successful campaigns.

+
+ + +
+
-

AppWizzy AI is collecting your requirements and applying the first changes.

-

This page will refresh automatically as the plan is implemented.

-

- Runtime: Django {{ django_version }} · Python {{ python_version }} - — UTC {{ current_time|date:"Y-m-d H:i:s" }} -

-
-
- -{% endblock %} \ No newline at end of file + + +
+
+
+

Featured Influencers

+
+
+
+ +
+
+ Influencer +
+
Influencer Name
+

Fashion | 1.2M Followers

+
+
+
+
+
+ Influencer +
+
Another Influencer
+

Gaming | 800k Followers

+
+
+
+
+
+ Influencer +
+
Top Creator
+

Travel | 2.5M Followers

+
+
+
+
+
+ +
+
+
+

How It Works

+
+
+
+
+
+

1. Find Influencers

+

Use our powerful search to discover influencers in your niche.

+
+
+
+
+

2. Launch Campaigns

+

Create campaigns and invite influencers to collaborate.

+
+
+
+
+

3. Drive Results

+

Track your campaign performance and grow your brand.

+
+
+
+
+ +
+
+
+

Join MarketMatchr Today!

+

Sign up now and start connecting with the best influencers.

+ Join For Free +
+
+
+{% endblock %} diff --git a/core/templates/core/login.html b/core/templates/core/login.html new file mode 100644 index 0000000..61faa81 --- /dev/null +++ b/core/templates/core/login.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}Login - MarketMatchr{% endblock %} + +{% block content %} +
+
+
+

Login

+

This is a placeholder for the login page.

+
+
+
+{% endblock %} diff --git a/core/templates/core/pricing.html b/core/templates/core/pricing.html new file mode 100644 index 0000000..7801d31 --- /dev/null +++ b/core/templates/core/pricing.html @@ -0,0 +1,67 @@ +{% extends "base.html" %} + +{% block title %}Pricing - MarketMatchr{% endblock %} + +{% block content %} +
+
+
+

Our Pricing Plans

+

Choose the plan that's right for you.

+
+
+
+
+
+
+
Free
+
$0/month
+
+
    +
  • 0 Published Campaigns
  • +
  • Up to 3 Draft Campaigns
  • +
  • Campaign Analytics
  • +
+ +
+
+
+
+
+
+
Professional
+
$49/month
+
+
    +
  • 10 Published Campaigns per month
  • +
  • Unlimited Draft Campaigns
  • +
  • Campaign Analytics
  • +
+ +
+
+
+
+
+
+
Premium
+
$99/month
+
+
    +
  • 50 Published Campaigns per month
  • +
  • Unlimited Draft Campaigns
  • +
  • Campaign Analytics
  • +
+ +
+
+
+
+
+{% endblock %} \ No newline at end of file diff --git a/core/templates/core/signup.html b/core/templates/core/signup.html new file mode 100644 index 0000000..d2af04c --- /dev/null +++ b/core/templates/core/signup.html @@ -0,0 +1,54 @@ +{% extends "base.html" %} + +{% block title %}Sign Up - MarketMatchr{% endblock %} + +{% block content %} +
+
+
+
+
+

Sign Up

+
+

Join as a company or an influencer.

+
+ + +
+
+
+ {% csrf_token %} + + {{ form.as_p }} +
+ +
+
+
+
+
+
+
+ + +{% endblock %} \ No newline at end of file diff --git a/core/urls.py b/core/urls.py index 6299e3d..2d1f36c 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,7 +1,10 @@ from django.urls import path -from .views import home +from .views import index, pricing, login, signup urlpatterns = [ - path("", home, name="home"), + path("", index, name="index"), + path("pricing/", pricing, name="pricing"), + path("login/", login, name="login"), + path("signup/", signup, name="signup"), ] diff --git a/core/views.py b/core/views.py index c9aed12..02b3f65 100644 --- a/core/views.py +++ b/core/views.py @@ -1,25 +1,26 @@ -import os -import platform +from django.shortcuts import render, redirect +from django.contrib.auth import login +from .forms import CompanySignUpForm, InfluencerSignUpForm -from django import get_version as django_version -from django.shortcuts import render -from django.utils import timezone +def index(request): + return render(request, 'core/index.html') +def pricing(request): + return render(request, 'core/pricing.html') -def home(request): - """Render the landing screen with loader and environment details.""" - host_name = request.get_host().lower() - agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic" - now = timezone.now() +def login(request): + return render(request, 'core/login.html') - context = { - "project_name": "New Style", - "agent_brand": agent_brand, - "django_version": django_version(), - "python_version": platform.python_version(), - "current_time": now, - "host_name": host_name, - "project_description": os.getenv("PROJECT_DESCRIPTION", ""), - "project_image_url": os.getenv("PROJECT_IMAGE_URL", ""), - } - return render(request, "core/index.html", context) +def signup(request): + if request.method == 'POST': + if request.POST.get('role') == 'company': + form = CompanySignUpForm(request.POST) + else: + form = InfluencerSignUpForm(request.POST) + if form.is_valid(): + user = form.save() + login(request, user) + return redirect('index') + else: + form = InfluencerSignUpForm() + return render(request, 'core/signup.html', {'form': form}) \ No newline at end of file diff --git a/static/css/custom.css b/static/css/custom.css index 925f6ed..73ab997 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,4 +1,131 @@ -/* Custom styles for the application */ body { - font-family: system-ui, -apple-system, sans-serif; + font-family: 'Lato', sans-serif; + color: #333333; + background-color: #F6F9FC; + padding-top: 70px; /* For fixed top navbar */ } + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; + font-weight: 600; +} + +.navbar { + background-color: #FFFFFF !important; + border-bottom: 1px solid #E0E0E0; +} + +.navbar-brand { + font-family: 'Poppins', sans-serif; + font-weight: 700; + color: #0A2540 !important; +} + +.nav-link { + color: #333333 !important; +} + +.btn-primary { + background-color: #00D09C; + border-color: #00D09C; +} + +.btn-primary:hover { + background-color: #00b386; + border-color: #00b386; +} + +.btn-outline-primary { + color: #00D09C; + border-color: #00D09C; +} + +.btn-outline-primary:hover { + background-color: #00D09C; + color: #FFFFFF; +} + +.hero-section { + background: linear-gradient(to right, #0A2540, #1c3d5e); + color: #FFFFFF; + padding: 120px 0; +} + +.search-bar-container { + display: flex; + max-width: 600px; + margin: auto; +} + +.search-bar-container input { + flex-grow: 1; + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} + +.search-bar-container .btn { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} + +.influencer-card { + border: none; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); + transition: transform 0.2s; +} + +.influencer-card:hover { + transform: translateY(-5px); +} + +.how-it-works-section { + background-color: #FFFFFF; +} + +.step h3 { + color: #0A2540; +} + +.step p { + font-size: 1.1em; +} + +.card { + border: none; + border-radius: 10px; + box-shadow: 0 4px 20px rgba(0,0,0,0.1); + transition: all 0.3s ease; +} + +.card:hover { + transform: translateY(-5px); + box-shadow: 0 8px 30px rgba(0,0,0,0.15); +} + +.card .card-title { + font-size: 1.1rem; + font-weight: 600; +} + +.card .card-price { + font-size: 3rem; + font-weight: 700; +} + +.card .card-price .period { + font-size: 0.8rem; + font-weight: 400; + color: #6c757d; +} + +.card .fa-ul { + margin-left: 2em; +} + +.card .fa-li { + position: absolute; + left: -2em; + width: 2em; + text-align: center; + line-height: inherit; +} \ No newline at end of file diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index 108056f..73ab997 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -1,21 +1,131 @@ - -:root { - --bg-color-start: #6a11cb; - --bg-color-end: #2575fc; - --text-color: #ffffff; - --card-bg-color: rgba(255, 255, 255, 0.01); - --card-border-color: rgba(255, 255, 255, 0.1); -} body { - margin: 0; - font-family: 'Inter', sans-serif; - background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end)); - color: var(--text-color); - display: flex; - justify-content: center; - align-items: center; - min-height: 100vh; - text-align: center; - overflow: hidden; - position: relative; + font-family: 'Lato', sans-serif; + color: #333333; + background-color: #F6F9FC; + padding-top: 70px; /* For fixed top navbar */ } + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; + font-weight: 600; +} + +.navbar { + background-color: #FFFFFF !important; + border-bottom: 1px solid #E0E0E0; +} + +.navbar-brand { + font-family: 'Poppins', sans-serif; + font-weight: 700; + color: #0A2540 !important; +} + +.nav-link { + color: #333333 !important; +} + +.btn-primary { + background-color: #00D09C; + border-color: #00D09C; +} + +.btn-primary:hover { + background-color: #00b386; + border-color: #00b386; +} + +.btn-outline-primary { + color: #00D09C; + border-color: #00D09C; +} + +.btn-outline-primary:hover { + background-color: #00D09C; + color: #FFFFFF; +} + +.hero-section { + background: linear-gradient(to right, #0A2540, #1c3d5e); + color: #FFFFFF; + padding: 120px 0; +} + +.search-bar-container { + display: flex; + max-width: 600px; + margin: auto; +} + +.search-bar-container input { + flex-grow: 1; + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} + +.search-bar-container .btn { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} + +.influencer-card { + border: none; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); + transition: transform 0.2s; +} + +.influencer-card:hover { + transform: translateY(-5px); +} + +.how-it-works-section { + background-color: #FFFFFF; +} + +.step h3 { + color: #0A2540; +} + +.step p { + font-size: 1.1em; +} + +.card { + border: none; + border-radius: 10px; + box-shadow: 0 4px 20px rgba(0,0,0,0.1); + transition: all 0.3s ease; +} + +.card:hover { + transform: translateY(-5px); + box-shadow: 0 8px 30px rgba(0,0,0,0.15); +} + +.card .card-title { + font-size: 1.1rem; + font-weight: 600; +} + +.card .card-price { + font-size: 3rem; + font-weight: 700; +} + +.card .card-price .period { + font-size: 0.8rem; + font-weight: 400; + color: #6c757d; +} + +.card .fa-ul { + margin-left: 2em; +} + +.card .fa-li { + position: absolute; + left: -2em; + width: 2em; + text-align: center; + line-height: inherit; +} \ No newline at end of file