Skip to content

Commit

Permalink
make homepage width
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 8, 2024
1 parent d9741da commit 38132da
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 9 deletions.
1 change: 0 additions & 1 deletion .env.prod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ DB_CONNECTION=sqlite
# @note this must be a use api key, not a project one
OPENAI_API_KEY=

# regenerated 2024-08-31
TWITTER_API_KEY=
TWITTER_API_SECRET=

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ jobs:
# disable xdebug
coverage: none

# setup default envs, invoke by comopser install Laravel post-install event
- run: cp .env.local .env

# composer install cache - https://github.com/ramsey/composer-install
- uses: "ramsey/composer-install@v2"


- run: ${{ matrix.actions.run }}
3 changes: 3 additions & 0 deletions .github/workflows/rector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
with:
php-version: 8.2

# setup default envs, invoke by comopser install Laravel post-install event
- run: cp .env.local .env

- uses: "ramsey/composer-install@v1"

## First run Rector - here can't be --dry-run !!! it would stop the job with it and not commit anything in the future
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ cd tomasvotruba.com
composer install
```

- Build assets

```bash
yarn build

# or to watch files and reload on scss change
yarn dev
```

- Run local server

```bash
Expand Down
1 change: 0 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public function register(): void
return OpenAI::client($openApiKey);
});


$this->app->singleton(\Noweh\TwitterApi\Client::class, function (): \Noweh\TwitterApi\Client {
$twitterAppId = env('TWITTER_APP_ID');
$twitterApiKey = env('TWITTER_API_KEY');
Expand Down
13 changes: 9 additions & 4 deletions resources/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,17 @@ a.btn {
line-height: 1.6rem;
}

#welcome_card {
h2 {
letter-spacing: .02em;
font-size: 2em;
}
}

/* mobile optimization */
@media (max-width: 768px) {
.welcome_card {
h2 {
font-size: 1.3em;
}
#welcome_card h2 {
font-size: 1.6em;
}

#menu {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/_snippets/menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<span class="ps-2 pe-2">•</span>

<a href="tel:+420776778332">+420&nbsp;776&nbsp;778&nbsp;332</a>
<a href="tel:+420776778332">420&nbsp;776&nbsp;778&nbsp;332</a>
</div>

<div class="clearfix"></div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/homepage.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<div class="container">
<div class="row">
<div class="col-12 col-md-10 offset-0 offset-md-1">
<div class="card welcome_card">
<div class="card" id="welcome_card">
<div class="card-body p-5 shadow">
<div class="d-flex mb-5">
<div style="max-width: 5.5em">
<img src="{{ asset('assets/images/tomas_votruba.jpg') }}" class="rounded-circle shadow">
</div>

<div class="d-block ms-4 mt-4">
<h2 class="mt-0" style="letter-spacing: .02em; font-size: 2em">Hi, I'm Tomas Votruba</h2>
<h2 class="mt-0">Hi, I'm Tomas Votruba</h2>
</div>
</div>

Expand Down

0 comments on commit 38132da

Please sign in to comment.